Commit 03475d29 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Introduce some hysteresis in choice of xroute.

parent 7ae147e8
...@@ -163,7 +163,7 @@ consider_xroute(struct xroute *xroute) ...@@ -163,7 +163,7 @@ consider_xroute(struct xroute *xroute)
installed = find_installed_myxroute(xroute->prefix, xroute->plen); installed = find_installed_myxroute(xroute->prefix, xroute->plen);
if(!installed) { if(!installed) {
installed = find_installed_xroute(xroute->prefix, xroute->plen); installed = find_installed_xroute(xroute->prefix, xroute->plen);
if(!installed || installed->metric >= xroute->metric) if(!installed || installed->metric > xroute->metric + 64)
install_xroute(xroute); install_xroute(xroute);
} }
} }
......
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