Commit 0a2e9d9f authored by Martin Mareš's avatar Martin Mareš

Moved sanity check of protocol state during annoucements to rte_announce.

parent f4aabcee
......@@ -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
......
......@@ -115,8 +115,6 @@ krt_add_route(rte *new)
void
krt_set_notify(struct proto *x, net *net, rte *new, rte *old)
{
if (x->proto_state != PS_UP)
bug("FIXME: krt_set_notify called for downed protocol");
if (old)
krt_remove_route(old);
if (new)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment