From: Stephen Hemminger Date: Sat, 5 Jul 2008 23:32:37 +0000 (-0700) Subject: [zebra] Only announce connected routes if link is detected X-Git-Tag: frr-2.0-rc1~2317 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fd21325b2eb252644bc70918ace4f9c6c00c45ef;p=matthieu%2Ffrr.git [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. --- diff --git a/zebra/connected.c b/zebra/connected.c index ad3e96078b..f3e5396c07 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);