blob: af2fe1835dcb80bf28f40718f6f06f9e8c31e67f [file] [log] [blame]
Mike Frysinger7031f622006-05-08 03:20:50 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
Denys Vlasenkod70e0e92010-06-08 12:15:11 +02006INSERT
7
Denys Vlasenko4662de02009-12-11 02:21:10 +01008config UDHCPD
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +01009 bool "udhcpd (DHCP server)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020010 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010011 select PLATFORM_LINUX
Mike Frysinger7031f622006-05-08 03:20:50 +000012 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020013 udhcpd is a DHCP server geared primarily toward embedded systems,
14 while striving to be fully functional and RFC compliant.
Mike Frysinger7031f622006-05-08 03:20:50 +000015
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000016config FEATURE_UDHCPD_WRITE_LEASES_EARLY
17 bool "Rewrite the lease file at every new acknowledge"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020018 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010019 depends on UDHCPD
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000020 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020021 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.
Vladislav Grishenko58271672011-02-16 13:31:30 +010025
26config FEATURE_UDHCPD_BASE_IP_ON_MAC
27 bool "Select IP address based on client MAC"
28 default n
29 depends on UDHCPD
30 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020031 If selected, udhcpd will base its selection of IP address to offer
32 on the client's hardware address. Otherwise udhcpd uses the next
33 consecutive free address.
Vladislav Grishenko58271672011-02-16 13:31:30 +010034
Denys Vlasenko72089cf2017-07-21 09:50:55 +020035 This reduces the frequency of IP address changes for clients
36 which let their lease expire, and makes consecutive DHCPOFFERS
37 for the same client to (almost always) contain the same
38 IP address.
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000039
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000040config DHCPD_LEASES_FILE
41 string "Absolute path to lease file"
42 default "/var/lib/misc/udhcpd.leases"
Denys Vlasenko4662de02009-12-11 02:21:10 +010043 depends on UDHCPD
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000044 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020045 udhcpd stores addresses in a lease file. This is the absolute path
46 of the file. Normally it is safe to leave it untouched.
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000047
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +010048config DUMPLEASES
Denys Vlasenko4eed2c62017-07-18 22:01:24 +020049 bool "dumpleases (6.4 kb)"
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +010050 default y
51 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020052 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.
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +010055
56config DHCPRELAY
Denys Vlasenko4eed2c62017-07-18 22:01:24 +020057 bool "dhcprelay (5.8 kb)"
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +010058 default y
59 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020060 dhcprelay listens for dhcp requests on one or more interfaces
61 and forwards these requests to a different interface or dhcp
62 server.
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +010063
Denys Vlasenko4662de02009-12-11 02:21:10 +010064config UDHCPC
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +010065 bool "udhcpc (DHCP client)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020066 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010067 select PLATFORM_LINUX
Mike Frysinger7031f622006-05-08 03:20:50 +000068 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020069 udhcpc is a DHCP client geared primarily toward embedded systems,
70 while striving to be fully functional and RFC compliant.
Mike Frysinger7031f622006-05-08 03:20:50 +000071
Denys Vlasenko72089cf2017-07-21 09:50:55 +020072 The udhcp client negotiates a lease with the DHCP server and
73 runs a script when a lease is obtained or lost.
Mike Frysinger7031f622006-05-08 03:20:50 +000074
Denis Vlasenko223bc972007-11-22 00:58:49 +000075config FEATURE_UDHCPC_ARPING
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000076 bool "Verify that the offered address is free, using ARP ping"
Denis Vlasenko223bc972007-11-22 00:58:49 +000077 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010078 depends on UDHCPC
Denis Vlasenko223bc972007-11-22 00:58:49 +000079 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020080 If selected, udhcpc will send ARP probes and make sure
81 the offered address is really not in use by anyone. The client
82 will DHCPDECLINE the offer if the address is in use,
83 and restart the discover process.
Denis Vlasenko223bc972007-11-22 00:58:49 +000084
Denys Vlasenko85090c12014-06-16 00:17:00 +020085config FEATURE_UDHCPC_SANITIZEOPT
86 bool "Do not pass malformed host and domain names"
87 default y
88 depends on UDHCPC
89 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020090 If selected, udhcpc will check some options (such as option 12 -
91 hostname) and if they don't look like valid hostnames
92 (for example, if they start with dash or contain spaces),
93 they will be replaced with string "bad" when exporting
94 to the environment.
Denys Vlasenko85090c12014-06-16 00:17:00 +020095
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +010096config UDHCPC_DEFAULT_SCRIPT
97 string "Absolute path to config script"
98 default "/usr/share/udhcpc/default.script"
99 depends on UDHCPC
100 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200101 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.
Denys Vlasenkoc6137ba2017-01-04 12:13:38 +0100104
Denis Vlasenkod55fe3e2008-02-04 13:12:16 +0000105config FEATURE_UDHCP_PORT
106 bool "Enable '-P port' option for udhcpd and udhcpc"
Vladislav Grishenko58271672011-02-16 13:31:30 +0100107 default n
Denys Vlasenko4662de02009-12-11 02:21:10 +0100108 depends on UDHCPD || UDHCPC
Denis Vlasenkod55fe3e2008-02-04 13:12:16 +0000109 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200110 At the cost of ~300 bytes, enables -P port option.
111 This feature is typically not needed.
Denis Vlasenko223bc972007-11-22 00:58:49 +0000112
Denis Vlasenko35a064b2008-11-06 00:49:59 +0000113config UDHCP_DEBUG
Denys Vlasenko7a76eba2009-06-19 13:51:29 +0200114 int "Maximum verbosity level for udhcp applets (0..9)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200115 default 9
Denys Vlasenko7a76eba2009-06-19 13:51:29 +0200116 range 0 9
Denys Vlasenko4662de02009-12-11 02:21:10 +0100117 depends on UDHCPD || UDHCPC || DHCPRELAY
Mike Frysinger7031f622006-05-08 03:20:50 +0000118 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200119 Verbosity can be increased with multiple -v options.
120 This option controls how high it can be cranked up.
Denys Vlasenkoac906fa2009-06-17 11:54:52 +0200121
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200122 Bigger values result in bigger code. Levels above 1
123 are very verbose and useful for debugging only.
Denis Vlasenko50664732007-02-27 21:15:08 +0000124
Denis Vlasenko35a064b2008-11-06 00:49:59 +0000125config FEATURE_UDHCP_RFC3397
Denys Vlasenkof5604222017-01-10 14:58:54 +0100126 bool "Support RFC3397 domain search (experimental)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200127 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +0100128 depends on UDHCPD || UDHCPC
Denis Vlasenko50664732007-02-27 21:15:08 +0000129 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200130 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.
Denis Vlasenko72e76042007-11-25 03:15:24 +0000133
Nigel Hathawayfb6b1732011-04-26 02:50:00 +0200134config FEATURE_UDHCP_8021Q
Denys Vlasenkof5604222017-01-10 14:58:54 +0100135 bool "Support 802.1Q VLAN parameters"
Nigel Hathawayfb6b1732011-04-26 02:50:00 +0200136 default y
137 depends on UDHCPD || UDHCPC
138 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200139 If selected, both client and server will support passing of VLAN
140 ID and priority via options 132 and 133 as per 802.1Q.
Nigel Hathawayfb6b1732011-04-26 02:50:00 +0200141
Denis Vlasenko72e76042007-11-25 03:15:24 +0000142config UDHCPC_SLACK_FOR_BUGGY_SERVERS
143 int "DHCP options slack buffer size"
144 default 80
145 range 0 924
Denys Vlasenko4662de02009-12-11 02:21:10 +0100146 depends on UDHCPD || UDHCPC
Denis Vlasenko72e76042007-11-25 03:15:24 +0000147 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200148 Some buggy DHCP servers send DHCP offer packets with option
149 field larger than we expect (which might also be considered a
150 buffer overflow attempt). These packets are normally discarded.
151 If circumstances beyond your control force you to support such
152 servers, this may help. The upper limit (924) makes dhcpc accept
153 even 1500 byte packets (maximum-sized ethernet packets).
Denis Vlasenko72e76042007-11-25 03:15:24 +0000154
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200155 This option does not make dhcp[cd] emit non-standard
156 sized packets.
Denis Vlasenko72e76042007-11-25 03:15:24 +0000157
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200158 Known buggy DHCP servers:
159 3Com OfficeConnect Remote 812 ADSL Router:
160 seems to confuse maximum allowed UDP packet size with
161 maximum size of entire IP packet, and sends packets
162 which are 28 bytes too large.
163 Seednet (ISP) VDSL: sends packets 2 bytes too large.