Commit 25972bbc authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Display up/down status in neighbour dump.

parent 0f1f1623
...@@ -714,12 +714,13 @@ dump_tables(FILE *out) ...@@ -714,12 +714,13 @@ dump_tables(FILE *out)
if(neighs[i].id[0] == 0xFF) 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%s.\n",
format_address(neighs[i].address), format_address(neighs[i].address),
neighs[i].network->ifname, neighs[i].network->ifname,
neighs[i].reach, neighs[i].reach,
neighbour_rxcost(&neighs[i]), neighbour_rxcost(&neighs[i]),
neighs[i].txcost); neighs[i].txcost,
neighs[i].network->up ? "" : " (down)");
} }
for(i = 0; i < numxroutes; i++) { for(i = 0; i < numxroutes; i++) {
fprintf(out, "%s metric %d (%s)\n", fprintf(out, "%s metric %d (%s)\n",
......
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