Fixes feeding of new protocol, only preferred routes are announced.

This commit is contained in:
Ondrej Zajicek 2008-11-14 23:03:15 +01:00
parent 3f670371cf
commit 258d0ad4ca

View file

@ -851,13 +851,13 @@ again:
FIB_ITERATE_START(&h->table->fib, fit, fn) FIB_ITERATE_START(&h->table->fib, fit, fn)
{ {
net *n = (net *) fn; net *n = (net *) fn;
rte *e; rte *e = n->routes;
if (max_feed <= 0) if (max_feed <= 0)
{ {
FIB_ITERATE_PUT(fit, fn); FIB_ITERATE_PUT(fit, fn);
return 0; return 0;
} }
for(e=n->routes; e; e=e->next) if (e)
{ {
struct proto *q = e->attrs->proto; struct proto *q = e->attrs->proto;
ea_list *tmpa; ea_list *tmpa;