Commit a07d28ff authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Flush update buffers before sending requests.

This makes sure that any neighbour answering the request has up-to-date
information about us.
parent 5255a5fd
......@@ -503,6 +503,10 @@ send_request(struct network *net,
return;
}
/* Make sure any buffered updates go out before this request. */
if(!net || update_net == net)
flushupdates();
debugf("Sending request to %s for %s (%d hops).\n",
net->ifname, prefix ? format_prefix(prefix, plen) : "any",
hop_count);
......@@ -568,6 +572,11 @@ send_unicast_request(struct neighbour *neigh,
{
unsigned char buf[24];
/* Make sure any buffered updates go out before this request. */
if(update_net == neigh->network)
flushupdates();
flushbuf(neigh->network);
debugf("Sending unicast request to %s (%s) for %s (%d hops).\n",
format_address(neigh->id),
format_address(neigh->address),
......
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