diff options
author | Denys Vlasenko | 2017-01-21 14:27:07 +0100 |
---|---|---|
committer | Denys Vlasenko | 2017-01-21 14:27:07 +0100 |
commit | 12389889c052cf7bf494bd7cabc0819f6fe9888f (patch) | |
tree | cf5f8852d5c3aa6495ba82a961b03f2829c16e92 /networking/tc.c | |
parent | 8908c1d4f518829cb94e40da54f536a5d7b6404c (diff) | |
download | busybox-12389889c052cf7bf494bd7cabc0819f6fe9888f.zip busybox-12389889c052cf7bf494bd7cabc0819f6fe9888f.tar.gz |
ip: better --help
Was:
Usage: ip [OPTIONS] address|route|link|tunnel|neigh|rule [COMMAND]
ip [OPTIONS] OBJECT [COMMAND]
where OBJECT := address|route|link|tunnel|neigh|rule
OPTIONS := -f[amily] inet|inet6|link | -o[neline]
User: instead of repeating list of OBJECTs twice, you could at least
show available COMMANDs...
Now:
Usage: ip [OPTIONS] address|route|link|tunnel|neigh|rule [COMMAND]
OPTIONS := -f[amily] inet|inet6|link | -o[neline]
COMMAND :=
ip addr add|del IFADDR dev IFACE | show|flush [dev IFACE] [to PREFIX]
ip route list|flush|add|del|change|append|replace|test ROUTE
ip link set IFACE [up|down] [arp on|off] | show [IFACE]
ip tunnel add|change|del|show [NAME]
[mode ipip|gre|sit]
[remote ADDR] [local ADDR] [ttl TTL]
ip neigh show|flush [to PREFIX] [dev DEV] [nud STATE]
ip rule [list] | add|del SELECTOR ACTION
While at it, tweak tc --help too (it stays disabled, thus no effect)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tc.c')
-rw-r--r-- | networking/tc.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/networking/tc.c b/networking/tc.c index 25875aa..23abf63 100644 --- a/networking/tc.c +++ b/networking/tc.c @@ -27,22 +27,22 @@ /* //usage: "[OPTIONS] OBJECT CMD [dev STRING]" */ //usage: "OBJECT CMD [dev STRING]" //usage:#define tc_full_usage "\n\n" -//usage: "OBJECT: {qdisc|class|filter}\n" -//usage: "CMD: {add|del|change|replace|show}\n" +//usage: "OBJECT: qdisc|class|filter\n" +//usage: "CMD: add|del|change|replace|show\n" //usage: "\n" -//usage: "qdisc [ handle QHANDLE ] [ root |"IF_FEATURE_TC_INGRESS(" ingress |")" parent CLASSID ]\n" -/* //usage: "[ estimator INTERVAL TIME_CONSTANT ]\n" */ -//usage: " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" -//usage: " QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" -//usage: "qdisc show [ dev STRING ]"IF_FEATURE_TC_INGRESS(" [ingress]")"\n" -//usage: "class [ classid CLASSID ] [ root | parent CLASSID ]\n" -//usage: " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" -//usage: "class show [ dev STRING ] [ root | parent CLASSID ]\n" -//usage: "filter [ pref PRIO ] [ protocol PROTO ]\n" -/* //usage: "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ -//usage: " [ root | classid CLASSID ] [ handle FILTERID ]\n" -//usage: " [ [ FILTER_TYPE ] [ help | OPTIONS ] ]\n" -//usage: "filter show [ dev STRING ] [ root | parent CLASSID ]" +//usage: "qdisc [handle QHANDLE] [root|"IF_FEATURE_TC_INGRESS("ingress|")"parent CLASSID]\n" +/* //usage: "[estimator INTERVAL TIME_CONSTANT]\n" */ +//usage: " [[QDISC_KIND] [help|OPTIONS]]\n" +//usage: " QDISC_KIND := [p|b]fifo|tbf|prio|cbq|red|etc.\n" +//usage: "qdisc show [dev STRING]"IF_FEATURE_TC_INGRESS(" [ingress]")"\n" +//usage: "class [classid CLASSID] [root|parent CLASSID]\n" +//usage: " [[QDISC_KIND] [help|OPTIONS] ]\n" +//usage: "class show [ dev STRING ] [root|parent CLASSID]\n" +//usage: "filter [pref PRIO] [protocol PROTO]\n" +/* //usage: "\t[estimator INTERVAL TIME_CONSTANT]\n" */ +//usage: " [root|classid CLASSID] [handle FILTERID]\n" +//usage: " [[FILTER_TYPE] [help|OPTIONS]]\n" +//usage: "filter show [dev STRING] [root|parent CLASSID]" #include "libbb.h" #include "common_bufsiz.h" |