Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/networking/ip.c

    r2725 r3232  
    99 * Bernhard Reutner-Fischer rewrote to use index_in_substr_array
    1010 */
     11
     12/* would need to make the " | " optional depending on more than one selected: */
     13//usage:#define ip_trivial_usage
     14//usage:       "[OPTIONS] {"
     15//usage:    IF_FEATURE_IP_ADDRESS("address | ")
     16//usage:    IF_FEATURE_IP_ROUTE("route | ")
     17//usage:    IF_FEATURE_IP_LINK("link | ")
     18//usage:    IF_FEATURE_IP_TUNNEL("tunnel | ")
     19//usage:    IF_FEATURE_IP_RULE("rule")
     20//usage:       "} {COMMAND}"
     21//usage:#define ip_full_usage "\n\n"
     22//usage:       "ip [OPTIONS] OBJECT {COMMAND}\n"
     23//usage:       "where OBJECT := {"
     24//usage:    IF_FEATURE_IP_ADDRESS("address | ")
     25//usage:    IF_FEATURE_IP_ROUTE("route | ")
     26//usage:    IF_FEATURE_IP_LINK("link | ")
     27//usage:    IF_FEATURE_IP_TUNNEL("tunnel | ")
     28//usage:    IF_FEATURE_IP_RULE("rule")
     29//usage:       "}\n"
     30//usage:       "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
     31//usage:
     32//usage:#define ipaddr_trivial_usage
     33//usage:       "{ {add|del} IFADDR dev STRING | {show|flush}\n"
     34//usage:       "        [dev STRING] [to PREFIX] }"
     35//usage:#define ipaddr_full_usage "\n\n"
     36//usage:       "ipaddr {add|delete} IFADDR dev STRING\n"
     37//usage:       "ipaddr {show|flush} [dev STRING] [scope SCOPE-ID]\n"
     38//usage:       "    [to PREFIX] [label PATTERN]\n"
     39//usage:       "    IFADDR := PREFIX | ADDR peer PREFIX\n"
     40//usage:       "    [broadcast ADDR] [anycast ADDR]\n"
     41//usage:       "    [label STRING] [scope SCOPE-ID]\n"
     42//usage:       "    SCOPE-ID := [host | link | global | NUMBER]"
     43//usage:
     44//usage:#define iplink_trivial_usage
     45//usage:       "{ set DEVICE { up | down | arp { on | off } | show [DEVICE] }"
     46//usage:#define iplink_full_usage "\n\n"
     47//usage:       "iplink set DEVICE { up | down | arp | multicast { on | off } |\n"
     48//usage:       "            dynamic { on | off } |\n"
     49//usage:       "            mtu MTU }\n"
     50//usage:       "iplink show [DEVICE]"
     51//usage:
     52//usage:#define iproute_trivial_usage
     53//usage:       "{ list | flush | add | del | change | append |\n"
     54//usage:       "        replace | test } ROUTE"
     55//usage:#define iproute_full_usage "\n\n"
     56//usage:       "iproute { list | flush } SELECTOR\n"
     57//usage:       "iproute get ADDRESS [from ADDRESS iif STRING]\n"
     58//usage:       "    [oif STRING] [tos TOS]\n"
     59//usage:       "iproute { add | del | change | append | replace | test } ROUTE\n"
     60//usage:       "    SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n"
     61//usage:       "    ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO] [metric METRIC]"
     62//usage:
     63//usage:#define iprule_trivial_usage
     64//usage:       "{[list | add | del] RULE}"
     65//usage:#define iprule_full_usage "\n\n"
     66//usage:       "iprule [list | add | del] SELECTOR ACTION\n"
     67//usage:       "    SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]\n"
     68//usage:       "            [dev STRING] [pref NUMBER]\n"
     69//usage:       "    ACTION := [table TABLE_ID] [nat ADDRESS]\n"
     70//usage:       "            [prohibit | reject | unreachable]\n"
     71//usage:       "            [realms [SRCREALM/]DSTREALM]\n"
     72//usage:       "    TABLE_ID := [local | main | default | NUMBER]"
     73//usage:
     74//usage:#define iptunnel_trivial_usage
     75//usage:       "{ add | change | del | show } [NAME]\n"
     76//usage:       "    [mode { ipip | gre | sit }]\n"
     77//usage:       "    [remote ADDR] [local ADDR] [ttl TTL]"
     78//usage:#define iptunnel_full_usage "\n\n"
     79//usage:       "iptunnel { add | change | del | show } [NAME]\n"
     80//usage:       "    [mode { ipip | gre | sit }] [remote ADDR] [local ADDR]\n"
     81//usage:       "    [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n"
     82//usage:       "    [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]"
    1183
    1284#include "libbb.h"
Note: See TracChangeset for help on using the changeset viewer.