diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-28 08:57:30 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-28 08:57:30 -0700 |
commit | 6e69833249b701330913d80bd9b3c7c991ee61d5 (patch) | |
tree | 7bb53b1fe1170e04bdfd0a6a70465413188f6c84 /zebra/interface.c | |
parent | 99a9a0c9e045732e5977b24192e971ade92b59aa (diff) | |
download | quagga-6e69833249b701330913d80bd9b3c7c991ee61d5.tar.bz2 quagga-6e69833249b701330913d80bd9b3c7c991ee61d5.tar.xz |
Add ipv6 link detect hooks
Enable ipv6 link detect in kernel if needed.
Diffstat (limited to 'zebra/interface.c')
-rw-r--r-- | zebra/interface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index f6d2ff9b..1be55c31 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1032,6 +1032,9 @@ DEFUN (linkdetect, /* Enable FIB to remove kernel routes as well */ if_linkdetect_on(ifp->name); +#ifdef HAVE_IPV6 + if_linkdetect_ipv6_on(ifp->name); +#endif /* When linkdetection is enabled, if might come down */ if (!if_is_operative(ifp) && if_was_operative) if_down(ifp); @@ -1058,6 +1061,9 @@ DEFUN (no_linkdetect, /* Disable FIB update on link-detect */ if_linkdetect_off(ifp->name); +#ifdef HAVE_IPV6 + if_linkdetect_ipv6_off(ifp->name); +#endif /* Interface may come up after disabling link detection */ if (if_is_operative(ifp) && !if_was_operative) if_up(ifp); |