mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Don't send any neighbor notifications to protocols being flushed.
This commit is contained in:
parent
783f8b689a
commit
3fb4ca2ce2
@ -133,7 +133,7 @@ neigh_if_up(struct iface *i)
|
|||||||
n->sibling = i->neigh;
|
n->sibling = i->neigh;
|
||||||
i->neigh = n;
|
i->neigh = n;
|
||||||
DBG("Waking up sticky neighbor %I\n", n->addr);
|
DBG("Waking up sticky neighbor %I\n", n->addr);
|
||||||
if (n->proto->neigh_notify)
|
if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING)
|
||||||
n->proto->neigh_notify(n);
|
n->proto->neigh_notify(n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,7 +148,7 @@ neigh_if_down(struct iface *i)
|
|||||||
m = n->sibling;
|
m = n->sibling;
|
||||||
DBG("Flushing neighbor %I on %s\n", n->addr, n->iface->name);
|
DBG("Flushing neighbor %I on %s\n", n->addr, n->iface->name);
|
||||||
n->iface = NULL;
|
n->iface = NULL;
|
||||||
if (n->proto->neigh_notify)
|
if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING)
|
||||||
n->proto->neigh_notify(n);
|
n->proto->neigh_notify(n);
|
||||||
if (!(n->flags & NEF_STICKY))
|
if (!(n->flags & NEF_STICKY))
|
||||||
{
|
{
|
||||||
@ -171,7 +171,7 @@ neigh_prune(void)
|
|||||||
N = &i->neigh;
|
N = &i->neigh;
|
||||||
while (n = *N)
|
while (n = *N)
|
||||||
{
|
{
|
||||||
if (n->proto->core_state == FS_HUNGRY || n->proto->core_state == FS_FLUSHING)
|
if (n->proto->core_state == FS_FLUSHING)
|
||||||
{
|
{
|
||||||
*N = n->sibling;
|
*N = n->sibling;
|
||||||
rem_node(&n->n);
|
rem_node(&n->n);
|
||||||
|
Loading…
Reference in New Issue
Block a user