Commit ec101080 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow wired links with cost > 256.

parent cc48591a
......@@ -313,8 +313,7 @@ neighbour_cost(struct neighbour *neigh)
if(b >= INFINITY)
return INFINITY;
if(a <= 256 && b <= 256) {
/* Wired link */
if(neigh->network->wired || (a <= 256 && b <= 256)) {
return a;
} else {
/* a = 256/alpha, b = 256/beta, where alpha and beta are the expected
......
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