Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
| 3 | # see scripts/kbuild/config-language.txt. |
| 4 | # |
| 5 | |
Denys Vlasenko | d70e0e9 | 2010-06-08 12:15:11 +0200 | [diff] [blame] | 6 | INSERT |
| 7 | |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 8 | config UDHCPD |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 9 | bool "udhcp server (udhcpd)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 10 | default y |
Jeremie Koenig | 1d7266d | 2010-07-19 00:44:56 +0200 | [diff] [blame] | 11 | depends on PLATFORM_LINUX |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 12 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 13 | udhcpd is a DHCP server geared primarily toward embedded systems, |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 14 | while striving to be fully functional and RFC compliant. |
| 15 | |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 16 | config DHCPRELAY |
Denis Vlasenko | 736230e | 2006-11-20 19:40:36 +0000 | [diff] [blame] | 17 | bool "dhcprelay" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 18 | default y |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 19 | depends on UDHCPD |
Denis Vlasenko | 736230e | 2006-11-20 19:40:36 +0000 | [diff] [blame] | 20 | 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 Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 25 | config DUMPLEASES |
Mike Frysinger | 91a3390 | 2006-07-24 07:35:52 +0000 | [diff] [blame] | 26 | bool "Lease display utility (dumpleases)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 27 | default y |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 28 | depends on UDHCPD |
Mike Frysinger | 91a3390 | 2006-07-24 07:35:52 +0000 | [diff] [blame] | 29 | 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 Vlasenko | c82b510 | 2007-07-01 17:05:57 +0000 | [diff] [blame] | 34 | config FEATURE_UDHCPD_WRITE_LEASES_EARLY |
| 35 | bool "Rewrite the lease file at every new acknowledge" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 36 | default y |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 37 | depends on UDHCPD |
Denis Vlasenko | c82b510 | 2007-07-01 17:05:57 +0000 | [diff] [blame] | 38 | help |
| 39 | If selected, udhcpd will write a new file with leases every |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 40 | time a new lease has been accepted, thus eliminating the need |
| 41 | to send SIGUSR1 for the initial writing or updating. Any timed |
Denis Vlasenko | c82b510 | 2007-07-01 17:05:57 +0000 | [diff] [blame] | 42 | rewriting remains undisturbed |
| 43 | |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 44 | config DHCPD_LEASES_FILE |
| 45 | string "Absolute path to lease file" |
| 46 | default "/var/lib/misc/udhcpd.leases" |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 47 | depends on UDHCPD |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 48 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 49 | 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 Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 51 | |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 52 | config UDHCPC |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 53 | bool "udhcp client (udhcpc)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 54 | default y |
Jeremie Koenig | 1d7266d | 2010-07-19 00:44:56 +0200 | [diff] [blame] | 55 | depends on PLATFORM_LINUX |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 56 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 57 | udhcpc is a DHCP client geared primarily toward embedded systems, |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 58 | while striving to be fully functional and RFC compliant. |
| 59 | |
| 60 | The udhcp client negotiates a lease with the DHCP server and |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 61 | runs a script when a lease is obtained or lost. |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 62 | |
Denis Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 63 | config FEATURE_UDHCPC_ARPING |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 64 | bool "Verify that the offered address is free, using ARP ping" |
Denis Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 65 | default y |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 66 | depends on UDHCPC |
Denis Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 67 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 68 | 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 Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 72 | |
Denis Vlasenko | d55fe3e | 2008-02-04 13:12:16 +0000 | [diff] [blame] | 73 | config FEATURE_UDHCP_PORT |
| 74 | bool "Enable '-P port' option for udhcpd and udhcpc" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 75 | default y |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 76 | depends on UDHCPD || UDHCPC |
Denis Vlasenko | d55fe3e | 2008-02-04 13:12:16 +0000 | [diff] [blame] | 77 | help |
| 78 | At the cost of ~300 bytes, enables -P port option. |
| 79 | This feature is typically not needed. |
Denis Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 80 | |
Denis Vlasenko | 35a064b | 2008-11-06 00:49:59 +0000 | [diff] [blame] | 81 | config UDHCP_DEBUG |
Denys Vlasenko | 7a76eba | 2009-06-19 13:51:29 +0200 | [diff] [blame] | 82 | int "Maximum verbosity level for udhcp applets (0..9)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 83 | default 9 |
Denys Vlasenko | 7a76eba | 2009-06-19 13:51:29 +0200 | [diff] [blame] | 84 | range 0 9 |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 85 | depends on UDHCPD || UDHCPC || DHCPRELAY |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 86 | help |
Denys Vlasenko | ac906fa | 2009-06-17 11:54:52 +0200 | [diff] [blame] | 87 | Verbosity can be increased with multiple -v options. |
Denys Vlasenko | 58a15cd | 2010-08-07 14:02:26 +0200 | [diff] [blame^] | 88 | This option controls how high it can be cranked up. |
Denys Vlasenko | ac906fa | 2009-06-17 11:54:52 +0200 | [diff] [blame] | 89 | |
| 90 | Bigger values result in bigger code. Levels above 1 |
| 91 | are very verbose and useful for debugging only. |
Denis Vlasenko | 5066473 | 2007-02-27 21:15:08 +0000 | [diff] [blame] | 92 | |
Denis Vlasenko | 35a064b | 2008-11-06 00:49:59 +0000 | [diff] [blame] | 93 | config FEATURE_UDHCP_RFC3397 |
Denis Vlasenko | 5066473 | 2007-02-27 21:15:08 +0000 | [diff] [blame] | 94 | bool "Support for RFC3397 domain search (experimental)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 95 | default y |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 96 | depends on UDHCPD || UDHCPC |
Denis Vlasenko | 5066473 | 2007-02-27 21:15:08 +0000 | [diff] [blame] | 97 | help |
| 98 | If selected, both client and server will support passing of domain |
Denys Vlasenko | 243ddcb | 2010-04-03 17:34:52 +0200 | [diff] [blame] | 99 | search lists via option 119, specified in RFC 3397, |
| 100 | and SIP servers option 120, specified in RFC 3361. |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 101 | |
Denis Vlasenko | 35a064b | 2008-11-06 00:49:59 +0000 | [diff] [blame] | 102 | config UDHCPC_DEFAULT_SCRIPT |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 103 | string "Absolute path to config script" |
| 104 | default "/usr/share/udhcpc/default.script" |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 105 | depends on UDHCPC |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 106 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 107 | This script is called after udhcpc receives an answer. See |
| 108 | examples/udhcp for a working example. Normally it is safe |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 109 | to leave this untouched. |
| 110 | |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 111 | config UDHCPC_SLACK_FOR_BUGGY_SERVERS |
| 112 | int "DHCP options slack buffer size" |
| 113 | default 80 |
| 114 | range 0 924 |
Denys Vlasenko | 4662de0 | 2009-12-11 02:21:10 +0100 | [diff] [blame] | 115 | depends on UDHCPD || UDHCPC |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 116 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 117 | Some buggy DHCP servers send DHCP offer packets with option |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 118 | 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 Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 124 | This option does not make dhcp[cd] emit non-standard |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 125 | 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 Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame] | 132 | Seednet (ISP) VDSL: sends packets 2 bytes too large. |