blob: 34adf35fea139b619b3fd532102d89eeffbca8f3 [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 Vlasenko4662de02009-12-11 02:21:10 +01006config UDHCPD
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +00007 bool "udhcp server (udhcpd)"
Mike Frysinger7031f622006-05-08 03:20:50 +00008 default n
9 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000010 udhcpd is a DHCP server geared primarily toward embedded systems,
Mike Frysinger7031f622006-05-08 03:20:50 +000011 while striving to be fully functional and RFC compliant.
12
Denys Vlasenko4662de02009-12-11 02:21:10 +010013config DHCPRELAY
Denis Vlasenko736230e2006-11-20 19:40:36 +000014 bool "dhcprelay"
15 default n
Denys Vlasenko4662de02009-12-11 02:21:10 +010016 depends on UDHCPD
Denis Vlasenko736230e2006-11-20 19:40:36 +000017 help
18 dhcprelay listens for dhcp requests on one or more interfaces
19 and forwards these requests to a different interface or dhcp
20 server.
21
Denys Vlasenko4662de02009-12-11 02:21:10 +010022config DUMPLEASES
Mike Frysinger91a33902006-07-24 07:35:52 +000023 bool "Lease display utility (dumpleases)"
24 default n
Denys Vlasenko4662de02009-12-11 02:21:10 +010025 depends on UDHCPD
Mike Frysinger91a33902006-07-24 07:35:52 +000026 help
27 dumpleases displays the leases written out by the udhcpd server.
28 Lease times are stored in the file by time remaining in lease, or
29 by the absolute time that it expires in seconds from epoch.
30
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000031config FEATURE_UDHCPD_WRITE_LEASES_EARLY
32 bool "Rewrite the lease file at every new acknowledge"
33 default n
Denys Vlasenko4662de02009-12-11 02:21:10 +010034 depends on UDHCPD
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000035 help
36 If selected, udhcpd will write a new file with leases every
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000037 time a new lease has been accepted, thus eliminating the need
38 to send SIGUSR1 for the initial writing or updating. Any timed
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000039 rewriting remains undisturbed
40
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000041config DHCPD_LEASES_FILE
42 string "Absolute path to lease file"
43 default "/var/lib/misc/udhcpd.leases"
Denys Vlasenko4662de02009-12-11 02:21:10 +010044 depends on UDHCPD
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000045 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000046 udhcpd stores addresses in a lease file. This is the absolute path
47 of the file. Normally it is safe to leave it untouched.
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000048
Denys Vlasenko4662de02009-12-11 02:21:10 +010049config UDHCPC
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000050 bool "udhcp client (udhcpc)"
Mike Frysinger7031f622006-05-08 03:20:50 +000051 default n
52 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000053 udhcpc is a DHCP client geared primarily toward embedded systems,
Mike Frysinger7031f622006-05-08 03:20:50 +000054 while striving to be fully functional and RFC compliant.
55
56 The udhcp client negotiates a lease with the DHCP server and
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000057 runs a script when a lease is obtained or lost.
Mike Frysinger7031f622006-05-08 03:20:50 +000058
Denis Vlasenko223bc972007-11-22 00:58:49 +000059config FEATURE_UDHCPC_ARPING
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000060 bool "Verify that the offered address is free, using ARP ping"
Denis Vlasenko223bc972007-11-22 00:58:49 +000061 default y
Denys Vlasenko4662de02009-12-11 02:21:10 +010062 depends on UDHCPC
Denis Vlasenko223bc972007-11-22 00:58:49 +000063 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +000064 If selected, udhcpc will send ARP probes and make sure
65 the offered address is really not in use by anyone. The client
66 will DHCPDECLINE the offer if the address is in use,
67 and restart the discover process.
Denis Vlasenko223bc972007-11-22 00:58:49 +000068
Denis Vlasenkod55fe3e2008-02-04 13:12:16 +000069config FEATURE_UDHCP_PORT
70 bool "Enable '-P port' option for udhcpd and udhcpc"
71 default n
Denys Vlasenko4662de02009-12-11 02:21:10 +010072 depends on UDHCPD || UDHCPC
Denis Vlasenkod55fe3e2008-02-04 13:12:16 +000073 help
74 At the cost of ~300 bytes, enables -P port option.
75 This feature is typically not needed.
Denis Vlasenko223bc972007-11-22 00:58:49 +000076
Denis Vlasenko35a064b2008-11-06 00:49:59 +000077config UDHCP_DEBUG
Denys Vlasenko7a76eba2009-06-19 13:51:29 +020078 int "Maximum verbosity level for udhcp applets (0..9)"
Denys Vlasenkoac906fa2009-06-17 11:54:52 +020079 default 0
Denys Vlasenko7a76eba2009-06-19 13:51:29 +020080 range 0 9
Denys Vlasenko4662de02009-12-11 02:21:10 +010081 depends on UDHCPD || UDHCPC || DHCPRELAY
Mike Frysinger7031f622006-05-08 03:20:50 +000082 help
Denys Vlasenkoac906fa2009-06-17 11:54:52 +020083 Verbosity can be increased with multiple -v options.
84 This options controls how high it can be cranked up.
85
86 Bigger values result in bigger code. Levels above 1
87 are very verbose and useful for debugging only.
Denis Vlasenko50664732007-02-27 21:15:08 +000088
Denis Vlasenko35a064b2008-11-06 00:49:59 +000089config FEATURE_UDHCP_RFC3397
Denis Vlasenko50664732007-02-27 21:15:08 +000090 bool "Support for RFC3397 domain search (experimental)"
91 default n
Denys Vlasenko4662de02009-12-11 02:21:10 +010092 depends on UDHCPD || UDHCPC
Denis Vlasenko50664732007-02-27 21:15:08 +000093 help
94 If selected, both client and server will support passing of domain
Denys Vlasenko243ddcb2010-04-03 17:34:52 +020095 search lists via option 119, specified in RFC 3397,
96 and SIP servers option 120, specified in RFC 3361.
Denis Vlasenko72e76042007-11-25 03:15:24 +000097
Denis Vlasenko35a064b2008-11-06 00:49:59 +000098config UDHCPC_DEFAULT_SCRIPT
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000099 string "Absolute path to config script"
100 default "/usr/share/udhcpc/default.script"
Denys Vlasenko4662de02009-12-11 02:21:10 +0100101 depends on UDHCPC
Denis Vlasenko84da0bf2008-02-20 22:29:52 +0000102 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000103 This script is called after udhcpc receives an answer. See
104 examples/udhcp for a working example. Normally it is safe
Denis Vlasenko84da0bf2008-02-20 22:29:52 +0000105 to leave this untouched.
106
Denis Vlasenko72e76042007-11-25 03:15:24 +0000107config UDHCPC_SLACK_FOR_BUGGY_SERVERS
108 int "DHCP options slack buffer size"
109 default 80
110 range 0 924
Denys Vlasenko4662de02009-12-11 02:21:10 +0100111 depends on UDHCPD || UDHCPC
Denis Vlasenko72e76042007-11-25 03:15:24 +0000112 help
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000113 Some buggy DHCP servers send DHCP offer packets with option
Denis Vlasenko72e76042007-11-25 03:15:24 +0000114 field larger than we expect (which might also be considered a
115 buffer overflow attempt). These packets are normally discarded.
116 If circumstances beyond your control force you to support such
117 servers, this may help. The upper limit (924) makes dhcpc accept
118 even 1500 byte packets (maximum-sized ethernet packets).
119
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000120 This option does not make dhcp[cd] emit non-standard
Denis Vlasenko72e76042007-11-25 03:15:24 +0000121 sized packets.
122
123 Known buggy DHCP servers:
124 3Com OfficeConnect Remote 812 ADSL Router:
125 seems to confuse maximum allowed UDP packet size with
126 maximum size of entire IP packet, and sends packets which are
127 28 bytes too large.
Denis Vlasenkoa4a93fd2008-04-21 20:27:29 +0000128 Seednet (ISP) VDSL: sends packets 2 bytes too large.