Fixes feeding of new protocol, only preferred routes are announced.
This commit is contained in:
parent
3f670371cf
commit
258d0ad4ca
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue