diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-05 16:32:37 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-05 16:32:37 -0700 |
commit | 84cc940a9b74d5a867a5598f4b0f6c657eb61c9c (patch) | |
tree | da1941d74d5b98fa2ec4fe35d93e3d0d361883c1 | |
parent | 8d95ee9f88945ee49932b1a9f7af5abe6048e6e6 (diff) | |
download | quagga-84cc940a9b74d5a867a5598f4b0f6c657eb61c9c.tar.bz2 quagga-84cc940a9b74d5a867a5598f4b0f6c657eb61c9c.tar.xz |
Only announce connected routes if link is detected
Need to check both IFF_UP and IFF_RUNNING if link-detect is enabled,
before announcing routes.
-rw-r--r-- | zebra/connected.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index 8bf1d337..ca22a011 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -86,7 +86,7 @@ connected_announce (struct interface *ifp, struct connected *ifc) zebra_interface_address_add_update (ifp, ifc); - if (if_is_up(ifp)) + if (if_is_operative(ifp)) { if (ifc->address->family == AF_INET) connected_up_ipv4 (ifp, ifc); |