diff options
author | vincent <vincent> | 2005-03-25 14:08:53 +0100 |
---|---|---|
committer | vincent <vincent> | 2005-03-25 14:08:53 +0100 |
commit | 7cee1bb15089e4e994958651bd45a6f81c4215aa (patch) | |
tree | 2f7d9b8a24411d06c80dbeb023069c1e3a2f4c2e /zebra/interface.h | |
parent | 2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com> (diff) | |
download | frr-7cee1bb15089e4e994958651bd45a6f81c4215aa.tar.xz frr-7cee1bb15089e4e994958651bd45a6f81c4215aa.zip |
2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
* interface.c, interface.h, rtadv.c, rtadv.h: extensions to Neighbor
discovery for Mobile IPv6.
Diffstat (limited to 'zebra/interface.h')
-rw-r--r-- | zebra/interface.h | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/zebra/interface.h b/zebra/interface.h index 91578ffb3..0033f7d57 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -46,7 +46,7 @@ #endif #ifdef RTADV -/* Router advertisement parameter. From RFC2461. */ +/* Router advertisement parameter. From RFC2461 and RFC3775. */ struct rtadvconf { /* A flag indicating whether or not the router sends periodic Router @@ -55,16 +55,18 @@ struct rtadvconf int AdvSendAdvertisements; /* The maximum time allowed between sending unsolicited multicast - Router Advertisements from the interface, in seconds. MUST be no - less than 4 seconds and no greater than 1800 seconds. + Router Advertisements from the interface, in milliseconds. + MUST be no less than 70 ms (RFC3775, section 7.4) and no greater + than 1800000 ms (See RFC2461). - Default: 600 seconds */ + Default: 600000 milliseconds */ int MaxRtrAdvInterval; -#define RTADV_MAX_RTR_ADV_INTERVAL 600 +#define RTADV_MAX_RTR_ADV_INTERVAL 600000 /* The minimum time allowed between sending unsolicited multicast - Router Advertisements from the interface, in seconds. MUST be no - less than 3 seconds and no greater than .75 * MaxRtrAdvInterval. + Router Advertisements from the interface, in milliseconds. + MUST be no less than 30 ms (See RFC3775, section 7.4). + MUST be no greater than .75 * MaxRtrAdvInterval. Default: 0.33 * MaxRtrAdvInterval */ int MinRtrAdvInterval; @@ -140,6 +142,35 @@ struct rtadvconf advertisement is sent. The link-local prefix SHOULD NOT be included in the list of advertised prefixes. */ struct list *AdvPrefixList; + + /* The TRUE/FALSE value to be placed in the "Home agent" + flag field in the Router Advertisement. See [RFC3775 7.1]. + + Default: FALSE */ + int AdvHomeAgentFlag; +#ifndef ND_RA_FLAG_HOME_AGENT +#define ND_RA_FLAG_HOME_AGENT 0x20 +#endif + + /* The value to be placed in Home Agent Information option if Home + Flag is set. + Default: 0 */ + int HomeAgentPreference; + + /* The value to be placed in Home Agent Information option if Home + Flag is set. Lifetime (seconds) MUST not be greater than 18.2 + hours. + The value 0 has special meaning: use of AdvDefaultLifetime value. + + Default: 0 */ + int HomeAgentLifetime; +#define RTADV_MAX_HALIFETIME 65520 /* 18.2 hours */ + + /* The TRUE/FALSE value to insert or not an Advertisement Interval + option. See [RFC 3775 7.3] + + Default: FALSE */ + int AdvIntervalOption; }; #endif /* RTADV */ |