Commit 81e14e06 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make sure all tests for void neighbours use FF.

parent ff6c1d4d
...@@ -633,7 +633,7 @@ dump_tables(FILE *out) ...@@ -633,7 +633,7 @@ dump_tables(FILE *out)
} }
for(i = 0; i < numneighs; i++) { for(i = 0; i < numneighs; i++) {
if(neighs[i].id[0] == 0) if(neighs[i].id[0] == 0xFF)
continue; continue;
fprintf(out, "Neighbour %s ", format_address(neighs[i].id)); fprintf(out, "Neighbour %s ", format_address(neighs[i].id));
fprintf(out, "at %s dev %s reach %04x rxcost %d txcost %d.\n", fprintf(out, "at %s dev %s reach %04x rxcost %d txcost %d.\n",
...@@ -739,7 +739,7 @@ expire_routes(void) ...@@ -739,7 +739,7 @@ expire_routes(void)
debugf("Expiring old routes.\n"); debugf("Expiring old routes.\n");
for(i = 0; i < numneighs; i++) { for(i = 0; i < numneighs; i++) {
if(neighs[i].id[0] == 0) if(neighs[i].id[0] == 0xFF)
continue; continue;
check_neighbour(&neighs[i]); check_neighbour(&neighs[i]);
/* No need to update_neighbour_metric -- update_route_metric below. */ /* No need to update_neighbour_metric -- update_route_metric below. */
......
...@@ -719,7 +719,7 @@ send_txcost(struct neighbour *neigh, struct network *net) ...@@ -719,7 +719,7 @@ send_txcost(struct neighbour *neigh, struct network *net)
schedule_flush(net); schedule_flush(net);
} else { } else {
for(i = 0; i < numneighs; i++) { for(i = 0; i < numneighs; i++) {
if(neighs[i].id[0] != 0) { if(neighs[i].id[0] != 0xFF) {
if(neighs[i].network == net) if(neighs[i].network == net)
send_txcost(&neighs[i], net); send_txcost(&neighs[i], net);
} }
......
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