Commit 012a85b6 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't forward hopelessly out-of-date requests.

parent c99109be
...@@ -280,6 +280,12 @@ handle_request(struct neighbour *neigh, const unsigned char *prefix, ...@@ -280,6 +280,12 @@ handle_request(struct neighbour *neigh, const unsigned char *prefix,
if(hop_count <= 1) if(hop_count <= 1)
return; return;
if(router_hash == hash_id(route->src->address) &&
seqno_minus(seqno, route->seqno) > 100) {
/* Hopelessly out-of-date */
return;
}
/* Let's forward this request. */ /* Let's forward this request. */
if(route && route->metric < INFINITY) if(route && route->metric < INFINITY)
successor = route->neigh; successor = route->neigh;
......
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