Commit f5f0f2be authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow external routes with infinite metric.

parent a940ff3f
......@@ -78,9 +78,6 @@ install_xroute(struct xroute *xroute)
if(xroute->installed)
return;
if(xroute->metric >= INFINITY)
return;
if(xroute->plen >= 8 &&
(xroute->prefix[0] == 0 || xroute->prefix[0] == 0xFF)) {
fprintf(stderr, "Attempted to install martian xroute.\n");
......@@ -145,9 +142,6 @@ consider_xroute(struct xroute *xroute)
if(xroute->installed)
return;
if(xroute->metric >= INFINITY)
return;
if(find_installed_route(xroute->gateway) == NULL)
return;
......
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