Commit d2c4b5ec authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Send a request when a route's metric increases a lot.

parent 7a8657fc
...@@ -429,4 +429,10 @@ send_triggered_update(struct route *route, int oldmetric) ...@@ -429,4 +429,10 @@ send_triggered_update(struct route *route, int oldmetric)
if(route->metric - oldmetric >= 256 || oldmetric - route->metric >= 256) if(route->metric - oldmetric >= 256 || oldmetric - route->metric >= 256)
send_update(route->dest, NULL); send_update(route->dest, NULL);
if(route->metric - oldmetric >= 384) {
/* This route's metric has increased a lot -- let's hope we find
something better */
send_request(NULL, route->dest);
}
} }
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