aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 10:53:09 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 10:53:09 +0200
commit68b653b66b0db6b1554806650fb0bebd7af9ef3b (patch)
tree6549966edd734b162fc4f6c88271b1023fa0d013 /networking/udhcp
parent86d5bf4246a7ba68d220bc6c7a7a3be62119dc12 (diff)
downloadbusybox-w32-68b653b66b0db6b1554806650fb0bebd7af9ef3b.tar.gz
busybox-w32-68b653b66b0db6b1554806650fb0bebd7af9ef3b.tar.bz2
busybox-w32-68b653b66b0db6b1554806650fb0bebd7af9ef3b.zip
config: trim/improve item names and help texts, take 2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/Config.src80
-rw-r--r--networking/udhcp/d6_dhcpc.c2
2 files changed, 43 insertions, 39 deletions
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src
index af2fe1835..8ab8d30ce 100644
--- a/networking/udhcp/Config.src
+++ b/networking/udhcp/Config.src
@@ -3,26 +3,14 @@
3# see scripts/kbuild/config-language.txt. 3# see scripts/kbuild/config-language.txt.
4# 4#
5 5
6INSERT
7
8config UDHCPD 6config UDHCPD
9 bool "udhcpd (DHCP server)" 7 bool "udhcpd"
10 default y 8 default y
11 select PLATFORM_LINUX 9 select PLATFORM_LINUX
12 help 10 help
13 udhcpd is a DHCP server geared primarily toward embedded systems, 11 udhcpd is a DHCP server geared primarily toward embedded systems,
14 while striving to be fully functional and RFC compliant. 12 while striving to be fully functional and RFC compliant.
15 13
16config FEATURE_UDHCPD_WRITE_LEASES_EARLY
17 bool "Rewrite the lease file at every new acknowledge"
18 default y
19 depends on UDHCPD
20 help
21 If selected, udhcpd will write a new file with leases every
22 time a new lease has been accepted, thus eliminating the need
23 to send SIGUSR1 for the initial writing or updating. Any timed
24 rewriting remains undisturbed.
25
26config FEATURE_UDHCPD_BASE_IP_ON_MAC 14config FEATURE_UDHCPD_BASE_IP_ON_MAC
27 bool "Select IP address based on client MAC" 15 bool "Select IP address based on client MAC"
28 default n 16 default n
@@ -37,6 +25,16 @@ config FEATURE_UDHCPD_BASE_IP_ON_MAC
37 for the same client to (almost always) contain the same 25 for the same client to (almost always) contain the same
38 IP address. 26 IP address.
39 27
28config FEATURE_UDHCPD_WRITE_LEASES_EARLY
29 bool "Rewrite lease file at every new acknowledge"
30 default y
31 depends on UDHCPD
32 help
33 If selected, udhcpd will write a new file with leases every
34 time a new lease has been accepted, thus eliminating the need
35 to send SIGUSR1 for the initial writing or updating. Any timed
36 rewriting remains undisturbed.
37
40config DHCPD_LEASES_FILE 38config DHCPD_LEASES_FILE
41 string "Absolute path to lease file" 39 string "Absolute path to lease file"
42 default "/var/lib/misc/udhcpd.leases" 40 default "/var/lib/misc/udhcpd.leases"
@@ -57,12 +55,12 @@ config DHCPRELAY
57 bool "dhcprelay (5.8 kb)" 55 bool "dhcprelay (5.8 kb)"
58 default y 56 default y
59 help 57 help
60 dhcprelay listens for dhcp requests on one or more interfaces 58 dhcprelay listens for DHCP requests on one or more interfaces
61 and forwards these requests to a different interface or dhcp 59 and forwards these requests to a different interface or DHCP
62 server. 60 server.
63 61
64config UDHCPC 62config UDHCPC
65 bool "udhcpc (DHCP client)" 63 bool "udhcpc"
66 default y 64 default y
67 select PLATFORM_LINUX 65 select PLATFORM_LINUX
68 help 66 help
@@ -102,19 +100,25 @@ config UDHCPC_DEFAULT_SCRIPT
102 examples/udhcp for a working example. Normally it is safe 100 examples/udhcp for a working example. Normally it is safe
103 to leave this untouched. 101 to leave this untouched.
104 102
103# udhcpc6 config is inserted here:
104INSERT
105
106comment "Common options for DHCP applets"
107 depends on UDHCPD || UDHCPC || UDHCPC6 || DHCPRELAY
108
105config FEATURE_UDHCP_PORT 109config FEATURE_UDHCP_PORT
106 bool "Enable '-P port' option for udhcpd and udhcpc" 110 bool "Enable '-P port' option for udhcpd and udhcpc"
107 default n 111 default n
108 depends on UDHCPD || UDHCPC 112 depends on UDHCPD || UDHCPC || UDHCPC6
109 help 113 help
110 At the cost of ~300 bytes, enables -P port option. 114 At the cost of ~300 bytes, enables -P port option.
111 This feature is typically not needed. 115 This feature is typically not needed.
112 116
113config UDHCP_DEBUG 117config UDHCP_DEBUG
114 int "Maximum verbosity level for udhcp applets (0..9)" 118 int "Maximum verbosity level (0..9)"
115 default 9 119 default 9
116 range 0 9 120 range 0 9
117 depends on UDHCPD || UDHCPC || DHCPRELAY 121 depends on UDHCPD || UDHCPC || UDHCPC6 || DHCPRELAY
118 help 122 help
119 Verbosity can be increased with multiple -v options. 123 Verbosity can be increased with multiple -v options.
120 This option controls how high it can be cranked up. 124 This option controls how high it can be cranked up.
@@ -122,23 +126,6 @@ config UDHCP_DEBUG
122 Bigger values result in bigger code. Levels above 1 126 Bigger values result in bigger code. Levels above 1
123 are very verbose and useful for debugging only. 127 are very verbose and useful for debugging only.
124 128
125config FEATURE_UDHCP_RFC3397
126 bool "Support RFC3397 domain search (experimental)"
127 default y
128 depends on UDHCPD || UDHCPC
129 help
130 If selected, both client and server will support passing of domain
131 search lists via option 119, specified in RFC 3397,
132 and SIP servers option 120, specified in RFC 3361.
133
134config FEATURE_UDHCP_8021Q
135 bool "Support 802.1Q VLAN parameters"
136 default y
137 depends on UDHCPD || UDHCPC
138 help
139 If selected, both client and server will support passing of VLAN
140 ID and priority via options 132 and 133 as per 802.1Q.
141
142config UDHCPC_SLACK_FOR_BUGGY_SERVERS 129config UDHCPC_SLACK_FOR_BUGGY_SERVERS
143 int "DHCP options slack buffer size" 130 int "DHCP options slack buffer size"
144 default 80 131 default 80
@@ -149,10 +136,10 @@ config UDHCPC_SLACK_FOR_BUGGY_SERVERS
149 field larger than we expect (which might also be considered a 136 field larger than we expect (which might also be considered a
150 buffer overflow attempt). These packets are normally discarded. 137 buffer overflow attempt). These packets are normally discarded.
151 If circumstances beyond your control force you to support such 138 If circumstances beyond your control force you to support such
152 servers, this may help. The upper limit (924) makes dhcpc accept 139 servers, this may help. The upper limit (924) makes udhcpc accept
153 even 1500 byte packets (maximum-sized ethernet packets). 140 even 1500 byte packets (maximum-sized ethernet packets).
154 141
155 This option does not make dhcp[cd] emit non-standard 142 This option does not make udhcp[cd] emit non-standard
156 sized packets. 143 sized packets.
157 144
158 Known buggy DHCP servers: 145 Known buggy DHCP servers:
@@ -161,3 +148,20 @@ config UDHCPC_SLACK_FOR_BUGGY_SERVERS
161 maximum size of entire IP packet, and sends packets 148 maximum size of entire IP packet, and sends packets
162 which are 28 bytes too large. 149 which are 28 bytes too large.
163 Seednet (ISP) VDSL: sends packets 2 bytes too large. 150 Seednet (ISP) VDSL: sends packets 2 bytes too large.
151
152config FEATURE_UDHCP_RFC3397
153 bool "Support RFC 3397 domain search options"
154 default y
155 depends on UDHCPD || UDHCPC
156 help
157 If selected, both client and server will support passing of domain
158 search lists via option 119, specified in RFC 3397,
159 and SIP servers option 120, specified in RFC 3361.
160
161config FEATURE_UDHCP_8021Q
162 bool "Support 802.1Q VLAN parameters options"
163 default y
164 depends on UDHCPD || UDHCPC
165 help
166 If selected, both client and server will support passing of VLAN
167 ID and priority via options 132 and 133 as per 802.1Q.
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 5ebd05d01..43081efca 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12//config:config UDHCPC6 12//config:config UDHCPC6
13//config: bool "udhcpc6 (DHCPv6 client, EXPERIMENTAL)" 13//config: bool "udhcpc6"
14//config: default n # not yet ready 14//config: default n # not yet ready
15//config: depends on FEATURE_IPV6 15//config: depends on FEATURE_IPV6
16//config: help 16//config: help