Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-21 18:36:08 +0300
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-21 18:36:08 +0300
commit921f5df25fdb9d89bd02ac0030ebb6ca7e003f0d (patch)
treef6b5be4741c2856fa0d0f0fa148ee4d0a1fecbaa /include
parent04b30ba3b88c721b81194cae9cb439ddba4712db (diff)
- add 'ip rule' support. First take..
text data bss dec hex filename 2999 0 0 2999 bb7 networking/libiproute/iprule.o
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h17
2 files changed, 15 insertions, 3 deletions
diff --git a/include/applets.h b/include/applets.h
index 1d6cc932e..80ee222d8 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -164,6 +164,7 @@ USE_IPCRM(APPLET(ipcrm, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS))
USE_IPCS(APPLET(ipcs, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS))
USE_IPLINK(APPLET(iplink, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPROUTE(APPLET(iproute, _BB_DIR_BIN, _BB_SUID_NEVER))
+USE_IPRULE(APPLET(iprule, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPTUNNEL(APPLET(iptunnel, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_KILL(APPLET(kill, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_KILLALL(APPLET_ODDNAME(killall, kill, _BB_DIR_USR_BIN, _BB_SUID_NEVER, killall))
diff --git a/include/usage.h b/include/usage.h
index 7898473a6..2a6e335ba 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1453,10 +1453,10 @@ USE_FEATURE_DATE_ISOFMT( \
"\t-s\tstrip symbol tables"
#define ip_trivial_usage \
- "[ OPTIONS ] { address | link | route | tunnel } { COMMAND | help }"
+ "[OPTIONS] {address | link | route | tunnel | rule} {COMMAND}"
#define ip_full_usage \
- "ip [ OPTIONS ] OBJECT { COMMAND | help }\n" \
- "where OBJECT := { link | addr | route | tunnel }\n" \
+ "ip [OPTIONS] OBJECT {COMMAND}\n" \
+ "where OBJECT := {link | addr | route | tunnel |rule}\n" \
"OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
#define ipaddr_trivial_usage \
@@ -1529,6 +1529,17 @@ USE_FEATURE_DATE_ISOFMT( \
"\t\t\tSELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \
"\t\t\tROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]"
+#define iprule_trivial_usage \
+ "{[ list | add | del ] RULE}"
+#define iprule_full_usage \
+ "iprule [ list | add | del ] SELECTOR ACTION\n" \
+ "\tSELECTOR := [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK ]\n" \
+ "\t\t\t[ dev STRING ] [ pref NUMBER ]\n" \
+ "\tACTION := [ table TABLE_ID ] [ nat ADDRESS ]\n" \
+ "\t\t\t[ prohibit | reject | unreachable ]\n" \
+ "\t\t\t[ realms [SRCREALM/]DSTREALM ]\n" \
+ "\tTABLE_ID := [ local | main | default | NUMBER ]"
+
#define iptunnel_trivial_usage \
"{ add | change | del | show } [ NAME ]\n" \
"\t\t[ mode { ipip | gre | sit } ]\n" \