summaryrefslogtreecommitdiff
path: root/networking/ip.c
diff options
context:
space:
mode:
authorPere Orga2011-04-11 03:29:49 +0200
committerDenys Vlasenko2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /networking/ip.c
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
busybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ip.c')
-rw-r--r--networking/ip.c73
1 files changed, 73 insertions, 0 deletions
diff --git a/networking/ip.c b/networking/ip.c
index 350656c..98d5833 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -9,6 +9,79 @@
* Bernhard Reutner-Fischer rewrote to use index_in_substr_array
*/
+/* would need to make the " | " optional depending on more than one selected: */
+//usage:#define ip_trivial_usage
+//usage: "[OPTIONS] {"
+//usage: IF_FEATURE_IP_ADDRESS("address | ")
+//usage: IF_FEATURE_IP_ROUTE("route | ")
+//usage: IF_FEATURE_IP_LINK("link | ")
+//usage: IF_FEATURE_IP_TUNNEL("tunnel | ")
+//usage: IF_FEATURE_IP_RULE("rule")
+//usage: "} {COMMAND}"
+//usage:#define ip_full_usage "\n\n"
+//usage: "ip [OPTIONS] OBJECT {COMMAND}\n"
+//usage: "where OBJECT := {"
+//usage: IF_FEATURE_IP_ADDRESS("address | ")
+//usage: IF_FEATURE_IP_ROUTE("route | ")
+//usage: IF_FEATURE_IP_LINK("link | ")
+//usage: IF_FEATURE_IP_TUNNEL("tunnel | ")
+//usage: IF_FEATURE_IP_RULE("rule")
+//usage: "}\n"
+//usage: "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
+//usage:
+//usage:#define ipaddr_trivial_usage
+//usage: "{ {add|del} IFADDR dev STRING | {show|flush}\n"
+//usage: " [dev STRING] [to PREFIX] }"
+//usage:#define ipaddr_full_usage "\n\n"
+//usage: "ipaddr {add|delete} IFADDR dev STRING\n"
+//usage: "ipaddr {show|flush} [dev STRING] [scope SCOPE-ID]\n"
+//usage: " [to PREFIX] [label PATTERN]\n"
+//usage: " IFADDR := PREFIX | ADDR peer PREFIX\n"
+//usage: " [broadcast ADDR] [anycast ADDR]\n"
+//usage: " [label STRING] [scope SCOPE-ID]\n"
+//usage: " SCOPE-ID := [host | link | global | NUMBER]"
+//usage:
+//usage:#define iplink_trivial_usage
+//usage: "{ set DEVICE { up | down | arp { on | off } | show [DEVICE] }"
+//usage:#define iplink_full_usage "\n\n"
+//usage: "iplink set DEVICE { up | down | arp | multicast { on | off } |\n"
+//usage: " dynamic { on | off } |\n"
+//usage: " mtu MTU }\n"
+//usage: "iplink show [DEVICE]"
+//usage:
+//usage:#define iproute_trivial_usage
+//usage: "{ list | flush | { add | del | change | append |\n"
+//usage: " replace | monitor } ROUTE }"
+//usage:#define iproute_full_usage "\n\n"
+//usage: "iproute { list | flush } SELECTOR\n"
+//usage: "iproute get ADDRESS [from ADDRESS iif STRING]\n"
+//usage: " [oif STRING] [tos TOS]\n"
+//usage: "iproute { add | del | change | append | replace | monitor } ROUTE\n"
+//usage: " SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n"
+//usage: " ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO]\n"
+//usage: " [metric METRIC]"
+//usage:
+//usage:#define iprule_trivial_usage
+//usage: "{[list | add | del] RULE}"
+//usage:#define iprule_full_usage "\n\n"
+//usage: "iprule [list | add | del] SELECTOR ACTION\n"
+//usage: " SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]\n"
+//usage: " [dev STRING] [pref NUMBER]\n"
+//usage: " ACTION := [table TABLE_ID] [nat ADDRESS]\n"
+//usage: " [prohibit | reject | unreachable]\n"
+//usage: " [realms [SRCREALM/]DSTREALM]\n"
+//usage: " TABLE_ID := [local | main | default | NUMBER]"
+//usage:
+//usage:#define iptunnel_trivial_usage
+//usage: "{ add | change | del | show } [NAME]\n"
+//usage: " [mode { ipip | gre | sit }]\n"
+//usage: " [remote ADDR] [local ADDR] [ttl TTL]"
+//usage:#define iptunnel_full_usage "\n\n"
+//usage: "iptunnel { add | change | del | show } [NAME]\n"
+//usage: " [mode { ipip | gre | sit }] [remote ADDR] [local ADDR]\n"
+//usage: " [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n"
+//usage: " [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]"
+
#include "libbb.h"
#include "libiproute/utils.h"