mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Moved sanity check of protocol state during annoucements to rte_announce.
This commit is contained in:
@@ -112,8 +112,11 @@ rte_announce(net *net, rte *new, rte *old)
|
||||
struct proto *p;
|
||||
|
||||
WALK_LIST(p, proto_list)
|
||||
if (p->rt_notify)
|
||||
p->rt_notify(p, net, new, old);
|
||||
{
|
||||
ASSERT(p->core_state == FS_HAPPY);
|
||||
if (p->rt_notify)
|
||||
p->rt_notify(p, net, new, old);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user