mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 07:31:54 +00:00
RIP: actually remove the interface structures on shutdown
This avoids a spurious route update fail when protocol shutdown collides with an incoming RIP packet.
This commit is contained in:
parent
21b75c472d
commit
dabf2f5625
@ -1243,8 +1243,8 @@ rip_shutdown(struct proto *P)
|
|||||||
TRACE(D_EVENTS, "Shutdown requested");
|
TRACE(D_EVENTS, "Shutdown requested");
|
||||||
|
|
||||||
struct rip_iface *ifa;
|
struct rip_iface *ifa;
|
||||||
WALK_LIST(ifa, p->iface_list)
|
WALK_LIST_FIRST(ifa, p->iface_list)
|
||||||
rip_iface_stop(ifa);
|
rip_remove_iface(p, ifa);
|
||||||
|
|
||||||
return PS_DOWN;
|
return PS_DOWN;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user