version 1.1.1.1, 2012/02/21 17:26:11
|
version 1.1.1.2, 2012/10/09 09:22:29
|
Line 46
|
Line 46
|
#endif |
#endif |
|
|
#ifdef RTADV |
#ifdef RTADV |
/* Router advertisement parameter. From RFC2461, RFC3775 and RFC4191. */ | /* Router advertisement parameter. From RFC4861, RFC6275 and RFC4191. */ |
struct rtadvconf |
struct rtadvconf |
{ |
{ |
/* A flag indicating whether or not the router sends periodic Router |
/* A flag indicating whether or not the router sends periodic Router |
Line 56 struct rtadvconf
|
Line 56 struct rtadvconf
|
|
|
/* The maximum time allowed between sending unsolicited multicast |
/* The maximum time allowed between sending unsolicited multicast |
Router Advertisements from the interface, in milliseconds. |
Router Advertisements from the interface, in milliseconds. |
MUST be no less than 70 ms (RFC3775, section 7.4) and no greater | MUST be no less than 70 ms [RFC6275 7.5] and no greater |
than 1800000 ms (See RFC2461). | than 1800000 ms [RFC4861 6.2.1]. |
|
|
Default: 600000 milliseconds */ |
Default: 600000 milliseconds */ |
int MaxRtrAdvInterval; |
int MaxRtrAdvInterval; |
Line 65 struct rtadvconf
|
Line 65 struct rtadvconf
|
|
|
/* The minimum time allowed between sending unsolicited multicast |
/* The minimum time allowed between sending unsolicited multicast |
Router Advertisements from the interface, in milliseconds. |
Router Advertisements from the interface, in milliseconds. |
MUST be no less than 30 ms (See RFC3775, section 7.4). | MUST be no less than 30 ms [RFC6275 7.5]. |
MUST be no greater than .75 * MaxRtrAdvInterval. |
MUST be no greater than .75 * MaxRtrAdvInterval. |
|
|
Default: 0.33 * MaxRtrAdvInterval */ |
Default: 0.33 * MaxRtrAdvInterval */ |
int MinRtrAdvInterval; | int MinRtrAdvInterval; /* This field is currently unused. */ |
#define RTADV_MIN_RTR_ADV_INTERVAL (0.33 * RTADV_MAX_RTR_ADV_INTERVAL) |
#define RTADV_MIN_RTR_ADV_INTERVAL (0.33 * RTADV_MAX_RTR_ADV_INTERVAL) |
|
|
/* Unsolicited Router Advertisements' interval timer. */ |
/* Unsolicited Router Advertisements' interval timer. */ |
Line 131 struct rtadvconf
|
Line 131 struct rtadvconf
|
|
|
Default: 3 * MaxRtrAdvInterval */ |
Default: 3 * MaxRtrAdvInterval */ |
int AdvDefaultLifetime; |
int AdvDefaultLifetime; |
#define RTADV_ADV_DEFAULT_LIFETIME (3 * RTADV_MAX_RTR_ADV_INTERVAL) | #define RTADV_MAX_RTRLIFETIME 9000 /* 2.5 hours */ |
|
|
|
|
/* A list of prefixes to be placed in Prefix Information options in |
/* A list of prefixes to be placed in Prefix Information options in |
Router Advertisement messages sent from the interface. |
Router Advertisement messages sent from the interface. |
|
|
Line 144 struct rtadvconf
|
Line 143 struct rtadvconf
|
struct list *AdvPrefixList; |
struct list *AdvPrefixList; |
|
|
/* The TRUE/FALSE value to be placed in the "Home agent" |
/* The TRUE/FALSE value to be placed in the "Home agent" |
flag field in the Router Advertisement. See [RFC3775 7.1]. | flag field in the Router Advertisement. See [RFC6275 7.1]. |
|
|
Default: FALSE */ |
Default: FALSE */ |
int AdvHomeAgentFlag; |
int AdvHomeAgentFlag; |
Line 167 struct rtadvconf
|
Line 166 struct rtadvconf
|
#define RTADV_MAX_HALIFETIME 65520 /* 18.2 hours */ |
#define RTADV_MAX_HALIFETIME 65520 /* 18.2 hours */ |
|
|
/* The TRUE/FALSE value to insert or not an Advertisement Interval |
/* The TRUE/FALSE value to insert or not an Advertisement Interval |
option. See [RFC 3775 7.3] | option. See [RFC 6275 7.3] |
|
|
Default: FALSE */ |
Default: FALSE */ |
int AdvIntervalOption; |
int AdvIntervalOption; |