Commit 1345ad25 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Adam Wujek

tools/rtu_stat: fix printouts to match the enable/disable logic

parent 73f675fa
......@@ -158,13 +158,13 @@ void show_help(char *prgname)
" ports\n");
fprintf(stderr, " learning <enable|disable> mask <port_mask>: Enable/disable learning process\n"
" in RTU for ports given as a mask\n");
fprintf(stderr, " unrec: Status of dropping frames when destination MAC is not\n"
" matched\n");
fprintf(stderr, " unrec <enable|disable> [<port>]: Enable/disable dropping frames when\n"
fprintf(stderr, " unrec: Status of broadcasting/dropping frames when destination MAC\n"
" is not matched\n");
fprintf(stderr, " unrec <enable|disable> [<port>]: Enable/disable broadcasting frames when\n"
" the destination MAC is not matched.\n"
" Apply setting on a given <port> or all ports\n"
" when <port> is not provided.\n");
fprintf(stderr, " unrec mask <enable|disable> <port_mask>: Enable/disable dropping frames when\n"
fprintf(stderr, " unrec mask <enable|disable> <port_mask>: Enable/disable broadcasting frames when\n"
" the destination MAC is not matched.\n"
" Apply setting on ports given as a mask\n");
fprintf(stderr, " vlan <vid> <fid> <port_mask> [<drop>, <prio>, <has_prio>, <prio_override>]:\n"
......@@ -771,9 +771,9 @@ int main(int argc, char **argv)
}
printf("Dropping frames when the destination MAC is not "
"matched\n");
printf("-------------\n");
printf("Port | Drop\n");
printf("-------------\n");
printf("----------------------\n");
printf("Port | Unrec broadcast\n");
printf("----------------------\n");
for (i = 0; i < nports; i++) {
printf(" %2d %s\n", i + 1,
(ret & 1) ? "enabled" : "disabled");
......
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