summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-02-09 00:53:04 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2013-02-09 00:53:04 +0100
commitc6a2fe64bed8dc67af0e868052b055aa0f45cdf2 (patch)
tree787f17af05dbec0813056169b6d09531437cabf1
parent36da2857bc911924a250a234f38cf58c3b21f1bc (diff)
Fixes handling of iface routes in static proto during reconfiguration.
During reconfiguration, iface routes were installed even when iface was down.
-rw-r--r--proto/static/static.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index 6a027f50..9eee820d 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)