[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quagga-dev
Subject:    [quagga-dev 6229] [PATCH 20/21] Only announce connected routes if
From:       Stephen Hemminger <shemminger () vyatta ! com>
Date:       2008-07-05 23:32:37
Message-ID: 20081201231212.878050902 () vyatta ! com
[Download RAW message or body]

Need to check both IFF_UP and IFF_RUNNING if link-detect is enabled,
before announcing routes.
---
 zebra/connected.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zebra/connected.c b/zebra/connected.c
index 93a5dc9..b235d8c 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -87,7 +87,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);
-- 
1.5.4.3

_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic