summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-05 16:32:37 -0700
committerPaul Jakma <paul@quagga.net>2009-06-18 20:18:26 +0100
commitfd21325b2eb252644bc70918ace4f9c6c00c45ef (patch)
treeb77e6fc133289e025fdc08217ac9c05a573bc077
parent4308abba5cab18c1d30b962567b06b02a1a15361 (diff)
[zebra] 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index ad3e9607..f3e5396c 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);