0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Don't send any neighbor notifications to protocols being flushed.

This commit is contained in:
Martin Mares 1999-02-13 20:57:47 +00:00
parent 783f8b689a
commit 3fb4ca2ce2

View File

@ -133,7 +133,7 @@ neigh_if_up(struct iface *i)
n->sibling = i->neigh;
i->neigh = n;
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);
}
}
@ -148,7 +148,7 @@ neigh_if_down(struct iface *i)
m = n->sibling;
DBG("Flushing neighbor %I on %s\n", n->addr, n->iface->name);
n->iface = NULL;
if (n->proto->neigh_notify)
if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING)
n->proto->neigh_notify(n);
if (!(n->flags & NEF_STICKY))
{
@ -171,7 +171,7 @@ neigh_prune(void)
N = &i->neigh;
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;
rem_node(&n->n);