summaryrefslogtreecommitdiff
path: root/networking/ip.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 09:05:14 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 09:05:14 +0100
commit47367e1d50b81501e8a6ce215f8be4eeacdda693 (patch)
tree28be64a4a758a274ef2459628ec29384722cd3fb /networking/ip.c
parente32b64c4ec9272295df6852fb2a2888d7799d2f0 (diff)
downloadbusybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.tar.gz
busybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.tar.bz2
busybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.zip
Convert all networking/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ip.c')
-rw-r--r--networking/ip.c124
1 files changed, 124 insertions, 0 deletions
diff --git a/networking/ip.c b/networking/ip.c
index ddfe74e9c..99f150e61 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -8,6 +8,130 @@
8 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses 8 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
9 * Bernhard Reutner-Fischer rewrote to use index_in_substr_array 9 * Bernhard Reutner-Fischer rewrote to use index_in_substr_array
10 */ 10 */
11//config:config IP
12//config: bool "ip"
13//config: default y
14//config: select PLATFORM_LINUX
15//config: help
16//config: The "ip" applet is a TCP/IP interface configuration and routing
17//config: utility. You generally don't need "ip" to use busybox with
18//config: TCP/IP.
19//config:
20//config:config FEATURE_IP_ADDRESS
21//config: bool "ip address"
22//config: default y
23//config: depends on IP
24//config: help
25//config: Address manipulation support for the "ip" applet.
26//config:
27//config:config FEATURE_IP_LINK
28//config: bool "ip link"
29//config: default y
30//config: depends on IP
31//config: help
32//config: Configure network devices with "ip".
33//config:
34//config:config FEATURE_IP_ROUTE
35//config: bool "ip route"
36//config: default y
37//config: depends on IP
38//config: help
39//config: Add support for routing table management to "ip".
40//config:
41//config:config FEATURE_IP_ROUTE_DIR
42//config: string "ip route configuration directory"
43//config: default "/etc/iproute2"
44//config: depends on FEATURE_IP_ROUTE
45//config: help
46//config: Location of the "ip" applet routing configuration.
47//config:
48//config:config FEATURE_IP_TUNNEL
49//config: bool "ip tunnel"
50//config: default y
51//config: depends on IP
52//config: help
53//config: Add support for tunneling commands to "ip".
54//config:
55//config:config FEATURE_IP_RULE
56//config: bool "ip rule"
57//config: default y
58//config: depends on IP
59//config: help
60//config: Add support for rule commands to "ip".
61//config:
62//config:config FEATURE_IP_NEIGH
63//config: bool "ip neighbor"
64//config: default y
65//config: depends on IP
66//config: help
67//config: Add support for neighbor commands to "ip".
68//config:
69//config:config FEATURE_IP_SHORT_FORMS
70//config: bool "Support short forms of ip commands"
71//config: default y
72//config: depends on IP
73//config: help
74//config: Also support short-form of ip <OBJECT> commands:
75//config: ip addr -> ipaddr
76//config: ip link -> iplink
77//config: ip route -> iproute
78//config: ip tunnel -> iptunnel
79//config: ip rule -> iprule
80//config: ip neigh -> ipneigh
81//config:
82//config: Say N unless you desparately need the short form of the ip
83//config: object commands.
84//config:
85//config:config FEATURE_IP_RARE_PROTOCOLS
86//config: bool "Support displaying rarely used link types"
87//config: default n
88//config: depends on IP
89//config: help
90//config: If you are not going to use links of type "frad", "econet",
91//config: "bif" etc, you probably don't need to enable this.
92//config: Ethernet, wireless, infrared, ppp/slip, ip tunnelling
93//config: link types are supported without this option selected.
94//config:
95//config:config IPADDR
96//config: bool
97//config: default y
98//config: depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_ADDRESS
99//config:
100//config:config IPLINK
101//config: bool
102//config: default y
103//config: depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_LINK
104//config:
105//config:config IPROUTE
106//config: bool
107//config: default y
108//config: depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_ROUTE
109//config:
110//config:config IPTUNNEL
111//config: bool
112//config: default y
113//config: depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_TUNNEL
114//config:
115//config:config IPRULE
116//config: bool
117//config: default y
118//config: depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_RULE
119//config:
120//config:config IPNEIGH
121//config: bool
122//config: default y
123//config: depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_NEIGH
124
125//applet:#if ENABLE_FEATURE_IP_ADDRESS || ENABLE_FEATURE_IP_ROUTE || ENABLE_FEATURE_IP_LINK || ENABLE_FEATURE_IP_TUNNEL || ENABLE_FEATURE_IP_RULE
126//applet:IF_IP(APPLET(ip, BB_DIR_SBIN, BB_SUID_DROP))
127//applet:#endif
128//applet:IF_IPADDR(APPLET(ipaddr, BB_DIR_SBIN, BB_SUID_DROP))
129//applet:IF_IPLINK(APPLET(iplink, BB_DIR_SBIN, BB_SUID_DROP))
130//applet:IF_IPROUTE(APPLET(iproute, BB_DIR_SBIN, BB_SUID_DROP))
131//applet:IF_IPRULE(APPLET(iprule, BB_DIR_SBIN, BB_SUID_DROP))
132//applet:IF_IPTUNNEL(APPLET(iptunnel, BB_DIR_SBIN, BB_SUID_DROP))
133
134//kbuild:lib-$(CONFIG_IP) += ip.o
11 135
12/* would need to make the " | " optional depending on more than one selected: */ 136/* would need to make the " | " optional depending on more than one selected: */
13//usage:#define ip_trivial_usage 137//usage:#define ip_trivial_usage