Commit 24ad92a3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

When moderating full route dumps, send self update.

parent a043901b
......@@ -596,9 +596,11 @@ send_update(struct destination *dest, struct network *net)
net->ifname, format_address(dest->address));
buffer_update(net, dest);
} else {
debugf("Sending update to %s for ::/0.\n", net->ifname);
if(now.tv_sec - net->update_time < 2)
if(now.tv_sec - net->update_time < 2) {
send_self_update(net, 0);
return;
}
debugf("Sending update to %s for ::/0.\n", net->ifname);
for(i = 0; i < numroutes; i++)
if(routes[i].installed)
buffer_update(net, routes[i].dest);
......
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