Commit c6a2fe64 authored by Ondrej Zajicek's avatar Ondrej Zajicek
Browse files

Fixes handling of iface routes in static proto during reconfiguration.

During reconfiguration, iface routes were installed even when iface was down.
parent 36da2857
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)