Commit 061f0d37 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use consider_all_xroutes in install_route.

parent 1d6e8ec6
...@@ -137,7 +137,7 @@ void ...@@ -137,7 +137,7 @@ void
install_route(struct route *route) install_route(struct route *route)
{ {
struct route *installed; struct route *installed;
int i, rc; int rc;
if(route->installed) if(route->installed)
return; return;
...@@ -157,14 +157,7 @@ install_route(struct route *route) ...@@ -157,14 +157,7 @@ install_route(struct route *route)
} }
route->installed = 1; route->installed = 1;
for(i = 0; i < numxroutes; i++) { consider_all_xroutes(route);
if(xroutes[i].gateway == route->dest &&
xroutes[i].nexthop == route->nexthop &&
xroutes[i].time >= now.tv_sec - 240) {
update_xroute_metric(&xroutes[i], xroutes[i].cost);
consider_xroute(&xroutes[i]);
}
}
} }
void void
......
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