blob: dcd493f138d205cbd9e8dedbf743e08325ee8d78 [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
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +00009 bool "udhcp server (udhcpd)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020010 default y
Jeremie Koenig1d7266d2010-07-19 00:44:56 +020011 depends on PLATFORM_LINUX
Mike Frysinger7031f622006-05-08 03:20:50 +000012 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000013 udhcpd is a DHCP server geared primarily toward embedded systems,
Mike Frysinger7031f622006-05-08 03:20:50 +000014 while striving to be fully functional and RFC compliant.
15
Denys Vlasenko4662de02009-12-11 02:21:10 +010016config DHCPRELAY
Denis Vlasenko736230e2006-11-20 19:40:36 +000017 bool "dhcprelay"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020018 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010019 depends on UDHCPD
Denis Vlasenko736230e2006-11-20 19:40:36 +000020 help
21 dhcprelay listens for dhcp requests on one or more interfaces
22 and forwards these requests to a different interface or dhcp
23 server.
24
Denys Vlasenko4662de02009-12-11 02:21:10 +010025config DUMPLEASES
Mike Frysinger91a33902006-07-24 07:35:52 +000026 bool "Lease display utility (dumpleases)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020027 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010028 depends on UDHCPD
Mike Frysinger91a33902006-07-24 07:35:52 +000029 help
30 dumpleases displays the leases written out by the udhcpd server.
31 Lease times are stored in the file by time remaining in lease, or
32 by the absolute time that it expires in seconds from epoch.
33
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000034config FEATURE_UDHCPD_WRITE_LEASES_EARLY
35 bool "Rewrite the lease file at every new acknowledge"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020036 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010037 depends on UDHCPD
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000038 help
39 If selected, udhcpd will write a new file with leases every
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000040 time a new lease has been accepted, thus eliminating the need
41 to send SIGUSR1 for the initial writing or updating. Any timed
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000042 rewriting remains undisturbed
43
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000044config DHCPD_LEASES_FILE
45 string "Absolute path to lease file"
46 default "/var/lib/misc/udhcpd.leases"
Denys Vlasenko4662de02009-12-11 02:21:10 +010047 depends on UDHCPD
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000048 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000049 udhcpd stores addresses in a lease file. This is the absolute path
50 of the file. Normally it is safe to leave it untouched.
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000051
Denys Vlasenko4662de02009-12-11 02:21:10 +010052config UDHCPC
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000053 bool "udhcp client (udhcpc)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020054 default y
Jeremie Koenig1d7266d2010-07-19 00:44:56 +020055 depends on PLATFORM_LINUX
Mike Frysinger7031f622006-05-08 03:20:50 +000056 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000057 udhcpc is a DHCP client geared primarily toward embedded systems,
Mike Frysinger7031f622006-05-08 03:20:50 +000058 while striving to be fully functional and RFC compliant.
59
60 The udhcp client negotiates a lease with the DHCP server and
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000061 runs a script when a lease is obtained or lost.
Mike Frysinger7031f622006-05-08 03:20:50 +000062
Denis Vlasenko223bc972007-11-22 00:58:49 +000063config FEATURE_UDHCPC_ARPING
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000064 bool "Verify that the offered address is free, using ARP ping"
Denis Vlasenko223bc972007-11-22 00:58:49 +000065 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010066 depends on UDHCPC
Denis Vlasenko223bc972007-11-22 00:58:49 +000067 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000068 If selected, udhcpc will send ARP probes and make sure
69 the offered address is really not in use by anyone. The client
70 will DHCPDECLINE the offer if the address is in use,
71 and restart the discover process.
Denis Vlasenko223bc972007-11-22 00:58:49 +000072
Denis Vlasenkod55fe3e2008-02-04 13:12:16 +000073config FEATURE_UDHCP_PORT
74 bool "Enable '-P port' option for udhcpd and udhcpc"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020075 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010076 depends on UDHCPD || UDHCPC
Denis Vlasenkod55fe3e2008-02-04 13:12:16 +000077 help
78 At the cost of ~300 bytes, enables -P port option.
79 This feature is typically not needed.
Denis Vlasenko223bc972007-11-22 00:58:49 +000080
Denis Vlasenko35a064b2008-11-06 00:49:59 +000081config UDHCP_DEBUG
Denys Vlasenko7a76eba2009-06-19 13:51:29 +020082 int "Maximum verbosity level for udhcp applets (0..9)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020083 default 9
Denys Vlasenko7a76eba2009-06-19 13:51:29 +020084 range 0 9
Denys Vlasenko4662de02009-12-11 02:21:10 +010085 depends on UDHCPD || UDHCPC || DHCPRELAY
Mike Frysinger7031f622006-05-08 03:20:50 +000086 help
Denys Vlasenkoac906fa2009-06-17 11:54:52 +020087 Verbosity can be increased with multiple -v options.
Denys Vlasenko58a15cd2010-08-07 14:02:26 +020088 This option controls how high it can be cranked up.
Denys Vlasenkoac906fa2009-06-17 11:54:52 +020089
90 Bigger values result in bigger code. Levels above 1
91 are very verbose and useful for debugging only.
Denis Vlasenko50664732007-02-27 21:15:08 +000092
Denis Vlasenko35a064b2008-11-06 00:49:59 +000093config FEATURE_UDHCP_RFC3397
Denis Vlasenko50664732007-02-27 21:15:08 +000094 bool "Support for RFC3397 domain search (experimental)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020095 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010096 depends on UDHCPD || UDHCPC
Denis Vlasenko50664732007-02-27 21:15:08 +000097 help
98 If selected, both client and server will support passing of domain
Denys Vlasenko243ddcb2010-04-03 17:34:52 +020099 search lists via option 119, specified in RFC 3397,
100 and SIP servers option 120, specified in RFC 3361.
Denis Vlasenko72e76042007-11-25 03:15:24 +0000101
Denis Vlasenko35a064b2008-11-06 00:49:59 +0000102config UDHCPC_DEFAULT_SCRIPT
Denis Vlasenko84da0bf2008-02-20 22:29:52 +0000103 string "Absolute path to config script"
104 default "/usr/share/udhcpc/default.script"
Denys Vlasenko4662de02009-12-11 02:21:10 +0100105 depends on UDHCPC
Denis Vlasenko84da0bf2008-02-20 22:29:52 +0000106 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000107 This script is called after udhcpc receives an answer. See
108 examples/udhcp for a working example. Normally it is safe
Denis Vlasenko84da0bf2008-02-20 22:29:52 +0000109 to leave this untouched.
110
Denis Vlasenko72e76042007-11-25 03:15:24 +0000111config UDHCPC_SLACK_FOR_BUGGY_SERVERS
112 int "DHCP options slack buffer size"
113 default 80
114 range 0 924
Denys Vlasenko4662de02009-12-11 02:21:10 +0100115 depends on UDHCPD || UDHCPC
Denis Vlasenko72e76042007-11-25 03:15:24 +0000116 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000117 Some buggy DHCP servers send DHCP offer packets with option
Denis Vlasenko72e76042007-11-25 03:15:24 +0000118 field larger than we expect (which might also be considered a
119 buffer overflow attempt). These packets are normally discarded.
120 If circumstances beyond your control force you to support such
121 servers, this may help. The upper limit (924) makes dhcpc accept
122 even 1500 byte packets (maximum-sized ethernet packets).
123
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000124 This option does not make dhcp[cd] emit non-standard
Denis Vlasenko72e76042007-11-25 03:15:24 +0000125 sized packets.
126
127 Known buggy DHCP servers:
128 3Com OfficeConnect Remote 812 ADSL Router:
129 seems to confuse maximum allowed UDP packet size with
130 maximum size of entire IP packet, and sends packets which are
131 28 bytes too large.
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000132 Seednet (ISP) VDSL: sends packets 2 bytes too large.