aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-10-16 02:04:59 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2022-11-29 14:10:22 +0100
commit77216c368f3ae65c3a9fc504d28d3fadd46d6d8d (patch)
tree8f4bf1ca9cd3aea68214bc93ab5a586401979f47 /networking
parent75fbff1326674b768cee66f32e3799d5bff5e194 (diff)
downloadbusybox-w32-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.tar.gz
busybox-w32-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.tar.bz2
busybox-w32-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.zip
Fix non-Linux builds
Various tools are Linuxish and should thus only attempted to build on Linux only. Some features are also Linux-only. Also, libresolv is used on all GNU platforms, notably GNU/Hurd and GNU/kfreeBSD. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/arp.c1
-rw-r--r--networking/arping.c1
-rw-r--r--networking/brctl.c1
-rw-r--r--networking/ifconfig.c1
-rw-r--r--networking/ifplugd.c1
-rw-r--r--networking/ip.c6
-rw-r--r--networking/nameif.c1
-rw-r--r--networking/route.c1
-rw-r--r--networking/tc.c1
-rw-r--r--networking/traceroute.c2
-rw-r--r--networking/tunctl.c1
-rw-r--r--networking/udhcp/Config.src3
12 files changed, 20 insertions, 0 deletions
diff --git a/networking/arp.c b/networking/arp.c
index 16783ab95..6519f8156 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -15,6 +15,7 @@
15//config:config ARP 15//config:config ARP
16//config: bool "arp (10 kb)" 16//config: bool "arp (10 kb)"
17//config: default y 17//config: default y
18//config: select PLATFORM_LINUX
18//config: help 19//config: help
19//config: Manipulate the system ARP cache. 20//config: Manipulate the system ARP cache.
20 21
diff --git a/networking/arping.c b/networking/arping.c
index 86f0221ed..fd0e1b276 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -8,6 +8,7 @@
8//config:config ARPING 8//config:config ARPING
9//config: bool "arping (9 kb)" 9//config: bool "arping (9 kb)"
10//config: default y 10//config: default y
11//config: select PLATFORM_LINUX
11//config: help 12//config: help
12//config: Ping hosts by ARP packets. 13//config: Ping hosts by ARP packets.
13 14
diff --git a/networking/brctl.c b/networking/brctl.c
index 956bd91f3..b353210d7 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -12,6 +12,7 @@
12//config:config BRCTL 12//config:config BRCTL
13//config: bool "brctl (4.7 kb)" 13//config: bool "brctl (4.7 kb)"
14//config: default y 14//config: default y
15//config: select PLATFORM_LINUX
15//config: help 16//config: help
16//config: Manage ethernet bridges. 17//config: Manage ethernet bridges.
17//config: Supports addbr/delbr and addif/delif. 18//config: Supports addbr/delbr and addif/delif.
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 9ee232a66..4090959b8 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -27,6 +27,7 @@
27//config:config IFCONFIG 27//config:config IFCONFIG
28//config: bool "ifconfig (12 kb)" 28//config: bool "ifconfig (12 kb)"
29//config: default y 29//config: default y
30//config: select PLATFORM_LINUX
30//config: help 31//config: help
31//config: Ifconfig is used to configure the kernel-resident network interfaces. 32//config: Ifconfig is used to configure the kernel-resident network interfaces.
32//config: 33//config:
diff --git a/networking/ifplugd.c b/networking/ifplugd.c
index 0b55bf4e5..bc4303ef0 100644
--- a/networking/ifplugd.c
+++ b/networking/ifplugd.c
@@ -9,6 +9,7 @@
9//config:config IFPLUGD 9//config:config IFPLUGD
10//config: bool "ifplugd (10 kb)" 10//config: bool "ifplugd (10 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: Network interface plug detection daemon. 14//config: Network interface plug detection daemon.
14 15
diff --git a/networking/ip.c b/networking/ip.c
index 7c3208699..23ee7d24b 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -11,6 +11,7 @@
11//config:config IP 11//config:config IP
12//config: bool "ip (35 kb)" 12//config: bool "ip (35 kb)"
13//config: default y 13//config: default y
14//config: select PLATFORM_LINUX
14//config: help 15//config: help
15//config: The "ip" applet is a TCP/IP interface configuration and routing 16//config: The "ip" applet is a TCP/IP interface configuration and routing
16//config: utility. 17//config: utility.
@@ -21,6 +22,7 @@
21//config:config IPADDR 22//config:config IPADDR
22//config: bool "ipaddr (14 kb)" 23//config: bool "ipaddr (14 kb)"
23//config: default y 24//config: default y
25//config: select PLATFORM_LINUX
24//config: select FEATURE_IP_ADDRESS 26//config: select FEATURE_IP_ADDRESS
25//config: help 27//config: help
26//config: Short form of "ip addr" 28//config: Short form of "ip addr"
@@ -28,6 +30,7 @@
28//config:config IPLINK 30//config:config IPLINK
29//config: bool "iplink (17 kb)" 31//config: bool "iplink (17 kb)"
30//config: default y 32//config: default y
33//config: select PLATFORM_LINUX
31//config: select FEATURE_IP_LINK 34//config: select FEATURE_IP_LINK
32//config: help 35//config: help
33//config: Short form of "ip link" 36//config: Short form of "ip link"
@@ -35,6 +38,7 @@
35//config:config IPROUTE 38//config:config IPROUTE
36//config: bool "iproute (15 kb)" 39//config: bool "iproute (15 kb)"
37//config: default y 40//config: default y
41//config: select PLATFORM_LINUX
38//config: select FEATURE_IP_ROUTE 42//config: select FEATURE_IP_ROUTE
39//config: help 43//config: help
40//config: Short form of "ip route" 44//config: Short form of "ip route"
@@ -49,6 +53,7 @@
49//config:config IPRULE 53//config:config IPRULE
50//config: bool "iprule (10 kb)" 54//config: bool "iprule (10 kb)"
51//config: default y 55//config: default y
56//config: select PLATFORM_LINUX
52//config: select FEATURE_IP_RULE 57//config: select FEATURE_IP_RULE
53//config: help 58//config: help
54//config: Short form of "ip rule" 59//config: Short form of "ip rule"
@@ -56,6 +61,7 @@
56//config:config IPNEIGH 61//config:config IPNEIGH
57//config: bool "ipneigh (8.3 kb)" 62//config: bool "ipneigh (8.3 kb)"
58//config: default y 63//config: default y
64//config: select PLATFORM_LINUX
59//config: select FEATURE_IP_NEIGH 65//config: select FEATURE_IP_NEIGH
60//config: help 66//config: help
61//config: Short form of "ip neigh" 67//config: Short form of "ip neigh"
diff --git a/networking/nameif.c b/networking/nameif.c
index 66e042688..3ccd935b8 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -12,6 +12,7 @@
12//config:config NAMEIF 12//config:config NAMEIF
13//config: bool "nameif (6.6 kb)" 13//config: bool "nameif (6.6 kb)"
14//config: default y 14//config: default y
15//config: select PLATFORM_LINUX
15//config: select FEATURE_SYSLOG 16//config: select FEATURE_SYSLOG
16//config: help 17//config: help
17//config: nameif is used to rename network interface by its MAC address. 18//config: nameif is used to rename network interface by its MAC address.
diff --git a/networking/route.c b/networking/route.c
index 26146f8e9..616572814 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -27,6 +27,7 @@
27//config:config ROUTE 27//config:config ROUTE
28//config: bool "route (8.7 kb)" 28//config: bool "route (8.7 kb)"
29//config: default y 29//config: default y
30//config: select PLATFORM_LINUX
30//config: help 31//config: help
31//config: Route displays or manipulates the kernel's IP routing tables. 32//config: Route displays or manipulates the kernel's IP routing tables.
32 33
diff --git a/networking/tc.c b/networking/tc.c
index 43187f7ee..1f4bcce2b 100644
--- a/networking/tc.c
+++ b/networking/tc.c
@@ -9,6 +9,7 @@
9//config:config TC 9//config:config TC
10//config: bool "tc (8.3 kb)" 10//config: bool "tc (8.3 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: Show / manipulate traffic control settings 14//config: Show / manipulate traffic control settings
14//config: 15//config:
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 4bbe1ab8e..2ba990fd0 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -963,8 +963,10 @@ traceroute_init(int op, char **argv)
963 if (af == AF_INET) { 963 if (af == AF_INET) {
964 xmove_fd(xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP), rcvsock); 964 xmove_fd(xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP), rcvsock);
965#if ENABLE_FEATURE_TRACEROUTE_VERBOSE 965#if ENABLE_FEATURE_TRACEROUTE_VERBOSE
966# ifdef IP_PKTINFO
966 /* want recvmsg to report target local address (for -v) */ 967 /* want recvmsg to report target local address (for -v) */
967 setsockopt_1(rcvsock, IPPROTO_IP, IP_PKTINFO); 968 setsockopt_1(rcvsock, IPPROTO_IP, IP_PKTINFO);
969# endif
968#endif 970#endif
969 } 971 }
970#if ENABLE_TRACEROUTE6 972#if ENABLE_TRACEROUTE6
diff --git a/networking/tunctl.c b/networking/tunctl.c
index 97e6917aa..59cae331c 100644
--- a/networking/tunctl.c
+++ b/networking/tunctl.c
@@ -12,6 +12,7 @@
12//config:config TUNCTL 12//config:config TUNCTL
13//config: bool "tunctl (6.2 kb)" 13//config: bool "tunctl (6.2 kb)"
14//config: default y 14//config: default y
15//config: select PLATFORM_LINUX
15//config: help 16//config: help
16//config: tunctl creates or deletes tun devices. 17//config: tunctl creates or deletes tun devices.
17//config: 18//config:
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src
index 8c8c11c26..23e2b40d8 100644
--- a/networking/udhcp/Config.src
+++ b/networking/udhcp/Config.src
@@ -6,6 +6,7 @@
6config UDHCPD 6config UDHCPD
7 bool "udhcpd (21 kb)" 7 bool "udhcpd (21 kb)"
8 default y 8 default y
9 select PLATFORM_LINUX
9 help 10 help
10 udhcpd is a DHCP server geared primarily toward embedded systems, 11 udhcpd is a DHCP server geared primarily toward embedded systems,
11 while striving to be fully functional and RFC compliant. 12 while striving to be fully functional and RFC compliant.
@@ -53,6 +54,7 @@ config DUMPLEASES
53config DHCPRELAY 54config DHCPRELAY
54 bool "dhcprelay (5.2 kb)" 55 bool "dhcprelay (5.2 kb)"
55 default y 56 default y
57 select PLATFORM_LINUX
56 help 58 help
57 dhcprelay listens for DHCP requests on one or more interfaces 59 dhcprelay listens for DHCP requests on one or more interfaces
58 and forwards these requests to a different interface or DHCP 60 and forwards these requests to a different interface or DHCP
@@ -61,6 +63,7 @@ config DHCPRELAY
61config UDHCPC 63config UDHCPC
62 bool "udhcpc (24 kb)" 64 bool "udhcpc (24 kb)"
63 default y 65 default y
66 select PLATFORM_LINUX
64 help 67 help
65 udhcpc is a DHCP client geared primarily toward embedded systems, 68 udhcpc is a DHCP client geared primarily toward embedded systems,
66 while striving to be fully functional and RFC compliant. 69 while striving to be fully functional and RFC compliant.