]> git.proxmox.com Git - mirror_frr.git/commitdiff
[zebra] Only announce connected routes if link is detected
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Sat, 5 Jul 2008 23:32:37 +0000 (16:32 -0700)
committerPaul Jakma <paul@quagga.net>
Thu, 18 Jun 2009 19:18:26 +0000 (20:18 +0100)
Need to check both IFF_UP and IFF_RUNNING if link-detect is enabled,
before announcing routes.

zebra/connected.c

index ad3e96078b37ffebafdc437e4399ca04f82f80df..f3e5396c07c5fba5efe1b87c26242c962ee0818c 100644 (file)
@@ -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);