summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-02-13 20:19:24 +0000
committerMartin Mares <mj@ucw.cz>1999-02-13 20:19:24 +0000
commit0a2e9d9f5685fb4ca63e02fd3645194bb6de79d7 (patch)
treeb48797945458a66ccca3b718f553321774616699 /nest/rt-table.c
parentf4aabcee62890b7c3e999e188ab72752fbb20b79 (diff)
Moved sanity check of protocol state during annoucements to rte_announce.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index cc735e32..73b679d5 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