diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-09-04 13:22:58 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-09-04 13:22:58 +0000 |
commit | 0901c515183de69c73a9385a33f7464bc0219204 (patch) | |
tree | 14fe75e854c8d77cc5fec687ba469acad4bc8f8e /include | |
parent | 161931efa510e641d72465378bfc6ce8373d2cd7 (diff) | |
download | busybox-w32-0901c515183de69c73a9385a33f7464bc0219204.tar.gz busybox-w32-0901c515183de69c73a9385a33f7464bc0219204.tar.bz2 busybox-w32-0901c515183de69c73a9385a33f7464bc0219204.zip |
- add WIP stub for tc.
Printing worked at some point. Modify/Delete needs some refacturing.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 46135dccb..a5266933d 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -355,6 +355,7 @@ USE_TAC(APPLET_NOEXEC(tac, tac, _BB_DIR_USR_BIN, _BB_SUID_NEVER, tac)) | |||
355 | USE_TAIL(APPLET(tail, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 355 | USE_TAIL(APPLET(tail, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
356 | USE_TAR(APPLET(tar, _BB_DIR_BIN, _BB_SUID_NEVER)) | 356 | USE_TAR(APPLET(tar, _BB_DIR_BIN, _BB_SUID_NEVER)) |
357 | USE_TASKSET(APPLET(taskset, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 357 | USE_TASKSET(APPLET(taskset, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
358 | USE_TC(APPLET(tc, _BB_DIR_SBIN, _BB_SUID_NEVER)) | ||
358 | USE_TCPSVD(APPLET_ODDNAME(tcpsvd, tcpudpsvd, _BB_DIR_USR_BIN, _BB_SUID_NEVER, tcpsvd)) | 359 | USE_TCPSVD(APPLET_ODDNAME(tcpsvd, tcpudpsvd, _BB_DIR_USR_BIN, _BB_SUID_NEVER, tcpsvd)) |
359 | USE_TEE(APPLET(tee, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 360 | USE_TEE(APPLET(tee, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
360 | USE_TELNET(APPLET(telnet, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 361 | USE_TELNET(APPLET(telnet, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
diff --git a/include/usage.h b/include/usage.h index e7532e070..c0b81efd1 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -4111,6 +4111,26 @@ | |||
4111 | "$ echo $?\n" \ | 4111 | "$ echo $?\n" \ |
4112 | "1\n" | 4112 | "1\n" |
4113 | 4113 | ||
4114 | #define tc_trivial_usage \ | ||
4115 | /*"[OPTIONS] "*/"OBJECT CMD [dev STRING]" | ||
4116 | #define tc_full_usage "\n\n" \ | ||
4117 | "OBJECT: {qdisc|class|filter}\n" \ | ||
4118 | "CMD: {add|del|change|replace|show}\n" \ | ||
4119 | "\n" \ | ||
4120 | "qdisc [ handle QHANDLE ] [ root |"USE_FEATURE_TC_INGRESS(" ingress |")" parent CLASSID ]\n" \ | ||
4121 | /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \ | ||
4122 | "\t[ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \ | ||
4123 | "\tQDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" \ | ||
4124 | "qdisc show [ dev STRING ]"USE_FEATURE_TC_INGRESS(" [ingress]")"\n" \ | ||
4125 | "class [ classid CLASSID ] [ root | parent CLASSID ]\n" \ | ||
4126 | "\t[ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \ | ||
4127 | "class show [ dev STRING ] [ root | parent CLASSID ]\n" \ | ||
4128 | "filter [ pref PRIO ] [ protocol PROTO ]\n" \ | ||
4129 | /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \ | ||
4130 | "\t[ root | classid CLASSID ] [ handle FILTERID ]\n" \ | ||
4131 | "\t[ [ FILTER_TYPE ] [ help | OPTIONS ] ]\n" \ | ||
4132 | "filter show [ dev STRING ] [ root | parent CLASSID ]" | ||
4133 | |||
4114 | #define tcpsvd_trivial_usage \ | 4134 | #define tcpsvd_trivial_usage \ |
4115 | "[-hEv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] ip port prog..." | 4135 | "[-hEv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] ip port prog..." |
4116 | /* with not-implemented options: */ | 4136 | /* with not-implemented options: */ |