Commit c6a2fe64 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes handling of iface routes in static proto during reconfiguration.

During reconfiguration, iface routes were installed even when iface was down.
parent 36da2857
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment