Commit 6edc1e1d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't refresh retracted routes.

parent 6eb7a30b
......@@ -319,9 +319,11 @@ update_route(const unsigned char *d, int seqno, int refmetric,
oldseqno = route->seqno;
oldmetric = route->metric;
if(refmetric < INFINITY) {
route->time = now.tv_sec;
if(route->refmetric >= INFINITY)
route->origtime = now.tv_sec;
}
route->seqno = seqno;
route->refmetric = refmetric;
change_route_metric(route, 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