Commit 92ea77f8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Slightly more efficient loop in flush_neighbour_routes.

parent f5f0f2be
......@@ -114,12 +114,13 @@ flush_neighbour_routes(struct neighbour *neigh)
{
int i;
again:
for(i = 0; i < numroutes; i++) {
i = 0;
while(i < numroutes) {
if(routes[i].nexthop == neigh) {
flush_route(routes + i);
goto again;
continue;
}
i++;
}
}
......
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