diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 17 |
2 files changed, 15 insertions, 3 deletions
diff --git a/include/applets.h b/include/applets.h index 1d6cc93..80ee222 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 7898473..2a6e335 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" \ |