Commit bed6c823 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't send self-updates on idle interfaces.

parent afe2935e
...@@ -994,13 +994,16 @@ send_update(struct network *net, int urgent, ...@@ -994,13 +994,16 @@ send_update(struct network *net, int urgent,
buffer_update(net, prefix, plen); buffer_update(net, prefix, plen);
} }
} else { } else {
send_self_update(net); if(!network_idle(net)) {
if(!parasitic && !network_idle(net)) { send_self_update(net);
debugf("Sending update to %s for any.\n", net->ifname); if(!parasitic) {
for(i = 0; i < numroutes; i++) debugf("Sending update to %s for any.\n", net->ifname);
if(routes[i].installed) for(i = 0; i < numroutes; i++)
buffer_update(net, if(routes[i].installed)
routes[i].src->prefix, routes[i].src->plen); buffer_update(net,
routes[i].src->prefix,
routes[i].src->plen);
}
} }
delay_jitter(&net->update_timeout, update_interval); delay_jitter(&net->update_timeout, update_interval);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment