summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-09-04 13:22:58 +0000
committerBernhard Reutner-Fischer2008-09-04 13:22:58 +0000
commit0901c515183de69c73a9385a33f7464bc0219204 (patch)
tree14fe75e854c8d77cc5fec687ba469acad4bc8f8e /include
parent161931efa510e641d72465378bfc6ce8373d2cd7 (diff)
downloadbusybox-0901c515183de69c73a9385a33f7464bc0219204.zip
busybox-0901c515183de69c73a9385a33f7464bc0219204.tar.gz
- add WIP stub for tc.
Printing worked at some point. Modify/Delete needs some refacturing.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h20
2 files changed, 21 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 46135dc..a526693 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))
USE_TAIL(APPLET(tail, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_TAR(APPLET(tar, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_TASKSET(APPLET(taskset, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
+USE_TC(APPLET(tc, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_TCPSVD(APPLET_ODDNAME(tcpsvd, tcpudpsvd, _BB_DIR_USR_BIN, _BB_SUID_NEVER, tcpsvd))
USE_TEE(APPLET(tee, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_TELNET(APPLET(telnet, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index e7532e0..c0b81ef 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -4111,6 +4111,26 @@
"$ echo $?\n" \
"1\n"
+#define tc_trivial_usage \
+ /*"[OPTIONS] "*/"OBJECT CMD [dev STRING]"
+#define tc_full_usage "\n\n" \
+ "OBJECT: {qdisc|class|filter}\n" \
+ "CMD: {add|del|change|replace|show}\n" \
+ "\n" \
+ "qdisc [ handle QHANDLE ] [ root |"USE_FEATURE_TC_INGRESS(" ingress |")" parent CLASSID ]\n" \
+ /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
+ "\t[ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
+ "\tQDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" \
+ "qdisc show [ dev STRING ]"USE_FEATURE_TC_INGRESS(" [ingress]")"\n" \
+ "class [ classid CLASSID ] [ root | parent CLASSID ]\n" \
+ "\t[ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
+ "class show [ dev STRING ] [ root | parent CLASSID ]\n" \
+ "filter [ pref PRIO ] [ protocol PROTO ]\n" \
+ /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
+ "\t[ root | classid CLASSID ] [ handle FILTERID ]\n" \
+ "\t[ [ FILTER_TYPE ] [ help | OPTIONS ] ]\n" \
+ "filter show [ dev STRING ] [ root | parent CLASSID ]"
+
#define tcpsvd_trivial_usage \
"[-hEv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] ip port prog..."
/* with not-implemented options: */