diff options
author | Bernhard Reutner-Fischer | 2006-11-21 15:36:08 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-11-21 15:36:08 +0000 |
commit | 921f5df25fdb9d89bd02ac0030ebb6ca7e003f0d (patch) | |
tree | f6b5be4741c2856fa0d0f0fa148ee4d0a1fecbaa /include/usage.h | |
parent | 04b30ba3b88c721b81194cae9cb439ddba4712db (diff) | |
download | busybox-921f5df25fdb9d89bd02ac0030ebb6ca7e003f0d.zip busybox-921f5df25fdb9d89bd02ac0030ebb6ca7e003f0d.tar.gz |
- 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/usage.h')
-rw-r--r-- | include/usage.h | 17 |
1 files changed, 14 insertions, 3 deletions
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" \ |