Commit 10e9eb42 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Accept unfeasible updates for very old sources.

parent 220796f2
......@@ -190,11 +190,6 @@ uninstall_route(struct route *route)
int
route_feasible(struct route *route)
{
if(route->dest->time < now.tv_sec - 200) {
/* Never mind what is probably stale data */
return 1;
}
return update_feasible(route->seqno, route->refmetric, route->dest);
}
......@@ -202,6 +197,11 @@ int
update_feasible(unsigned char seqno, unsigned short refmetric,
struct destination *dest)
{
if(dest->time < now.tv_sec - 200) {
/* Never mind what is probably stale data */
return 1;
}
return (seqno_compare(dest->seqno, seqno) < 0 ||
(dest->seqno == seqno && refmetric < dest->metric));
}
......
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