diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-09 15:42:34 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-09 15:42:34 -0700 |
commit | 44dcfe820185590f04c9f5f18579d08532fc1a4b (patch) | |
tree | da01e818bdc7e425e3e19948786ab201022e443f /tc/tc.c | |
parent | 7dec1bf88bc34e2d0b320f0c23bd1a060c73852b (diff) |
Change formatting of u32 back to default
Don't break scripts that depend on previous offset/value format.
Introduce a new -pretty flag for decoding, and (*gasp*) document
the formatting arguments.
Diffstat (limited to 'tc/tc.c')
-rw-r--r-- | tc/tc.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -33,6 +33,8 @@ int show_stats = 0; int show_details = 0; int show_raw = 0; +int show_pretty = 0; + int resolve_hosts = 0; int use_iec = 0; int force = 0; @@ -182,7 +184,7 @@ static void usage(void) fprintf(stderr, "Usage: tc [ OPTIONS ] OBJECT { COMMAND | help }\n" " tc [-force] -batch file\n" "where OBJECT := { qdisc | class | filter | action | monitor }\n" - " OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -b[atch] [file] }\n"); + " OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -p[retty] | -b[atch] [file] }\n"); } static int do_cmd(int argc, char **argv) @@ -273,6 +275,8 @@ int main(int argc, char **argv) ++show_details; } else if (matches(argv[1], "-raw") == 0) { ++show_raw; + } else if (matches(argv[1], "-pretty") == 0) { + ++show_pretty; } else if (matches(argv[1], "-Version") == 0) { printf("tc utility, iproute2-ss%s\n", SNAPSHOT); return 0; |