Commit ebf3181a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't apply extra hysteresis when switching sources.

Only apply the normal amount of hysteresis.
parent 856bb832
...@@ -835,13 +835,6 @@ consider_route(struct route *route) ...@@ -835,13 +835,6 @@ consider_route(struct route *route)
if(route_metric(installed) >= INFINITY) if(route_metric(installed) >= INFINITY)
goto install; goto install;
if(route_metric(installed) >= route_metric(route) + 192)
goto install;
/* Avoid switching sources */
if(installed->src != route->src)
return;
if(route_metric(installed) >= route_metric(route) + 64) if(route_metric(installed) >= route_metric(route) + 64)
goto install; goto install;
......
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