]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes OSPF reconfigure w.r.t. downed ifaces.
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 10 Nov 2012 15:18:12 +0000 (16:18 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 10 Nov 2012 15:18:12 +0000 (16:18 +0100)
proto/ospf/iface.c

index aa7f7892726daa4b18bb6cf08de9cadbe96d70d8..290a86340650792240ff6715fa160be5697b852d 100644 (file)
@@ -886,6 +886,10 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
   struct ifa *a;
 
   WALK_LIST(iface, iface_list)
+  {
+    if (! (iface->flags & IF_UP))
+      continue;
+
     WALK_LIST(a, iface->addrs)
     {
       if (a->flags & IA_SECONDARY)
@@ -911,6 +915,7 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
        ospf_iface_new(oa, a, ip);
       }
     }
+  }
 }
 
 
@@ -1014,6 +1019,10 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
   struct ifa *a;
 
   WALK_LIST(iface, iface_list)
+  {
+    if (! (iface->flags & IF_UP))
+      continue;
+
     WALK_LIST(a, iface->addrs)
     {
       if (a->flags & IA_SECONDARY)
@@ -1042,6 +1051,7 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
        ospf_iface_new(oa, a, ip);
       }
     }
+  }
 }
 
 #endif