Commit 19194440 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Display interface channel information in dump_tables.

parent b45a641a
...@@ -934,12 +934,13 @@ dump_tables(FILE *out) ...@@ -934,12 +934,13 @@ dump_tables(FILE *out)
fprintf(out, "My id %s seqno %d\n", format_eui64(myid), myseqno); fprintf(out, "My id %s seqno %d\n", format_eui64(myid), myseqno);
FOR_ALL_NEIGHBOURS(neigh) { FOR_ALL_NEIGHBOURS(neigh) {
fprintf(out, "Neighbour %s dev %s reach %04x rxcost %d txcost %d%s.\n", fprintf(out, "Neighbour %s dev %s reach %04x rxcost %d txcost %d chan %d%s.\n",
format_address(neigh->address), format_address(neigh->address),
neigh->network->ifname, neigh->network->ifname,
neigh->reach, neigh->reach,
neighbour_rxcost(neigh), neighbour_rxcost(neigh),
neigh->txcost, neigh->txcost,
neigh->network->channel,
net_up(neigh->network) ? "" : " (down)"); net_up(neigh->network) ? "" : " (down)");
} }
for(i = 0; i < numxroutes; i++) { for(i = 0; i < numxroutes; i++) {
......
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