]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Moved sanity check of protocol state during annoucements to rte_announce.
authorMartin Mares <mj@ucw.cz>
Sat, 13 Feb 1999 20:19:24 +0000 (20:19 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 13 Feb 1999 20:19:24 +0000 (20:19 +0000)
nest/rt-table.c
sysdep/unix/krt-set.c

index cc735e32e830452b10cb2830ff2f0c8364fc58e6..73b679d5af6dc9e2d54217cd466e2c256c53efd2 100644 (file)
@@ -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
index c66116c483fde4fd0ed5ff990b1547d039dfbb6d..2f0abe66f56ee26ec54a231da329b92ba5553fb9 100644 (file)
@@ -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)