From fd21325b2eb252644bc70918ace4f9c6c00c45ef Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 5 Jul 2008 16:32:37 -0700 Subject: [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. --- zebra/connected.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zebra/connected.c') 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); -- cgit v1.2.1