0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 07:31:54 +00:00

Babel: Remove interfaces on shutdown

This avoids calling interface timer between Babel going
PS_DOWN and finally cleaning up the resource pool.
This commit is contained in:
Maria Matejka 2023-09-25 09:31:18 +02:00
parent 5cdc1b679c
commit 860fbf0d65

View File

@ -2550,8 +2550,11 @@ babel_shutdown(struct proto *P)
TRACE(D_EVENTS, "Shutdown requested");
WALK_LIST(ifa, p->interfaces)
WALK_LIST_FIRST(ifa, p->interfaces)
{
babel_iface_shutdown(ifa);
babel_remove_iface(p, ifa);
}
return PS_DOWN;
}