Commit b00ac4a4 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use request_requested when deciding to send an update.

parent d42d6d03
...@@ -432,8 +432,7 @@ send_triggered_update(struct route *route, int oldmetric) ...@@ -432,8 +432,7 @@ send_triggered_update(struct route *route, int oldmetric)
if((route->metric >= INFINITY && oldmetric < INFINITY) || if((route->metric >= INFINITY && oldmetric < INFINITY) ||
(route->metric - oldmetric >= 256 || oldmetric - route->metric >= 256)) (route->metric - oldmetric >= 256 || oldmetric - route->metric >= 256))
send_update(route->dest, NULL); send_update(route->dest, NULL);
else if(route->dest->requested_seqno >= 0 && else if(request_requested(route->dest, route->seqno, NULL))
seqno_compare(route->dest->requested_seqno, route->seqno) <= 0)
send_update(route->dest, route->dest->requested_net); send_update(route->dest, route->dest->requested_net);
if(oldmetric < INFINITY) { if(oldmetric < 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