diff options
author | vincent <vincent> | 2005-03-25 13:08:53 +0000 |
---|---|---|
committer | vincent <vincent> | 2005-03-25 13:08:53 +0000 |
commit | 6adf73183670055364a1e130b44587b4fa10392b (patch) | |
tree | 07bdcb7e420a756349dfc28d474666c778786df4 /zebra/interface.c | |
parent | 7442f4c317846e06567feab31afdfe9158bb94c4 (diff) | |
download | quagga-6adf73183670055364a1e130b44587b4fa10392b.tar.bz2 quagga-6adf73183670055364a1e130b44587b4fa10392b.tar.xz |
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.c')
-rw-r--r-- | zebra/interface.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 6c3e33aa..55717545 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -87,11 +87,15 @@ if_zebra_new_hook (struct interface *ifp) rtadv->AdvIntervalTimer = 0; rtadv->AdvManagedFlag = 0; rtadv->AdvOtherConfigFlag = 0; + rtadv->AdvHomeAgentFlag = 0; rtadv->AdvLinkMTU = 0; rtadv->AdvReachableTime = 0; rtadv->AdvRetransTimer = 0; rtadv->AdvCurHopLimit = 0; rtadv->AdvDefaultLifetime = RTADV_ADV_DEFAULT_LIFETIME; + rtadv->HomeAgentPreference = 0; + rtadv->HomeAgentLifetime = RTADV_ADV_DEFAULT_LIFETIME; + rtadv->AdvIntervalOption = 0; rtadv->AdvPrefixList = list_new (); } @@ -604,6 +608,7 @@ nd_dump_vty (struct vty *vty, struct interface *ifp) { struct zebra_if *zif; struct rtadvconf *rtadv; + int interval; zif = (struct zebra_if *) ifp->info; rtadv = &zif->rtadv; @@ -614,8 +619,15 @@ nd_dump_vty (struct vty *vty, struct interface *ifp) rtadv->AdvReachableTime, VTY_NEWLINE); vty_out (vty, " ND advertised retransmit interval is %d milliseconds%s", rtadv->AdvRetransTimer, VTY_NEWLINE); - vty_out (vty, " ND router advertisements are sent every %d seconds%s", - rtadv->MaxRtrAdvInterval, VTY_NEWLINE); + interval = rtadv->MaxRtrAdvInterval; + if (interval % 1000) + vty_out (vty, " ND router advertisements are sent every " + "%d milliseconds%s", interval, + VTY_NEWLINE); + else + vty_out (vty, " ND router advertisements are sent every " + "%d seconds%s", interval / 1000, + VTY_NEWLINE); vty_out (vty, " ND router advertisements live for %d seconds%s", rtadv->AdvDefaultLifetime, VTY_NEWLINE); if (rtadv->AdvManagedFlag) @@ -624,6 +636,13 @@ nd_dump_vty (struct vty *vty, struct interface *ifp) else vty_out (vty, " Hosts use stateless autoconfig for addresses.%s", VTY_NEWLINE); + if (rtadv->AdvHomeAgentFlag) + vty_out (vty, " ND router advertisements with " + "Home Agent flag bit set.%s", + VTY_NEWLINE); + if (rtadv->AdvIntervalOption) + vty_out (vty, " ND router advertisements with Adv. Interval option.%s", + VTY_NEWLINE); } } #endif /* RTADV */ |