Commit 1d6e8ec6 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix consider_all_xroutes.

parent ba6e77ce
......@@ -185,7 +185,8 @@ consider_all_xroutes(struct route *route)
int i;
for(i = 0; i < numxroutes; i++) {
if(xroutes[i].nexthop == route->nexthop)
if(xroutes[i].gateway == route->dest &&
xroutes[i].nexthop == route->nexthop)
consider_route(route);
}
}
......
......@@ -45,6 +45,7 @@ extern int xroute_hold_delay;
void install_xroute(struct xroute *xroute);
void uninstall_xroute(struct xroute *xroute);
void consider_xroute(struct xroute *xroute);
void consider_all_xroutes(struct route *route);
void flush_xroute(struct xroute *xroute);
void flush_neighbour_xroutes(struct neighbour *neigh);
void retract_xroutes(struct destination *gateway, struct neighbour *nexthop,
......
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