Commit 748379ff authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Declare neighbours unreachable after 5 missed hellos.

parent 4fe396cb
......@@ -200,7 +200,7 @@ int
neighbour_rxcost(struct neighbour *neigh)
{
update_neighbour(neigh, -1, 0);
if(neigh->reach == 0)
if((neigh->reach & 0xF800) == 0)
return INFINITY;
else if(neigh->network->wired) {
if((neigh->reach & 0xE000) != 0) {
......
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