1999-10-30 13:11:06 +08:00
|
|
|
/*
|
2000-04-28 19:14:47 +08:00
|
|
|
* $Header: /tcpdump/master/tcpdump/route6d.h,v 1.2 2000-04-28 11:14:49 itojun Exp $
|
1999-10-30 13:11:06 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#define RIP6_VERSION 1
|
|
|
|
|
|
|
|
#define RIP6_REQUEST 1
|
|
|
|
#define RIP6_RESPONSE 2
|
|
|
|
|
|
|
|
struct netinfo6 {
|
2000-04-28 19:14:47 +08:00
|
|
|
struct in6_addr rip6_dest;
|
|
|
|
u_int16_t rip6_tag;
|
|
|
|
u_int8_t rip6_plen;
|
|
|
|
u_int8_t rip6_metric;
|
1999-10-30 13:11:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct rip6 {
|
2000-04-28 19:14:47 +08:00
|
|
|
u_int8_t rip6_cmd;
|
|
|
|
u_int8_t rip6_vers;
|
|
|
|
u_int8_t rip6_res1[2];
|
1999-10-30 13:11:06 +08:00
|
|
|
union {
|
|
|
|
struct netinfo6 ru6_nets[1];
|
|
|
|
char ru6_tracefile[1];
|
|
|
|
} rip6un;
|
|
|
|
#define rip6_nets rip6un.ru6_nets
|
|
|
|
#define rip6_tracefile rip6un.ru6_tracefile
|
|
|
|
};
|
|
|
|
|
|
|
|
#define HOPCNT_INFINITY6 16
|
|
|
|
#define MAXRTE 24
|
|
|
|
#define NEXTHOP_METRIC 0xff
|
|
|
|
|
|
|
|
#ifndef DEBUG
|
|
|
|
#define SUPPLY_INTERVAL6 30
|
|
|
|
#define RIP_LIFETIME 180
|
|
|
|
#define RIP_HOLDDOWN 120
|
|
|
|
#define RIP_TRIG_INTERVAL6 5
|
|
|
|
#define RIP_TRIG_INTERVAL6_MIN 1
|
|
|
|
#else
|
|
|
|
/* only for debugging; can not wait for 30sec to appear a bug */
|
|
|
|
#define SUPPLY_INTERVAL6 10
|
|
|
|
#define RIP_LIFETIME 60
|
|
|
|
#define RIP_HOLDDOWN 40
|
|
|
|
#define RIP_TRIG_INTERVAL6 5
|
|
|
|
#define RIP_TRIG_INTERVAL6_MIN 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define RIP6_PORT 521
|
|
|
|
#define RIP6_DEST "ff02::9"
|