- add 'ip rule' support. First take..
text data bss dec hex filename
2999 0 0 2999 bb7 networking/libiproute/iprule.o
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 @@
"\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 @@
"\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" \