Fixes handling of iface routes in static proto during reconfiguration.
During reconfiguration, iface routes were installed even when iface was down.
This commit is contained in:
parent
36da2857bc
commit
c6a2fe64be
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ static_reconfigure(struct proto *p, struct proto_config *new)
|
||||||
WALK_LIST(r, n->iface_routes)
|
WALK_LIST(r, n->iface_routes)
|
||||||
{
|
{
|
||||||
struct iface *ifa;
|
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);
|
static_install(p, r, ifa);
|
||||||
}
|
}
|
||||||
WALK_LIST(r, n->other_routes)
|
WALK_LIST(r, n->other_routes)
|
||||||
|
|
Loading…
Reference in a new issue