From 7cee1bb15089e4e994958651bd45a6f81c4215aa Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 25 Mar 2005 13:08:53 +0000 Subject: 2005-03-25 Jean-Mickael Guerin * interface.c, interface.h, rtadv.c, rtadv.h: extensions to Neighbor discovery for Mobile IPv6. --- zebra/interface.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'zebra/interface.c') 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 */ -- cgit v1.2.1