From 0a2e9d9f5685fb4ca63e02fd3645194bb6de79d7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 Feb 1999 20:19:24 +0000 Subject: Moved sanity check of protocol state during annoucements to rte_announce. --- nest/rt-table.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'nest') diff --git a/nest/rt-table.c b/nest/rt-table.c index cc735e3..73b679d 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -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 -- cgit v1.2.3