aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-11 02:21:10 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-11 02:21:10 +0100
commit4662de0511487b4da965c4b2158bae318f3d80a8 (patch)
tree05647d5e10ec8ba1a0f50dbe396d2c04bda0c977
parent8656676a2199e2701e7e5656ef3d2092dedd9ba5 (diff)
downloadbusybox-w32-4662de0511487b4da965c4b2158bae318f3d80a8.tar.gz
busybox-w32-4662de0511487b4da965c4b2158bae318f3d80a8.tar.bz2
busybox-w32-4662de0511487b4da965c4b2158bae318f3d80a8.zip
replace APP_xxDHCPxx with xxDHCPxx, it's more consistent with the rest
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--TODO_config_nommu8
-rw-r--r--docs/ifupdown_design.txt2
-rw-r--r--include/applets.h8
-rw-r--r--networking/Config.in2
-rw-r--r--networking/ifupdown.c4
-rw-r--r--networking/udhcp/Config.in28
-rw-r--r--networking/udhcp/Kbuild12
-rw-r--r--scripts/defconfig8
8 files changed, 36 insertions, 36 deletions
diff --git a/TODO_config_nommu b/TODO_config_nommu
index 1835b6e80..d5ee7bebd 100644
--- a/TODO_config_nommu
+++ b/TODO_config_nommu
@@ -743,12 +743,12 @@ CONFIG_TRACEROUTE=y
743CONFIG_FEATURE_TRACEROUTE_VERBOSE=y 743CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
744CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y 744CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y
745CONFIG_FEATURE_TRACEROUTE_USE_ICMP=y 745CONFIG_FEATURE_TRACEROUTE_USE_ICMP=y
746CONFIG_APP_UDHCPD=y 746CONFIG_UDHCPD=y
747CONFIG_APP_DHCPRELAY=y 747CONFIG_DHCPRELAY=y
748CONFIG_APP_DUMPLEASES=y 748CONFIG_DUMPLEASES=y
749CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y 749CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y
750CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" 750CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
751CONFIG_APP_UDHCPC=y 751CONFIG_UDHCPC=y
752CONFIG_FEATURE_UDHCPC_ARPING=y 752CONFIG_FEATURE_UDHCPC_ARPING=y
753CONFIG_FEATURE_UDHCP_PORT=y 753CONFIG_FEATURE_UDHCP_PORT=y
754CONFIG_UDHCP_DEBUG=9 754CONFIG_UDHCP_DEBUG=9
diff --git a/docs/ifupdown_design.txt b/docs/ifupdown_design.txt
index 9df579289..8008e4507 100644
--- a/docs/ifupdown_design.txt
+++ b/docs/ifupdown_design.txt
@@ -26,7 +26,7 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
26 } 26 }
27 bb_error_msg("no dhcp clients found, using static interface shutdown"); 27 bb_error_msg("no dhcp clients found, using static interface shutdown");
28 return static_down(ifd, exec); 28 return static_down(ifd, exec);
29#elif ENABLE_APP_UDHCPC 29#elif ENABLE_UDHCPC
30 return execute("kill " 30 return execute("kill "
31 "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); 31 "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
32#else 32#else
diff --git a/include/applets.h b/include/applets.h
index 69dcdc002..2d784bd84 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -123,7 +123,7 @@ IF_MODPROBE_SMALL(APPLET_ODDNAME(depmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP,
123IF_DEVFSD(APPLET(devfsd, _BB_DIR_SBIN, _BB_SUID_DROP)) 123IF_DEVFSD(APPLET(devfsd, _BB_DIR_SBIN, _BB_SUID_DROP))
124IF_DEVMEM(APPLET(devmem, _BB_DIR_SBIN, _BB_SUID_DROP)) 124IF_DEVMEM(APPLET(devmem, _BB_DIR_SBIN, _BB_SUID_DROP))
125IF_DF(APPLET(df, _BB_DIR_BIN, _BB_SUID_DROP)) 125IF_DF(APPLET(df, _BB_DIR_BIN, _BB_SUID_DROP))
126IF_APP_DHCPRELAY(APPLET(dhcprelay, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 126IF_DHCPRELAY(APPLET(dhcprelay, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
127IF_DIFF(APPLET(diff, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 127IF_DIFF(APPLET(diff, _BB_DIR_USR_BIN, _BB_SUID_DROP))
128IF_DIRNAME(APPLET_NOFORK(dirname, dirname, _BB_DIR_USR_BIN, _BB_SUID_DROP, dirname)) 128IF_DIRNAME(APPLET_NOFORK(dirname, dirname, _BB_DIR_USR_BIN, _BB_SUID_DROP, dirname))
129IF_DMESG(APPLET(dmesg, _BB_DIR_BIN, _BB_SUID_DROP)) 129IF_DMESG(APPLET(dmesg, _BB_DIR_BIN, _BB_SUID_DROP))
@@ -134,7 +134,7 @@ IF_DPKG(APPLET(dpkg, _BB_DIR_USR_BIN, _BB_SUID_DROP))
134IF_DPKG_DEB(APPLET_ODDNAME(dpkg-deb, dpkg_deb, _BB_DIR_USR_BIN, _BB_SUID_DROP, dpkg_deb)) 134IF_DPKG_DEB(APPLET_ODDNAME(dpkg-deb, dpkg_deb, _BB_DIR_USR_BIN, _BB_SUID_DROP, dpkg_deb))
135IF_DU(APPLET(du, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 135IF_DU(APPLET(du, _BB_DIR_USR_BIN, _BB_SUID_DROP))
136IF_DUMPKMAP(APPLET(dumpkmap, _BB_DIR_BIN, _BB_SUID_DROP)) 136IF_DUMPKMAP(APPLET(dumpkmap, _BB_DIR_BIN, _BB_SUID_DROP))
137IF_APP_DUMPLEASES(APPLET(dumpleases, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 137IF_DUMPLEASES(APPLET(dumpleases, _BB_DIR_USR_BIN, _BB_SUID_DROP))
138//IF_E2FSCK(APPLET(e2fsck, _BB_DIR_SBIN, _BB_SUID_DROP)) 138//IF_E2FSCK(APPLET(e2fsck, _BB_DIR_SBIN, _BB_SUID_DROP))
139//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, _BB_DIR_SBIN, _BB_SUID_DROP, e2label)) 139//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, _BB_DIR_SBIN, _BB_SUID_DROP, e2label))
140IF_ECHO(APPLET_NOFORK(echo, echo, _BB_DIR_BIN, _BB_SUID_DROP, echo)) 140IF_ECHO(APPLET_NOFORK(echo, echo, _BB_DIR_BIN, _BB_SUID_DROP, echo))
@@ -403,8 +403,8 @@ IF_TTY(APPLET(tty, _BB_DIR_USR_BIN, _BB_SUID_DROP))
403IF_TTYSIZE(APPLET(ttysize, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 403IF_TTYSIZE(APPLET(ttysize, _BB_DIR_USR_BIN, _BB_SUID_DROP))
404IF_TUNCTL(APPLET(tunctl, _BB_DIR_SBIN, _BB_SUID_DROP)) 404IF_TUNCTL(APPLET(tunctl, _BB_DIR_SBIN, _BB_SUID_DROP))
405IF_MKFS_EXT2(APPLET(tune2fs, _BB_DIR_SBIN, _BB_SUID_DROP)) 405IF_MKFS_EXT2(APPLET(tune2fs, _BB_DIR_SBIN, _BB_SUID_DROP))
406IF_APP_UDHCPC(APPLET(udhcpc, _BB_DIR_SBIN, _BB_SUID_DROP)) 406IF_UDHCPC(APPLET(udhcpc, _BB_DIR_SBIN, _BB_SUID_DROP))
407IF_APP_UDHCPD(APPLET(udhcpd, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 407IF_UDHCPD(APPLET(udhcpd, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
408IF_UDPSVD(APPLET_ODDNAME(udpsvd, tcpudpsvd, _BB_DIR_USR_BIN, _BB_SUID_DROP, udpsvd)) 408IF_UDPSVD(APPLET_ODDNAME(udpsvd, tcpudpsvd, _BB_DIR_USR_BIN, _BB_SUID_DROP, udpsvd))
409IF_UMOUNT(APPLET(umount, _BB_DIR_BIN, _BB_SUID_DROP)) 409IF_UMOUNT(APPLET(umount, _BB_DIR_BIN, _BB_SUID_DROP))
410IF_UNAME(APPLET(uname, _BB_DIR_BIN, _BB_SUID_DROP)) 410IF_UNAME(APPLET(uname, _BB_DIR_BIN, _BB_SUID_DROP))
diff --git a/networking/Config.in b/networking/Config.in
index 668823784..5222b78d4 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -923,7 +923,7 @@ source networking/udhcp/Config.in
923config IFUPDOWN_UDHCPC_CMD_OPTIONS 923config IFUPDOWN_UDHCPC_CMD_OPTIONS
924 string "ifup udhcpc command line options" 924 string "ifup udhcpc command line options"
925 default "-R -n" 925 default "-R -n"
926 depends on IFUPDOWN && APP_UDHCPC 926 depends on IFUPDOWN && UDHCPC
927 help 927 help
928 Command line options to pass to udhcpc from ifup. 928 Command line options to pass to udhcpc from ifup.
929 Intended to alter options not available in /etc/network/interfaces. 929 Intended to alter options not available in /etc/network/interfaces.
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index b16186ec7..d28c0b867 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -522,7 +522,7 @@ static int FAST_FUNC dhcp_up(struct interface_defn_t *ifd, execfn *exec)
522 bb_error_msg("no dhcp clients found"); 522 bb_error_msg("no dhcp clients found");
523 return 0; 523 return 0;
524} 524}
525#elif ENABLE_APP_UDHCPC 525#elif ENABLE_UDHCPC
526static int FAST_FUNC dhcp_up(struct interface_defn_t *ifd, execfn *exec) 526static int FAST_FUNC dhcp_up(struct interface_defn_t *ifd, execfn *exec)
527{ 527{
528#if ENABLE_FEATURE_IFUPDOWN_IP 528#if ENABLE_FEATURE_IFUPDOWN_IP
@@ -569,7 +569,7 @@ static int FAST_FUNC dhcp_down(struct interface_defn_t *ifd, execfn *exec)
569 result += static_down(ifd, exec); 569 result += static_down(ifd, exec);
570 return ((result == 3) ? 3 : 0); 570 return ((result == 3) ? 3 : 0);
571} 571}
572#elif ENABLE_APP_UDHCPC 572#elif ENABLE_UDHCPC
573static int FAST_FUNC dhcp_down(struct interface_defn_t *ifd, execfn *exec) 573static int FAST_FUNC dhcp_down(struct interface_defn_t *ifd, execfn *exec)
574{ 574{
575 int result; 575 int result;
diff --git a/networking/udhcp/Config.in b/networking/udhcp/Config.in
index 5f76dd8d4..fd2a61cc0 100644
--- a/networking/udhcp/Config.in
+++ b/networking/udhcp/Config.in
@@ -3,26 +3,26 @@
3# see scripts/kbuild/config-language.txt. 3# see scripts/kbuild/config-language.txt.
4# 4#
5 5
6config APP_UDHCPD 6config UDHCPD
7 bool "udhcp server (udhcpd)" 7 bool "udhcp server (udhcpd)"
8 default n 8 default n
9 help 9 help
10 udhcpd is a DHCP server geared primarily toward embedded systems, 10 udhcpd is a DHCP server geared primarily toward embedded systems,
11 while striving to be fully functional and RFC compliant. 11 while striving to be fully functional and RFC compliant.
12 12
13config APP_DHCPRELAY 13config DHCPRELAY
14 bool "dhcprelay" 14 bool "dhcprelay"
15 default n 15 default n
16 depends on APP_UDHCPD 16 depends on UDHCPD
17 help 17 help
18 dhcprelay listens for dhcp requests on one or more interfaces 18 dhcprelay listens for dhcp requests on one or more interfaces
19 and forwards these requests to a different interface or dhcp 19 and forwards these requests to a different interface or dhcp
20 server. 20 server.
21 21
22config APP_DUMPLEASES 22config DUMPLEASES
23 bool "Lease display utility (dumpleases)" 23 bool "Lease display utility (dumpleases)"
24 default n 24 default n
25 depends on APP_UDHCPD 25 depends on UDHCPD
26 help 26 help
27 dumpleases displays the leases written out by the udhcpd server. 27 dumpleases displays the leases written out by the udhcpd server.
28 Lease times are stored in the file by time remaining in lease, or 28 Lease times are stored in the file by time remaining in lease, or
@@ -31,7 +31,7 @@ config APP_DUMPLEASES
31config FEATURE_UDHCPD_WRITE_LEASES_EARLY 31config FEATURE_UDHCPD_WRITE_LEASES_EARLY
32 bool "Rewrite the lease file at every new acknowledge" 32 bool "Rewrite the lease file at every new acknowledge"
33 default n 33 default n
34 depends on APP_UDHCPD 34 depends on UDHCPD
35 help 35 help
36 If selected, udhcpd will write a new file with leases every 36 If selected, udhcpd will write a new file with leases every
37 time a new lease has been accepted, thus eliminating the need 37 time a new lease has been accepted, thus eliminating the need
@@ -41,12 +41,12 @@ config FEATURE_UDHCPD_WRITE_LEASES_EARLY
41config DHCPD_LEASES_FILE 41config DHCPD_LEASES_FILE
42 string "Absolute path to lease file" 42 string "Absolute path to lease file"
43 default "/var/lib/misc/udhcpd.leases" 43 default "/var/lib/misc/udhcpd.leases"
44 depends on APP_UDHCPD 44 depends on UDHCPD
45 help 45 help
46 udhcpd stores addresses in a lease file. This is the absolute path 46 udhcpd stores addresses in a lease file. This is the absolute path
47 of the file. Normally it is safe to leave it untouched. 47 of the file. Normally it is safe to leave it untouched.
48 48
49config APP_UDHCPC 49config UDHCPC
50 bool "udhcp client (udhcpc)" 50 bool "udhcp client (udhcpc)"
51 default n 51 default n
52 help 52 help
@@ -59,7 +59,7 @@ config APP_UDHCPC
59config FEATURE_UDHCPC_ARPING 59config FEATURE_UDHCPC_ARPING
60 bool "Verify that the offered address is free, using ARP ping" 60 bool "Verify that the offered address is free, using ARP ping"
61 default y 61 default y
62 depends on APP_UDHCPC 62 depends on UDHCPC
63 help 63 help
64 If selected, udhcpc will send ARP probes and make sure 64 If selected, udhcpc will send ARP probes and make sure
65 the offered address is really not in use by anyone. The client 65 the offered address is really not in use by anyone. The client
@@ -69,7 +69,7 @@ config FEATURE_UDHCPC_ARPING
69config FEATURE_UDHCP_PORT 69config FEATURE_UDHCP_PORT
70 bool "Enable '-P port' option for udhcpd and udhcpc" 70 bool "Enable '-P port' option for udhcpd and udhcpc"
71 default n 71 default n
72 depends on APP_UDHCPD || APP_UDHCPC 72 depends on UDHCPD || UDHCPC
73 help 73 help
74 At the cost of ~300 bytes, enables -P port option. 74 At the cost of ~300 bytes, enables -P port option.
75 This feature is typically not needed. 75 This feature is typically not needed.
@@ -78,7 +78,7 @@ config UDHCP_DEBUG
78 int "Maximum verbosity level for udhcp applets (0..9)" 78 int "Maximum verbosity level for udhcp applets (0..9)"
79 default 0 79 default 0
80 range 0 9 80 range 0 9
81 depends on APP_UDHCPD || APP_UDHCPC || APP_DHCPRELAY 81 depends on UDHCPD || UDHCPC || DHCPRELAY
82 help 82 help
83 Verbosity can be increased with multiple -v options. 83 Verbosity can be increased with multiple -v options.
84 This options controls how high it can be cranked up. 84 This options controls how high it can be cranked up.
@@ -89,7 +89,7 @@ config UDHCP_DEBUG
89config FEATURE_UDHCP_RFC3397 89config FEATURE_UDHCP_RFC3397
90 bool "Support for RFC3397 domain search (experimental)" 90 bool "Support for RFC3397 domain search (experimental)"
91 default n 91 default n
92 depends on APP_UDHCPD || APP_UDHCPC 92 depends on UDHCPD || UDHCPC
93 help 93 help
94 If selected, both client and server will support passing of domain 94 If selected, both client and server will support passing of domain
95 search lists via option 119, specified in RFC3397. 95 search lists via option 119, specified in RFC3397.
@@ -97,7 +97,7 @@ config FEATURE_UDHCP_RFC3397
97config UDHCPC_DEFAULT_SCRIPT 97config UDHCPC_DEFAULT_SCRIPT
98 string "Absolute path to config script" 98 string "Absolute path to config script"
99 default "/usr/share/udhcpc/default.script" 99 default "/usr/share/udhcpc/default.script"
100 depends on APP_UDHCPC 100 depends on UDHCPC
101 help 101 help
102 This script is called after udhcpc receives an answer. See 102 This script is called after udhcpc receives an answer. See
103 examples/udhcp for a working example. Normally it is safe 103 examples/udhcp for a working example. Normally it is safe
@@ -107,7 +107,7 @@ config UDHCPC_SLACK_FOR_BUGGY_SERVERS
107 int "DHCP options slack buffer size" 107 int "DHCP options slack buffer size"
108 default 80 108 default 80
109 range 0 924 109 range 0 924
110 depends on APP_UDHCPD || APP_UDHCPC 110 depends on UDHCPD || UDHCPC
111 help 111 help
112 Some buggy DHCP servers send DHCP offer packets with option 112 Some buggy DHCP servers send DHCP offer packets with option
113 field larger than we expect (which might also be considered a 113 field larger than we expect (which might also be considered a
diff --git a/networking/udhcp/Kbuild b/networking/udhcp/Kbuild
index e938076f7..d1d35670f 100644
--- a/networking/udhcp/Kbuild
+++ b/networking/udhcp/Kbuild
@@ -6,20 +6,20 @@
6# 6#
7 7
8lib-y:= 8lib-y:=
9lib-$(CONFIG_APP_UDHCPC) += common.o options.o packet.o \ 9lib-$(CONFIG_UDHCPC) += common.o options.o packet.o \
10 signalpipe.o socket.o 10 signalpipe.o socket.o
11lib-$(CONFIG_APP_UDHCPD) += common.o options.o packet.o \ 11lib-$(CONFIG_UDHCPD) += common.o options.o packet.o \
12 signalpipe.o socket.o 12 signalpipe.o socket.o
13 13
14lib-$(CONFIG_APP_UDHCPC) += dhcpc.o clientpacket.o clientsocket.o \ 14lib-$(CONFIG_UDHCPC) += dhcpc.o clientpacket.o clientsocket.o \
15 script.o 15 script.o
16 16
17UDHCPC_NEEDS_ARPING-$(CONFIG_FEATURE_UDHCPC_ARPING) = y 17UDHCPC_NEEDS_ARPING-$(CONFIG_FEATURE_UDHCPC_ARPING) = y
18lib-$(UDHCPC_NEEDS_ARPING-y) += arpping.o 18lib-$(UDHCPC_NEEDS_ARPING-y) += arpping.o
19 19
20lib-$(CONFIG_APP_UDHCPD) += dhcpd.o arpping.o files.o leases.o \ 20lib-$(CONFIG_UDHCPD) += dhcpd.o arpping.o files.o leases.o \
21 serverpacket.o static_leases.o 21 serverpacket.o static_leases.o
22 22
23lib-$(CONFIG_APP_DUMPLEASES) += dumpleases.o 23lib-$(CONFIG_DUMPLEASES) += dumpleases.o
24lib-$(CONFIG_APP_DHCPRELAY) += dhcprelay.o 24lib-$(CONFIG_DHCPRELAY) += dhcprelay.o
25lib-$(CONFIG_FEATURE_UDHCP_RFC3397) += domain_codec.o 25lib-$(CONFIG_FEATURE_UDHCP_RFC3397) += domain_codec.o
diff --git a/scripts/defconfig b/scripts/defconfig
index f8a92d4c3..a98c7b6fa 100644
--- a/scripts/defconfig
+++ b/scripts/defconfig
@@ -744,12 +744,12 @@ CONFIG_TRACEROUTE=y
744CONFIG_FEATURE_TRACEROUTE_VERBOSE=y 744CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
745# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set 745# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set
746# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set 746# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set
747CONFIG_APP_UDHCPD=y 747CONFIG_UDHCPD=y
748CONFIG_APP_DHCPRELAY=y 748CONFIG_DHCPRELAY=y
749CONFIG_APP_DUMPLEASES=y 749CONFIG_DUMPLEASES=y
750CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y 750CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y
751CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" 751CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
752CONFIG_APP_UDHCPC=y 752CONFIG_UDHCPC=y
753CONFIG_FEATURE_UDHCPC_ARPING=y 753CONFIG_FEATURE_UDHCPC_ARPING=y
754CONFIG_FEATURE_UDHCP_PORT=y 754CONFIG_FEATURE_UDHCP_PORT=y
755CONFIG_UDHCP_DEBUG=9 755CONFIG_UDHCP_DEBUG=9