Commit 78877d2b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't reply to hopelessly out-of-date requests.

parent 06c90567
......@@ -251,9 +251,14 @@ handle_request(struct neighbour *neigh, const unsigned char *prefix,
xroute = find_xroute(prefix, plen);
if(xroute) {
if(hop_count > 0 && router_hash == hash_id(myid)) {
if(seqno_compare(seqno, myseqno) > 0)
if(seqno_compare(seqno, myseqno) > 0) {
if(seqno_minus(seqno, myseqno) > 100) {
/* Hopelessly out-of-date request */
return;
}
update_myseqno(1);
}
}
send_update(neigh->network, 1, prefix, plen);
return;
}
......
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