]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes handling of iface routes in static proto during reconfiguration.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 8 Feb 2013 23:53:04 +0000 (00:53 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 8 Feb 2013 23:53:04 +0000 (00:53 +0100)
During reconfiguration, iface routes were installed even when iface was down.

proto/static/static.c

index 6a027f503c87ef20b7f710bbe8241ece51c712f5..9eee820d572c796c0e85c78b109a3bdcf1b803af 100644 (file)
@@ -461,7 +461,7 @@ static_reconfigure(struct proto *p, struct proto_config *new)
   WALK_LIST(r, n->iface_routes)
     {
       struct iface *ifa;
-      if (ifa = if_find_by_name(r->if_name))
+      if ((ifa = if_find_by_name(r->if_name)) && (ifa->flags & IF_UP))
        static_install(p, r, ifa);
     }
   WALK_LIST(r, n->other_routes)