mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Better flushing of interfaces.
When device protocol goes down, interfaces should be flushed asynchronously (in the same way like routes from protocols are flushed), when protocol goes to DOWN/HUNGRY. This fixes the problem with static routes staying in kernel routing table after BIRD shutdown.
This commit is contained in:
@@ -139,15 +139,6 @@ kif_shutdown(struct proto *P)
|
||||
krt_if_shutdown(p);
|
||||
kif_proto = NULL;
|
||||
|
||||
if_start_update(); /* Remove all interfaces */
|
||||
if_end_update();
|
||||
/*
|
||||
* FIXME: Is it really a good idea? It causes routes to be flushed,
|
||||
* but at the same time it avoids sending of these deletions to the kernel,
|
||||
* because krt thinks the kernel itself has already removed the route
|
||||
* when downing the interface. Sad.
|
||||
*/
|
||||
|
||||
return PS_DOWN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user