Commit 47bffaba authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Change metric computation for wired links.

parent de36a284
......@@ -319,7 +319,8 @@ neighbour_cost(struct neighbour *neigh)
return INFINITY;
if(a <= 256 && b <= 256) {
return MAX(a, b);
/* Wired link */
return a;
} else {
/* a = 256/alpha, b = 256/beta, where alpha and beta are the expected
probabilities of a packet getting through in the direct and reverse
......
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