]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/tcpdump/route6d.h
Virgin import of tcpdump.org tcpdump v3.6.2
[FreeBSD/FreeBSD.git] / contrib / tcpdump / route6d.h
1 /*
2  * $Header: /tcpdump/master/tcpdump/route6d.h,v 1.2 2000/04/28 11:14:49 itojun Exp $
3  */
4
5 #define RIP6_VERSION    1
6
7 #define RIP6_REQUEST    1
8 #define RIP6_RESPONSE   2
9
10 struct netinfo6 {
11         struct in6_addr rip6_dest;
12         u_int16_t       rip6_tag;
13         u_int8_t        rip6_plen;
14         u_int8_t        rip6_metric;
15 };
16
17 struct  rip6 {
18         u_int8_t        rip6_cmd;
19         u_int8_t        rip6_vers;
20         u_int8_t        rip6_res1[2];
21         union {
22                 struct  netinfo6        ru6_nets[1];
23                 char    ru6_tracefile[1];
24         } rip6un;
25 #define rip6_nets       rip6un.ru6_nets
26 #define rip6_tracefile  rip6un.ru6_tracefile
27 };
28
29 #define HOPCNT_INFINITY6        16
30 #define MAXRTE                  24
31 #define NEXTHOP_METRIC          0xff
32
33 #ifndef DEBUG
34 #define SUPPLY_INTERVAL6        30
35 #define RIP_LIFETIME            180
36 #define RIP_HOLDDOWN            120
37 #define RIP_TRIG_INTERVAL6      5
38 #define RIP_TRIG_INTERVAL6_MIN  1
39 #else
40 /* only for debugging; can not wait for 30sec to appear a bug */
41 #define SUPPLY_INTERVAL6        10
42 #define RIP_LIFETIME            60
43 #define RIP_HOLDDOWN            40
44 #define RIP_TRIG_INTERVAL6      5
45 #define RIP_TRIG_INTERVAL6_MIN  1
46 #endif
47
48 #define RIP6_PORT               521
49 #define RIP6_DEST               "ff02::9"