Commit fc575fbd authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Search for new route before sending unfeasible requests.

parent f40c453b
...@@ -389,13 +389,12 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen, ...@@ -389,13 +389,12 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
route->hold_time = hold_time; route->hold_time = hold_time;
route_changed(route, oldsrc, oldmetric); route_changed(route, oldsrc, oldmetric);
if(lost)
route_lost(oldsrc, oldmetric);
if(!feasible) if(!feasible)
send_unfeasible_request(neigh, route->installed && route_old(route), send_unfeasible_request(neigh, route->installed && route_old(route),
seqno, metric, src); seqno, metric, src);
if(lost)
route_lost(oldsrc, oldmetric);
} else { } else {
if(refmetric >= INFINITY) if(refmetric >= INFINITY)
/* Somebody's retracting a route we never saw. */ /* Somebody's retracting a route we never saw. */
......
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