Commit fdd332b6 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Discard stale requests in update_destination.

parent 79d0a71f
...@@ -73,6 +73,14 @@ update_destination(struct destination *dest, ...@@ -73,6 +73,14 @@ update_destination(struct destination *dest,
dest->metric = metric; dest->metric = metric;
} }
dest->time = now.tv_sec; dest->time = now.tv_sec;
if(dest->requested_seqno >= 0) {
if(seqno_minus(dest->requested_seqno, seqno >= 16)) {
/* Stale data? */
dest->requested_seqno = -1;
dest->requested_net = NULL;
}
}
} }
void void
......
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