blob: bbc1220a569712936fda6dbc999b6947ba3dcc0c [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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00006config APP_UDHCPD
Mike Frysinger7031f622006-05-08 03:20:50 +00007 bool "udhcp Server (udhcpd)"
8 default n
9 help
10 uDHCPd is a DHCP server geared primarily toward embedded systems,
11 while striving to be fully functional and RFC compliant.
12
13 See http://udhcp.busybox.net for further details.
14
Denis Vlasenko736230e2006-11-20 19:40:36 +000015config APP_DHCPRELAY
16 bool "dhcprelay"
17 default n
18 depends on APP_UDHCPD
19 help
20 dhcprelay listens for dhcp requests on one or more interfaces
21 and forwards these requests to a different interface or dhcp
22 server.
23
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000024config APP_DUMPLEASES
Mike Frysinger91a33902006-07-24 07:35:52 +000025 bool "Lease display utility (dumpleases)"
26 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000027 depends on APP_UDHCPD
Mike Frysinger91a33902006-07-24 07:35:52 +000028 help
29 dumpleases displays the leases written out by the udhcpd server.
30 Lease times are stored in the file by time remaining in lease, or
31 by the absolute time that it expires in seconds from epoch.
32
33 See http://udhcp.busybox.net for further details.
34
Denis Vlasenkoc82b5102007-07-01 17:05:57 +000035config FEATURE_UDHCPD_WRITE_LEASES_EARLY
36 bool "Rewrite the lease file at every new acknowledge"
37 default n
38 depends on APP_UDHCPD
39 help
40 If selected, udhcpd will write a new file with leases every
41 time a new lease has been accepted, thus eleminating the need
42 to send SIGUSR1 for the initial writing, or updating. Any timed
43 rewriting remains undisturbed
44
Denis Vlasenko84da0bf2008-02-20 22:29:52 +000045config DHCPD_LEASES_FILE
46 string "Absolute path to lease file"
47 default "/var/lib/misc/udhcpd.leases"
48 depends on APP_UDHCPD
49 help
50 The udhcpd stores address in lease files. Normaly it is save
51 to leave it untouched.
52
53
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000054config APP_UDHCPC
Mike Frysinger7031f622006-05-08 03:20:50 +000055 bool "udhcp Client (udhcpc)"
56 default n
57 help
58 uDHCPc is a DHCP client geared primarily toward embedded systems,
59 while striving to be fully functional and RFC compliant.
60
61 The udhcp client negotiates a lease with the DHCP server and
62 notifies a set of scripts when a lease is obtained or lost.
63
64 See http://udhcp.busybox.net for further details.
65
Denis Vlasenko223bc972007-11-22 00:58:49 +000066config FEATURE_UDHCPC_ARPING
67 bool "Ask udhcpc to verify that the offered address is free, using arpping"
68 default y
69 depends on APP_UDHCPC
70 help
71 If selected, udhcpc will use arpping to make sure the offered address
72 is really available. The client will DHCPDECLINE the offer if the
73 address is in use, and restart the discover process.
74
Denis Vlasenkod55fe3e2008-02-04 13:12:16 +000075config FEATURE_UDHCP_PORT
76 bool "Enable '-P port' option for udhcpd and udhcpc"
77 default n
78 depends on APP_UDHCPD || APP_UDHCPC
79 help
80 At the cost of ~300 bytes, enables -P port option.
81 This feature is typically not needed.
Denis Vlasenko223bc972007-11-22 00:58:49 +000082
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000083config FEATURE_UDHCP_DEBUG
Mike Frysinger91a33902006-07-24 07:35:52 +000084 bool "Compile udhcp with noisy debugging messages"
Mike Frysinger7031f622006-05-08 03:20:50 +000085 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000086 depends on APP_UDHCPD || APP_UDHCPC
Mike Frysinger7031f622006-05-08 03:20:50 +000087 help
88 If selected, udhcpd will output extra debugging output. If using
89 this option, compile uDHCP with "-g", and do not fork the daemon to
90 the background.
91
92 See http://udhcp.busybox.net for further details.
Denis Vlasenko50664732007-02-27 21:15:08 +000093
94config FEATURE_RFC3397
95 bool "Support for RFC3397 domain search (experimental)"
96 default n
97 depends on APP_UDHCPD || APP_UDHCPC
98 help
99 If selected, both client and server will support passing of domain
100 search lists via option 119, specified in RFC3397.
Denis Vlasenko72e76042007-11-25 03:15:24 +0000101
Denis Vlasenko84da0bf2008-02-20 22:29:52 +0000102config DHCPC_DEFAULT_SCRIPT
103 string "Absolute path to config script"
104 default "/usr/share/udhcpc/default.script"
105 depends on APP_UDHCPC
106 help
107 This script is called after udhcpc receives and answer. See
108 examples/udhcp for a working example. Normaly it is save
109 to leave this untouched.
110
111
Denis Vlasenko72e76042007-11-25 03:15:24 +0000112config UDHCPC_SLACK_FOR_BUGGY_SERVERS
113 int "DHCP options slack buffer size"
114 default 80
115 range 0 924
116 depends on APP_UDHCPD || APP_UDHCPC
117 help
118 Some buggy DHCP servers will send DHCP offer packets with option
119 field larger than we expect (which might also be considered a
120 buffer overflow attempt). These packets are normally discarded.
121 If circumstances beyond your control force you to support such
122 servers, this may help. The upper limit (924) makes dhcpc accept
123 even 1500 byte packets (maximum-sized ethernet packets).
124
125 This options does not make dhcp[cd] emit non-standard
126 sized packets.
127
128 Known buggy DHCP servers:
129 3Com OfficeConnect Remote 812 ADSL Router:
130 seems to confuse maximum allowed UDP packet size with
131 maximum size of entire IP packet, and sends packets which are
132 28 bytes too large.
Denis Vlasenko2bec5132007-12-02 08:56:53 +0000133 Seednet (ISP) VDSL: sends packets 2 bytes too big.