Commit aa07a19c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't send updates when a retracted route is lost.

parent 0144848a
...@@ -620,14 +620,13 @@ route_lost(struct source *src, int oldmetric) ...@@ -620,14 +620,13 @@ route_lost(struct source *src, int oldmetric)
new_route = find_best_route(src->prefix, src->plen, 1, NULL); new_route = find_best_route(src->prefix, src->plen, 1, NULL);
if(new_route) { if(new_route) {
consider_route(new_route); consider_route(new_route);
} else { } else if(oldmetric < INFINITY) {
/* Complain loudly. */ /* Complain loudly. */
send_update_resend(NULL, src->prefix, src->plen); send_update_resend(NULL, src->prefix, src->plen);
if(oldmetric < INFINITY) send_request_resend(NULL, src->prefix, src->plen,
send_request_resend(NULL, src->prefix, src->plen, src->metric >= INFINITY ?
src->metric >= INFINITY ? src->seqno : seqno_plus(src->seqno, 1),
src->seqno : seqno_plus(src->seqno, 1), hash_id(src->id));
hash_id(src->id));
} }
} }
......
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