diff options
author | Chris Caputo <ccaputo@alt.net> | 2009-05-03 04:40:57 +0000 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-23 14:15:57 +0100 |
commit | b60668d092f1778395b6c10b406059b8cbf235b8 (patch) | |
tree | 7869d81a4a8d440f8cb41ddb0e66c8279e2b9636 /zebra/interface.h | |
parent | 5bc52c76c2816a3be9a033c3e5bf4fea1908e3cd (diff) |
RFC 4191 Default Router Preference support for router advertisements
Adds "ipv6 nd router-preference (high|medium|low)" and
"no ipv6 nd router-preference" interface commands.
Files modified:
doc/ipv6.texi
zebra/interface.c
zebra/interface.h
zebra/rtadv.c
zebra/rtadv.h
Signed-off-by: Chris Caputo <ccaputo@alt.net>
Diffstat (limited to 'zebra/interface.h')
-rw-r--r-- | zebra/interface.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/zebra/interface.h b/zebra/interface.h index 968430ab..0cf66403 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -46,7 +46,7 @@ #endif #ifdef RTADV -/* Router advertisement parameter. From RFC2461 and RFC3775. */ +/* Router advertisement parameter. From RFC2461, RFC3775 and RFC4191. */ struct rtadvconf { /* A flag indicating whether or not the router sends periodic Router @@ -171,6 +171,13 @@ struct rtadvconf Default: FALSE */ int AdvIntervalOption; + + /* The value to be placed in the Default Router Preference field of + a router advertisement. See [RFC 4191 2.1 & 2.2] + + Default: 0 (medium) */ + int DefaultPreference; +#define RTADV_PREF_MEDIUM 0x0 /* Per RFC4191. */ }; #endif /* RTADV */ |