Each protocol now hears even its own routes and needs to make its own
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.
This commit is contained in:
parent
47b793064c
commit
7f3d198df1
1 changed files with 2 additions and 3 deletions
|
@ -111,9 +111,8 @@ rte_announce(net *net, rte *new, rte *old)
|
||||||
struct proto *p;
|
struct proto *p;
|
||||||
|
|
||||||
WALK_LIST(p, proto_list)
|
WALK_LIST(p, proto_list)
|
||||||
if (!new || new->attrs->proto != p)
|
if (p->rt_notify)
|
||||||
if (p->rt_notify)
|
p->rt_notify(p, net, new, old);
|
||||||
p->rt_notify(p, net, new, old);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue