]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Each protocol now hears even its own routes and needs to make its own
authorMartin Mares <mj@ucw.cz>
Sat, 17 Oct 1998 11:24:13 +0000 (11:24 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Oct 1998 11:24:13 +0000 (11:24 +0000)
loop detection. This is needed since both RIP and OSPF handle multiple
neighbors and they need to redistribute routes learned from each neighbor
to the remaining ones.

nest/rt-table.c

index dc72c6b1a91de4093f3b2cb892570d35a89bd867..228be1211c0ab7c32cf8b8d4b4fa543653cf70ed 100644 (file)
@@ -111,9 +111,8 @@ rte_announce(net *net, rte *new, rte *old)
   struct proto *p;
 
   WALK_LIST(p, proto_list)
-    if (!new || new->attrs->proto != p)
-      if (p->rt_notify)
-       p->rt_notify(p, net, new, old);
+    if (p->rt_notify)
+      p->rt_notify(p, net, new, old);
 }
 
 void