Commit 9fad0876 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't send unfeasible requests for fresh routes.

parent e6c34750
......@@ -377,7 +377,9 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
route->seqno, route->refmetric,
format_address(src->id), seqno, refmetric);
if(src == route->src) {
send_unfeasible_request(neigh, 1, seqno, metric, a, p, plen);
/* If the route is fresh, no need to panic. */
if(!route_old(route))
send_unfeasible_request(neigh, 1, seqno, metric, a, p, plen);
return route;
}
uninstall_route(route);
......
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