summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-21 09:50:55 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-21 09:50:55 +0200
commit72089cf6b4a77214ec4fd21d5ee5bf56958781cb (patch)
treea5cd9d8f47e909834d3dbc44f895556e68bcf18f /networking/udhcp
parent75d151e31d135ebab083307ded4e9b98970baa75 (diff)
downloadbusybox-w32-72089cf6b4a77214ec4fd21d5ee5bf56958781cb.tar.gz
busybox-w32-72089cf6b4a77214ec4fd21d5ee5bf56958781cb.tar.bz2
busybox-w32-72089cf6b4a77214ec4fd21d5ee5bf56958781cb.zip
config: deindent all help texts
Those two spaces after tab have no effect, and always a nuisance when editing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/Config.src128
-rw-r--r--networking/udhcp/d6_dhcpc.c14
2 files changed, 71 insertions, 71 deletions
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src
index 43f3676e4..af2fe1835 100644
--- a/networking/udhcp/Config.src
+++ b/networking/udhcp/Config.src
@@ -10,105 +10,105 @@ config UDHCPD
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 FEATURE_UDHCPD_WRITE_LEASES_EARLY 16config FEATURE_UDHCPD_WRITE_LEASES_EARLY
17 bool "Rewrite the lease file at every new acknowledge" 17 bool "Rewrite the lease file at every new acknowledge"
18 default y 18 default y
19 depends on UDHCPD 19 depends on UDHCPD
20 help 20 help
21 If selected, udhcpd will write a new file with leases every 21 If selected, udhcpd will write a new file with leases every
22 time a new lease has been accepted, thus eliminating the need 22 time a new lease has been accepted, thus eliminating the need
23 to send SIGUSR1 for the initial writing or updating. Any timed 23 to send SIGUSR1 for the initial writing or updating. Any timed
24 rewriting remains undisturbed. 24 rewriting remains undisturbed.
25 25
26config FEATURE_UDHCPD_BASE_IP_ON_MAC 26config FEATURE_UDHCPD_BASE_IP_ON_MAC
27 bool "Select IP address based on client MAC" 27 bool "Select IP address based on client MAC"
28 default n 28 default n
29 depends on UDHCPD 29 depends on UDHCPD
30 help 30 help
31 If selected, udhcpd will base its selection of IP address to offer 31 If selected, udhcpd will base its selection of IP address to offer
32 on the client's hardware address. Otherwise udhcpd uses the next 32 on the client's hardware address. Otherwise udhcpd uses the next
33 consecutive free address. 33 consecutive free address.
34 34
35 This reduces the frequency of IP address changes for clients 35 This reduces the frequency of IP address changes for clients
36 which let their lease expire, and makes consecutive DHCPOFFERS 36 which let their lease expire, and makes consecutive DHCPOFFERS
37 for the same client to (almost always) contain the same 37 for the same client to (almost always) contain the same
38 IP address. 38 IP address.
39 39
40config DHCPD_LEASES_FILE 40config DHCPD_LEASES_FILE
41 string "Absolute path to lease file" 41 string "Absolute path to lease file"
42 default "/var/lib/misc/udhcpd.leases" 42 default "/var/lib/misc/udhcpd.leases"
43 depends on UDHCPD 43 depends on UDHCPD
44 help 44 help
45 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
46 of the file. Normally it is safe to leave it untouched. 46 of the file. Normally it is safe to leave it untouched.
47 47
48config DUMPLEASES 48config DUMPLEASES
49 bool "dumpleases (6.4 kb)" 49 bool "dumpleases (6.4 kb)"
50 default y 50 default y
51 help 51 help
52 dumpleases displays the leases written out by the udhcpd. 52 dumpleases displays the leases written out by the udhcpd.
53 Lease times are stored in the file by time remaining in lease, or 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. 54 by the absolute time that it expires in seconds from epoch.
55 55
56config DHCPRELAY 56config DHCPRELAY
57 bool "dhcprelay (5.8 kb)" 57 bool "dhcprelay (5.8 kb)"
58 default y 58 default y
59 help 59 help
60 dhcprelay listens for dhcp requests on one or more interfaces 60 dhcprelay listens for dhcp requests on one or more interfaces
61 and forwards these requests to a different interface or dhcp 61 and forwards these requests to a different interface or dhcp
62 server. 62 server.
63 63
64config UDHCPC 64config UDHCPC
65 bool "udhcpc (DHCP client)" 65 bool "udhcpc (DHCP client)"
66 default y 66 default y
67 select PLATFORM_LINUX 67 select PLATFORM_LINUX
68 help 68 help
69 udhcpc is a DHCP client geared primarily toward embedded systems, 69 udhcpc is a DHCP client geared primarily toward embedded systems,
70 while striving to be fully functional and RFC compliant. 70 while striving to be fully functional and RFC compliant.
71 71
72 The udhcp client negotiates a lease with the DHCP server and 72 The udhcp client negotiates a lease with the DHCP server and
73 runs a script when a lease is obtained or lost. 73 runs a script when a lease is obtained or lost.
74 74
75config FEATURE_UDHCPC_ARPING 75config FEATURE_UDHCPC_ARPING
76 bool "Verify that the offered address is free, using ARP ping" 76 bool "Verify that the offered address is free, using ARP ping"
77 default y 77 default y
78 depends on UDHCPC 78 depends on UDHCPC
79 help 79 help
80 If selected, udhcpc will send ARP probes and make sure 80 If selected, udhcpc will send ARP probes and make sure
81 the offered address is really not in use by anyone. The client 81 the offered address is really not in use by anyone. The client
82 will DHCPDECLINE the offer if the address is in use, 82 will DHCPDECLINE the offer if the address is in use,
83 and restart the discover process. 83 and restart the discover process.
84 84
85config FEATURE_UDHCPC_SANITIZEOPT 85config FEATURE_UDHCPC_SANITIZEOPT
86 bool "Do not pass malformed host and domain names" 86 bool "Do not pass malformed host and domain names"
87 default y 87 default y
88 depends on UDHCPC 88 depends on UDHCPC
89 help 89 help
90 If selected, udhcpc will check some options (such as option 12 - 90 If selected, udhcpc will check some options (such as option 12 -
91 hostname) and if they don't look like valid hostnames 91 hostname) and if they don't look like valid hostnames
92 (for example, if they start with dash or contain spaces), 92 (for example, if they start with dash or contain spaces),
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 96config UDHCPC_DEFAULT_SCRIPT
97 string "Absolute path to config script" 97 string "Absolute path to config script"
98 default "/usr/share/udhcpc/default.script" 98 default "/usr/share/udhcpc/default.script"
99 depends on UDHCPC 99 depends on UDHCPC
100 help 100 help
101 This script is called after udhcpc receives an answer. See 101 This script is called after udhcpc receives an answer. See
102 examples/udhcp for a working example. Normally it is safe 102 examples/udhcp for a working example. Normally it is safe
103 to leave this untouched. 103 to leave this untouched.
104 104
105config FEATURE_UDHCP_PORT 105config FEATURE_UDHCP_PORT
106 bool "Enable '-P port' option for udhcpd and udhcpc" 106 bool "Enable '-P port' option for udhcpd and udhcpc"
107 default n 107 default n
108 depends on UDHCPD || UDHCPC 108 depends on UDHCPD || UDHCPC
109 help 109 help
110 At the cost of ~300 bytes, enables -P port option. 110 At the cost of ~300 bytes, enables -P port option.
111 This feature is typically not needed. 111 This feature is typically not needed.
112 112
113config UDHCP_DEBUG 113config UDHCP_DEBUG
114 int "Maximum verbosity level for udhcp applets (0..9)" 114 int "Maximum verbosity level for udhcp applets (0..9)"
@@ -116,28 +116,28 @@ config UDHCP_DEBUG
116 range 0 9 116 range 0 9
117 depends on UDHCPD || UDHCPC || DHCPRELAY 117 depends on UDHCPD || UDHCPC || DHCPRELAY
118 help 118 help
119 Verbosity can be increased with multiple -v options. 119 Verbosity can be increased with multiple -v options.
120 This option controls how high it can be cranked up. 120 This option controls how high it can be cranked up.
121 121
122 Bigger values result in bigger code. Levels above 1 122 Bigger values result in bigger code. Levels above 1
123 are very verbose and useful for debugging only. 123 are very verbose and useful for debugging only.
124 124
125config FEATURE_UDHCP_RFC3397 125config FEATURE_UDHCP_RFC3397
126 bool "Support RFC3397 domain search (experimental)" 126 bool "Support RFC3397 domain search (experimental)"
127 default y 127 default y
128 depends on UDHCPD || UDHCPC 128 depends on UDHCPD || UDHCPC
129 help 129 help
130 If selected, both client and server will support passing of domain 130 If selected, both client and server will support passing of domain
131 search lists via option 119, specified in RFC 3397, 131 search lists via option 119, specified in RFC 3397,
132 and SIP servers option 120, specified in RFC 3361. 132 and SIP servers option 120, specified in RFC 3361.
133 133
134config FEATURE_UDHCP_8021Q 134config FEATURE_UDHCP_8021Q
135 bool "Support 802.1Q VLAN parameters" 135 bool "Support 802.1Q VLAN parameters"
136 default y 136 default y
137 depends on UDHCPD || UDHCPC 137 depends on UDHCPD || UDHCPC
138 help 138 help
139 If selected, both client and server will support passing of VLAN 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. 140 ID and priority via options 132 and 133 as per 802.1Q.
141 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"
@@ -145,19 +145,19 @@ config UDHCPC_SLACK_FOR_BUGGY_SERVERS
145 range 0 924 145 range 0 924
146 depends on UDHCPD || UDHCPC 146 depends on UDHCPD || UDHCPC
147 help 147 help
148 Some buggy DHCP servers send DHCP offer packets with option 148 Some buggy DHCP servers send DHCP offer packets with option
149 field larger than we expect (which might also be considered a 149 field larger than we expect (which might also be considered a
150 buffer overflow attempt). These packets are normally discarded. 150 buffer overflow attempt). These packets are normally discarded.
151 If circumstances beyond your control force you to support such 151 If circumstances beyond your control force you to support such
152 servers, this may help. The upper limit (924) makes dhcpc accept 152 servers, this may help. The upper limit (924) makes dhcpc accept
153 even 1500 byte packets (maximum-sized ethernet packets). 153 even 1500 byte packets (maximum-sized ethernet packets).
154 154
155 This option does not make dhcp[cd] emit non-standard 155 This option does not make dhcp[cd] emit non-standard
156 sized packets. 156 sized packets.
157 157
158 Known buggy DHCP servers: 158 Known buggy DHCP servers:
159 3Com OfficeConnect Remote 812 ADSL Router: 159 3Com OfficeConnect Remote 812 ADSL Router:
160 seems to confuse maximum allowed UDP packet size with 160 seems to confuse maximum allowed UDP packet size with
161 maximum size of entire IP packet, and sends packets which are 161 maximum size of entire IP packet, and sends packets
162 28 bytes too large. 162 which are 28 bytes too large.
163 Seednet (ISP) VDSL: sends packets 2 bytes too large. 163 Seednet (ISP) VDSL: sends packets 2 bytes too large.
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index f6d3fb98b..ebf793438 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -14,31 +14,31 @@
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
17//config: udhcpc6 is a DHCPv6 client 17//config: udhcpc6 is a DHCPv6 client
18//config: 18//config:
19//config:config FEATURE_UDHCPC6_RFC3646 19//config:config FEATURE_UDHCPC6_RFC3646
20//config: bool "Support RFC 3646 (DNS server and search list)" 20//config: bool "Support RFC 3646 (DNS server and search list)"
21//config: default y 21//config: default y
22//config: depends on UDHCPC6 22//config: depends on UDHCPC6
23//config: help 23//config: help
24//config: List of DNS servers and domain search list can be requested with 24//config: List of DNS servers and domain search list can be requested with
25//config: "-O dns" and "-O search". If server gives these values, 25//config: "-O dns" and "-O search". If server gives these values,
26//config: they will be set in environment variables "dns" and "search". 26//config: they will be set in environment variables "dns" and "search".
27//config: 27//config:
28//config:config FEATURE_UDHCPC6_RFC4704 28//config:config FEATURE_UDHCPC6_RFC4704
29//config: bool "Support RFC 4704 (Client FQDN)" 29//config: bool "Support RFC 4704 (Client FQDN)"
30//config: default y 30//config: default y
31//config: depends on UDHCPC6 31//config: depends on UDHCPC6
32//config: help 32//config: help
33//config: You can request FQDN to be given by server using "-O fqdn". 33//config: You can request FQDN to be given by server using "-O fqdn".
34//config: 34//config:
35//config:config FEATURE_UDHCPC6_RFC4833 35//config:config FEATURE_UDHCPC6_RFC4833
36//config: bool "Support RFC 4833 (Timezones)" 36//config: bool "Support RFC 4833 (Timezones)"
37//config: default y 37//config: default y
38//config: depends on UDHCPC6 38//config: depends on UDHCPC6
39//config: help 39//config: help
40//config: You can request POSIX timezone with "-O tz" and timezone name 40//config: You can request POSIX timezone with "-O tz" and timezone name
41//config: with "-O timezone". 41//config: with "-O timezone".
42 42
43//applet:IF_UDHCPC6(APPLET(udhcpc6, BB_DIR_USR_BIN, BB_SUID_DROP)) 43//applet:IF_UDHCPC6(APPLET(udhcpc6, BB_DIR_USR_BIN, BB_SUID_DROP))
44 44