aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-04 12:13:38 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-04 12:13:38 +0100
commitc6137ba51066d78a255f440ed0afc36639ea604a (patch)
tree0d06006f98a6b80076d13ada143a790a5baee09d /networking
parentc6725b0af68238a456690146adec763c04f66c82 (diff)
downloadbusybox-w32-c6137ba51066d78a255f440ed0afc36639ea604a.tar.gz
busybox-w32-c6137ba51066d78a255f440ed0afc36639ea604a.tar.bz2
busybox-w32-c6137ba51066d78a255f440ed0afc36639ea604a.zip
udhcp: tweak config order and menu item names
All other applets are listed simply by their name, no reason why dumpleases doesn't do that. Group all udhcpd feature options directly after it. Put "NOT READY" into udhcpc6 item (some users actually tried to use it, and complained). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/Config.src54
-rw-r--r--networking/udhcp/d6_dhcpc.c2
2 files changed, 28 insertions, 28 deletions
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src
index 90fb313b5..7bc13a719 100644
--- a/networking/udhcp/Config.src
+++ b/networking/udhcp/Config.src
@@ -6,29 +6,13 @@
6INSERT 6INSERT
7 7
8config UDHCPD 8config UDHCPD
9 bool "udhcp server (udhcpd)" 9 bool "udhcpd (DHCP server)"
10 default y 10 default y
11 select PLATFORM_LINUX 11 select PLATFORM_LINUX
12 help 12 help
13 udhcpd is a DHCP server geared primarily toward embedded systems, 13 udhcpd is a DHCP server geared primarily toward embedded systems,
14 while striving to be fully functional and RFC compliant. 14 while striving to be fully functional and RFC compliant.
15 15
16config DHCPRELAY
17 bool "dhcprelay"
18 default y
19 help
20 dhcprelay listens for dhcp requests on one or more interfaces
21 and forwards these requests to a different interface or dhcp
22 server.
23
24config DUMPLEASES
25 bool "Lease display utility (dumpleases)"
26 default y
27 help
28 dumpleases displays the leases written out by the udhcpd server.
29 Lease times are stored in the file by time remaining in lease, or
30 by the absolute time that it expires in seconds from epoch.
31
32config FEATURE_UDHCPD_WRITE_LEASES_EARLY 16config FEATURE_UDHCPD_WRITE_LEASES_EARLY
33 bool "Rewrite the lease file at every new acknowledge" 17 bool "Rewrite the lease file at every new acknowledge"
34 default y 18 default y
@@ -61,8 +45,24 @@ config DHCPD_LEASES_FILE
61 udhcpd stores addresses in a lease file. This is the absolute path 45 udhcpd stores addresses in a lease file. This is the absolute path
62 of the file. Normally it is safe to leave it untouched. 46 of the file. Normally it is safe to leave it untouched.
63 47
48config DUMPLEASES
49 bool "dumpleases"
50 default y
51 help
52 dumpleases displays the leases written out by the udhcpd.
53 Lease times are stored in the file by time remaining in lease, or
54 by the absolute time that it expires in seconds from epoch.
55
56config DHCPRELAY
57 bool "dhcprelay"
58 default y
59 help
60 dhcprelay listens for dhcp requests on one or more interfaces
61 and forwards these requests to a different interface or dhcp
62 server.
63
64config UDHCPC 64config UDHCPC
65 bool "udhcp client (udhcpc)" 65 bool "udhcpc (DHCP client)"
66 default y 66 default y
67 select PLATFORM_LINUX 67 select PLATFORM_LINUX
68 help 68 help
@@ -93,6 +93,15 @@ config FEATURE_UDHCPC_SANITIZEOPT
93 they will be replaced with string "bad" when exporting 93 they will be replaced with string "bad" when exporting
94 to the environment. 94 to the environment.
95 95
96config UDHCPC_DEFAULT_SCRIPT
97 string "Absolute path to config script"
98 default "/usr/share/udhcpc/default.script"
99 depends on UDHCPC
100 help
101 This script is called after udhcpc receives an answer. See
102 examples/udhcp for a working example. Normally it is safe
103 to leave this untouched.
104
96config FEATURE_UDHCP_PORT 105config FEATURE_UDHCP_PORT
97 bool "Enable '-P port' option for udhcpd and udhcpc" 106 bool "Enable '-P port' option for udhcpd and udhcpc"
98 default n 107 default n
@@ -130,15 +139,6 @@ config FEATURE_UDHCP_8021Q
130 If selected, both client and server will support passing of VLAN 139 If selected, both client and server will support passing of VLAN
131 ID and priority via options 132 and 133 as per 802.1Q. 140 ID and priority via options 132 and 133 as per 802.1Q.
132 141
133config UDHCPC_DEFAULT_SCRIPT
134 string "Absolute path to config script"
135 default "/usr/share/udhcpc/default.script"
136 depends on UDHCPC
137 help
138 This script is called after udhcpc receives an answer. See
139 examples/udhcp for a working example. Normally it is safe
140 to leave this untouched.
141
142config UDHCPC_SLACK_FOR_BUGGY_SERVERS 142config UDHCPC_SLACK_FOR_BUGGY_SERVERS
143 int "DHCP options slack buffer size" 143 int "DHCP options slack buffer size"
144 default 80 144 default 80
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index ddf3412a0..64339c9b5 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14//config:config UDHCPC6 14//config:config UDHCPC6
15//config: bool "udhcp client for DHCPv6 (udhcpc6)" 15//config: bool "udhcpc6 (DHCPv6 client, NOT READY)"
16//config: default n # not yet ready 16//config: default n # not yet ready
17//config: depends on FEATURE_IPV6 17//config: depends on FEATURE_IPV6
18//config: help 18//config: help