Commit 7c062510 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Return infinite cost for down neighbours.

parent 0a6b665f
......@@ -291,6 +291,9 @@ neighbour_cost(struct neighbour *neigh)
{
int a, b;
if(!neigh->network->up)
return INFINITY;
a = neigh->txcost;
if(a >= INFINITY)
......
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