0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

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)
{
net *n = (net *) fn;
rte *e;
rte *e = n->routes;
if (max_feed <= 0)
{
FIB_ITERATE_PUT(fit, fn);
return 0;
}
for(e=n->routes; e; e=e->next)
if (e)
{
struct proto *q = e->attrs->proto;
ea_list *tmpa;