Commit adca107f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make sure we don't spuriously reconsider a timed-out route.

parent 758485db
......@@ -253,11 +253,10 @@ update_route_metric(struct route *route)
oldmetric = route->metric;
if(route->time < now.tv_sec - route_timeout_delay) {
if(oldmetric < INFINITY) {
newmetric = INFINITY;
route->refmetric = INFINITY;
if(oldmetric < INFINITY)
route->seqno = (route->dest->seqno + 1) & 0xFF;
}
newmetric = INFINITY;
} else {
newmetric = MIN(route->refmetric + neighbour_cost(route->nexthop),
INFINITY);
......
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