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 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 6 | config APP_UDHCPD |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 7 | bool "udhcp server (udhcpd)" |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 8 | default n |
| 9 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 10 | udhcpd is a DHCP server geared primarily toward embedded systems, |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 11 | while striving to be fully functional and RFC compliant. |
| 12 | |
Denis Vlasenko | 736230e | 2006-11-20 19:40:36 +0000 | [diff] [blame] | 13 | config APP_DHCPRELAY |
| 14 | bool "dhcprelay" |
| 15 | default n |
| 16 | depends on APP_UDHCPD |
| 17 | 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 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 22 | config APP_DUMPLEASES |
Mike Frysinger | 91a3390 | 2006-07-24 07:35:52 +0000 | [diff] [blame] | 23 | bool "Lease display utility (dumpleases)" |
| 24 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 25 | depends on APP_UDHCPD |
Mike Frysinger | 91a3390 | 2006-07-24 07:35:52 +0000 | [diff] [blame] | 26 | 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 Vlasenko | c82b510 | 2007-07-01 17:05:57 +0000 | [diff] [blame] | 31 | config FEATURE_UDHCPD_WRITE_LEASES_EARLY |
| 32 | bool "Rewrite the lease file at every new acknowledge" |
| 33 | default n |
| 34 | depends on APP_UDHCPD |
| 35 | help |
| 36 | If selected, udhcpd will write a new file with leases every |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 37 | time a new lease has been accepted, thus eliminating the need |
| 38 | to send SIGUSR1 for the initial writing or updating. Any timed |
Denis Vlasenko | c82b510 | 2007-07-01 17:05:57 +0000 | [diff] [blame] | 39 | rewriting remains undisturbed |
| 40 | |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 41 | config DHCPD_LEASES_FILE |
| 42 | string "Absolute path to lease file" |
| 43 | default "/var/lib/misc/udhcpd.leases" |
| 44 | depends on APP_UDHCPD |
| 45 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 46 | 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 Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 48 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 49 | config APP_UDHCPC |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 50 | bool "udhcp client (udhcpc)" |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 51 | default n |
| 52 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 53 | udhcpc is a DHCP client geared primarily toward embedded systems, |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 54 | while striving to be fully functional and RFC compliant. |
| 55 | |
| 56 | The udhcp client negotiates a lease with the DHCP server and |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 57 | runs a script when a lease is obtained or lost. |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 58 | |
Denis Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 59 | config FEATURE_UDHCPC_ARPING |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 60 | bool "Verify that the offered address is free, using ARP ping" |
Denis Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 61 | default y |
| 62 | depends on APP_UDHCPC |
| 63 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 64 | 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 Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 68 | |
Denis Vlasenko | d55fe3e | 2008-02-04 13:12:16 +0000 | [diff] [blame] | 69 | config FEATURE_UDHCP_PORT |
| 70 | bool "Enable '-P port' option for udhcpd and udhcpc" |
| 71 | default n |
| 72 | depends on APP_UDHCPD || APP_UDHCPC |
| 73 | help |
| 74 | At the cost of ~300 bytes, enables -P port option. |
| 75 | This feature is typically not needed. |
Denis Vlasenko | 223bc97 | 2007-11-22 00:58:49 +0000 | [diff] [blame] | 76 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 77 | config FEATURE_UDHCP_DEBUG |
Mike Frysinger | 91a3390 | 2006-07-24 07:35:52 +0000 | [diff] [blame] | 78 | bool "Compile udhcp with noisy debugging messages" |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 79 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 80 | depends on APP_UDHCPD || APP_UDHCPC |
Mike Frysinger | 7031f62 | 2006-05-08 03:20:50 +0000 | [diff] [blame] | 81 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 82 | If selected, udhcpd will output extra debugging output. |
Denis Vlasenko | 5066473 | 2007-02-27 21:15:08 +0000 | [diff] [blame] | 83 | |
| 84 | config FEATURE_RFC3397 |
| 85 | bool "Support for RFC3397 domain search (experimental)" |
| 86 | default n |
| 87 | depends on APP_UDHCPD || APP_UDHCPC |
| 88 | help |
| 89 | If selected, both client and server will support passing of domain |
| 90 | search lists via option 119, specified in RFC3397. |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 91 | |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 92 | config DHCPC_DEFAULT_SCRIPT |
| 93 | string "Absolute path to config script" |
| 94 | default "/usr/share/udhcpc/default.script" |
| 95 | depends on APP_UDHCPC |
| 96 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 97 | This script is called after udhcpc receives an answer. See |
| 98 | examples/udhcp for a working example. Normally it is safe |
Denis Vlasenko | 84da0bf | 2008-02-20 22:29:52 +0000 | [diff] [blame] | 99 | to leave this untouched. |
| 100 | |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 101 | config UDHCPC_SLACK_FOR_BUGGY_SERVERS |
| 102 | int "DHCP options slack buffer size" |
| 103 | default 80 |
| 104 | range 0 924 |
| 105 | depends on APP_UDHCPD || APP_UDHCPC |
| 106 | help |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 107 | Some buggy DHCP servers send DHCP offer packets with option |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 108 | field larger than we expect (which might also be considered a |
| 109 | buffer overflow attempt). These packets are normally discarded. |
| 110 | If circumstances beyond your control force you to support such |
| 111 | servers, this may help. The upper limit (924) makes dhcpc accept |
| 112 | even 1500 byte packets (maximum-sized ethernet packets). |
| 113 | |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 114 | This option does not make dhcp[cd] emit non-standard |
Denis Vlasenko | 72e7604 | 2007-11-25 03:15:24 +0000 | [diff] [blame] | 115 | sized packets. |
| 116 | |
| 117 | Known buggy DHCP servers: |
| 118 | 3Com OfficeConnect Remote 812 ADSL Router: |
| 119 | seems to confuse maximum allowed UDP packet size with |
| 120 | maximum size of entire IP packet, and sends packets which are |
| 121 | 28 bytes too large. |
Denis Vlasenko | a4a93fd | 2008-04-21 20:27:29 +0000 | [diff] [blame^] | 122 | Seednet (ISP) VDSL: sends packets 2 bytes too large. |