diff options
author | vincent <vincent> | 2005-03-25 13:08:53 +0000 |
---|---|---|
committer | vincent <vincent> | 2005-03-25 13:08:53 +0000 |
commit | 7cee1bb15089e4e994958651bd45a6f81c4215aa (patch) | |
tree | 2f7d9b8a24411d06c80dbeb023069c1e3a2f4c2e /zebra/interface.c | |
parent | 29c4c9bd11aaf36a0b3ed2414c816cdb8d4178bd (diff) |
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 */ |