aboutsummaryrefslogtreecommitdiff
path: root/networking/ip.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-04-06 17:54:38 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-04-06 17:54:38 +0200
commit1140bf39ab113aefee8079755fac618bf6314db6 (patch)
tree461ef068fe91e45539884b175f0b50bf988dd80e /networking/ip.c
parent2d4823b65b67c7f1fa504037aa0d4065650f53d8 (diff)
downloadbusybox-w32-1140bf39ab113aefee8079755fac618bf6314db6.tar.gz
busybox-w32-1140bf39ab113aefee8079755fac618bf6314db6.tar.bz2
busybox-w32-1140bf39ab113aefee8079755fac618bf6314db6.zip
iproute: update help text, add commented-out code for unsupported options
function old new delta packed_usage 31327 31372 +45 do_iproute 132 157 +25 iproute_modify 1162 1164 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 72/0) Total: 72 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ip.c')
-rw-r--r--networking/ip.c39
1 files changed, 35 insertions, 4 deletions
diff --git a/networking/ip.c b/networking/ip.c
index 6fc43f653..155adcfe4 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -162,11 +162,42 @@
162//usage: "list|flush|add|del|change|append|replace|test ROUTE" 162//usage: "list|flush|add|del|change|append|replace|test ROUTE"
163//usage:#define iproute_full_usage "\n\n" 163//usage:#define iproute_full_usage "\n\n"
164//usage: "iproute list|flush SELECTOR\n" 164//usage: "iproute list|flush SELECTOR\n"
165//usage: "iproute get ADDRESS [from ADDRESS iif STRING]\n"
166//usage: " [oif STRING] [tos TOS]\n"
167//usage: "iproute add|del|change|append|replace|test ROUTE\n"
168//usage: " SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n" 165//usage: " SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n"
169//usage: " ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO] [metric METRIC]" 166//usage: " PREFIX := default|ADDRESS/MASK\n"
167//usage: "iproute get ADDRESS [from ADDRESS iif IFACE]\n"
168//usage: " [oif IFACE] [tos TOS]\n"
169//usage: "iproute add|del|change|append|replace|test ROUTE\n"
170//usage: " ROUTE := NODE_SPEC [INFO_SPEC]\n"
171//usage: " NODE_SPEC := PREFIX"IF_FEATURE_IP_RULE(" [table TABLE_ID]")" [proto RTPROTO] [scope SCOPE] [metric METRIC]\n"
172//usage: " INFO_SPEC := NH OPTIONS\n"
173//usage: " NH := [via [inet|inet6] ADDRESS] [dev IFACE] [src ADDRESS] [onlink]\n"
174//usage: " OPTIONS := [mtu NUM]"
175//upstream man ip-route:
176//======================
177//ip route { show | flush } SELECTOR
178//ip route save SELECTOR
179//ip route restore
180//ip route get ADDRESS [ from ADDRESS iif STRING ] [ oif STRING ] [ tos TOS ]
181//ip route { add | del | change | append | replace } ROUTE
182//SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ] [ table TABLE_ID ] [ proto RTPROTO ] [ type TYPE ] [ scope SCOPE ]
183//ROUTE := NODE_SPEC [ INFO_SPEC ]
184//NODE_SPEC := [ TYPE ] PREFIX [ tos TOS ] [ table TABLE_ID ] [ proto RTPROTO ] [ scope SCOPE ] [ metric METRIC ]
185//INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ] ...
186//NH := [ encap ENCAP ] [ via [ FAMILY ] ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS
187// ..............................................................^ I guess [src ADDRESS] should be here
188//FAMILY := [ inet | inet6 | ipx | dnet | mpls | bridge | link ]
189//OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ] [ as [ to ] ADDRESS ] rtt TIME ] [ rttvar TIME ] [ reordering NUMBER ] [ window NUMBER ] [ cwnd NUMBER ] [ ssthresh REALM ] [ realms REALM ]
190// [ rto_min TIME ] [ initcwnd NUMBER ] [ initrwnd NUMBER ] [ features FEATURES ] [ quickack BOOL ] [ congctl NAME ] [ pref PREF ] [ expires TIME ]
191//TYPE := [ unicast | local | broadcast | multicast | throw | unreachable | prohibit | blackhole | nat ]
192//TABLE_ID := [ local | main | default | all | NUMBER ]
193//SCOPE := [ host | link | global | NUMBER ]
194//NHFLAGS := [ onlink | pervasive ]
195//RTPROTO := [ kernel | boot | static | NUMBER ]
196//FEATURES := [ ecn | ]
197//PREF := [ low | medium | high ]
198//ENCAP := [ MPLS | IP ]
199//ENCAP_MPLS := mpls [ LABEL ]
200//ENCAP_IP := ip id TUNNEL_ID dst REMOTE_IP [ tos TOS ] [ ttl TTL ]
170//usage: 201//usage:
171//usage:#define iprule_trivial_usage 202//usage:#define iprule_trivial_usage
172//usage: "[list] | add|del SELECTOR ACTION" 203//usage: "[list] | add|del SELECTOR ACTION"