From 84cc940a9b74d5a867a5598f4b0f6c657eb61c9c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 5 Jul 2008 16:32:37 -0700 Subject: 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 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); -- cgit v1.2.3