From: Ondrej Zajicek Date: Fri, 8 Feb 2013 23:53:04 +0000 (+0100) Subject: Fixes handling of iface routes in static proto during reconfiguration. X-Git-Tag: v1.3.10~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a2fe64bed8dc67af0e868052b055aa0f45cdf2;p=thirdparty%2Fbird.git Fixes handling of iface routes in static proto during reconfiguration. During reconfiguration, iface routes were installed even when iface was down. --- diff --git a/proto/static/static.c b/proto/static/static.c index 6a027f503..9eee820d5 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -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)