9bede614991ed2ffbae0ba34d368b9d1ed4d0516
[openwrt/staging/nbd.git] / package / utils / busybox / config / networking / udhcp / Config.in
1 # DO NOT EDIT. This file is generated from Config.src
2 #
3 # For a description of the syntax of this configuration file,
4 # see docs/Kconfig-language.txt.
5 #
6
7 config BUSYBOX_CONFIG_UDHCPD
8 bool "udhcpd (21 kb)"
9 default BUSYBOX_DEFAULT_UDHCPD
10 help
11 udhcpd is a DHCP server geared primarily toward embedded systems,
12 while striving to be fully functional and RFC compliant.
13
14 config BUSYBOX_CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC
15 bool "Select IP address based on client MAC"
16 default BUSYBOX_DEFAULT_FEATURE_UDHCPD_BASE_IP_ON_MAC
17 depends on BUSYBOX_CONFIG_UDHCPD
18 help
19 If selected, udhcpd will base its selection of IP address to offer
20 on the client's hardware address. Otherwise udhcpd uses the next
21 consecutive free address.
22
23 This reduces the frequency of IP address changes for clients
24 which let their lease expire, and makes consecutive DHCPOFFERS
25 for the same client to (almost always) contain the same
26 IP address.
27
28 config BUSYBOX_CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY
29 bool "Rewrite lease file at every new acknowledge"
30 default BUSYBOX_DEFAULT_FEATURE_UDHCPD_WRITE_LEASES_EARLY
31 depends on BUSYBOX_CONFIG_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
38 config BUSYBOX_CONFIG_DHCPD_LEASES_FILE
39 string "Absolute path to lease file"
40 default BUSYBOX_DEFAULT_DHCPD_LEASES_FILE
41 depends on BUSYBOX_CONFIG_UDHCPD
42 help
43 udhcpd stores addresses in a lease file. This is the absolute path
44 of the file. Normally it is safe to leave it untouched.
45
46 config BUSYBOX_CONFIG_DUMPLEASES
47 bool "dumpleases (5.1 kb)"
48 default BUSYBOX_DEFAULT_DUMPLEASES
49 help
50 dumpleases displays the leases written out by the udhcpd.
51 Lease times are stored in the file by time remaining in lease, or
52 by the absolute time that it expires in seconds from epoch.
53
54 config BUSYBOX_CONFIG_DHCPRELAY
55 bool "dhcprelay (5.2 kb)"
56 default BUSYBOX_DEFAULT_DHCPRELAY
57 help
58 dhcprelay listens for DHCP requests on one or more interfaces
59 and forwards these requests to a different interface or DHCP
60 server.
61
62 config BUSYBOX_CONFIG_UDHCPC
63 bool "udhcpc (24 kb)"
64 default BUSYBOX_DEFAULT_UDHCPC
65 help
66 udhcpc is a DHCP client geared primarily toward embedded systems,
67 while striving to be fully functional and RFC compliant.
68
69 The udhcp client negotiates a lease with the DHCP server and
70 runs a script when a lease is obtained or lost.
71
72 config BUSYBOX_CONFIG_FEATURE_UDHCPC_ARPING
73 bool "Verify that the offered address is free, using ARP ping"
74 default BUSYBOX_DEFAULT_FEATURE_UDHCPC_ARPING
75 depends on BUSYBOX_CONFIG_UDHCPC
76 help
77 If selected, udhcpc will send ARP probes and make sure
78 the offered address is really not in use by anyone. The client
79 will DHCPDECLINE the offer if the address is in use,
80 and restart the discover process.
81
82 config BUSYBOX_CONFIG_FEATURE_UDHCPC_SANITIZEOPT
83 bool "Do not pass malformed host and domain names"
84 default BUSYBOX_DEFAULT_FEATURE_UDHCPC_SANITIZEOPT
85 depends on BUSYBOX_CONFIG_UDHCPC
86 help
87 If selected, udhcpc will check some options (such as option 12 -
88 hostname) and if they don't look like valid hostnames
89 (for example, if they start with dash or contain spaces),
90 they will be replaced with string "bad" when exporting
91 to the environment.
92
93 config BUSYBOX_CONFIG_UDHCPC_DEFAULT_SCRIPT
94 string "Absolute path to config script"
95 default BUSYBOX_DEFAULT_UDHCPC_DEFAULT_SCRIPT
96 depends on BUSYBOX_CONFIG_UDHCPC || BUSYBOX_CONFIG_UDHCPC6
97 help
98 This script is called after udhcpc receives an answer. See
99 examples/udhcp for a working example. Normally it is safe
100 to leave this untouched.
101
102 # udhcpc6 config is inserted here:
103 config BUSYBOX_CONFIG_UDHCPC6
104 bool "udhcpc6 (21 kb)"
105 default BUSYBOX_DEFAULT_UDHCPC6
106 depends on BUSYBOX_CONFIG_FEATURE_IPV6
107 help
108 udhcpc6 is a DHCPv6 client
109
110 config BUSYBOX_CONFIG_FEATURE_UDHCPC6_RFC3646
111 bool "Support RFC 3646 (DNS server and search list)"
112 default BUSYBOX_DEFAULT_FEATURE_UDHCPC6_RFC3646
113 depends on BUSYBOX_CONFIG_UDHCPC6
114 help
115 List of DNS servers and domain search list can be requested with
116 "-O dns" and "-O search". If server gives these values,
117 they will be set in environment variables "dns" and "search".
118
119 config BUSYBOX_CONFIG_FEATURE_UDHCPC6_RFC4704
120 bool "Support RFC 4704 (Client FQDN)"
121 default BUSYBOX_DEFAULT_FEATURE_UDHCPC6_RFC4704
122 depends on BUSYBOX_CONFIG_UDHCPC6
123 help
124 You can request FQDN to be given by server using "-O fqdn".
125
126 config BUSYBOX_CONFIG_FEATURE_UDHCPC6_RFC4833
127 bool "Support RFC 4833 (Timezones)"
128 default BUSYBOX_DEFAULT_FEATURE_UDHCPC6_RFC4833
129 depends on BUSYBOX_CONFIG_UDHCPC6
130 help
131 You can request POSIX timezone with "-O tz" and timezone name
132 with "-O timezone".
133
134 config BUSYBOX_CONFIG_FEATURE_UDHCPC6_RFC5970
135 bool "Support RFC 5970 (Network Boot)"
136 default BUSYBOX_DEFAULT_FEATURE_UDHCPC6_RFC5970
137 depends on BUSYBOX_CONFIG_UDHCPC6
138 help
139 You can request bootfile-url with "-O bootfile_url" and
140 bootfile-params with "-O bootfile_params".
141
142 comment "Common options for DHCP applets"
143 depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC || BUSYBOX_CONFIG_UDHCPC6 || BUSYBOX_CONFIG_DHCPRELAY
144
145 config BUSYBOX_CONFIG_FEATURE_UDHCP_PORT
146 bool "Enable '-P port' option for udhcpd and udhcpc"
147 default BUSYBOX_DEFAULT_FEATURE_UDHCP_PORT
148 depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC || BUSYBOX_CONFIG_UDHCPC6
149 help
150 At the cost of ~300 bytes, enables -P port option.
151 This feature is typically not needed.
152
153 config BUSYBOX_CONFIG_UDHCP_DEBUG
154 int "Maximum verbosity level (0..9)"
155 default BUSYBOX_DEFAULT_UDHCP_DEBUG
156 range 0 9
157 depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC || BUSYBOX_CONFIG_UDHCPC6 || BUSYBOX_CONFIG_DHCPRELAY
158 help
159 Verbosity can be increased with multiple -v options.
160 This option controls how high it can be cranked up.
161
162 Bigger values result in bigger code. Levels above 1
163 are very verbose and useful for debugging only.
164
165 config BUSYBOX_CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS
166 int "DHCP options slack buffer size"
167 default BUSYBOX_DEFAULT_UDHCPC_SLACK_FOR_BUGGY_SERVERS
168 range 0 924
169 depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC
170 help
171 Some buggy DHCP servers send DHCP offer packets with option
172 field larger than we expect (which might also be considered a
173 buffer overflow attempt). These packets are normally discarded.
174 If circumstances beyond your control force you to support such
175 servers, this may help. The upper limit (924) makes udhcpc accept
176 even 1500 byte packets (maximum-sized ethernet packets).
177
178 This option does not make udhcp[cd] emit non-standard
179 sized packets.
180
181 Known buggy DHCP servers:
182 3Com OfficeConnect Remote 812 ADSL Router:
183 seems to confuse maximum allowed UDP packet size with
184 maximum size of entire IP packet, and sends packets
185 which are 28 bytes too large.
186 Seednet (ISP) VDSL: sends packets 2 bytes too large.
187
188 config BUSYBOX_CONFIG_FEATURE_UDHCP_RFC3397
189 bool "Support RFC 3397 domain search options"
190 default BUSYBOX_DEFAULT_FEATURE_UDHCP_RFC3397
191 depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC
192 help
193 If selected, both client and server will support passing of domain
194 search lists via option 119, specified in RFC 3397,
195 and SIP servers option 120, specified in RFC 3361.
196
197 config BUSYBOX_CONFIG_FEATURE_UDHCP_8021Q
198 bool "Support 802.1Q VLAN parameters options"
199 default BUSYBOX_DEFAULT_FEATURE_UDHCP_8021Q
200 depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC
201 help
202 If selected, both client and server will support passing of VLAN
203 ID and priority via options 132 and 133 as per 802.1Q.