Config.src 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. INSERT
  6. config UDHCPD
  7. bool "udhcp server (udhcpd)"
  8. default y
  9. select PLATFORM_LINUX
  10. help
  11. udhcpd is a DHCP server geared primarily toward embedded systems,
  12. while striving to be fully functional and RFC compliant.
  13. config DHCPRELAY
  14. bool "dhcprelay"
  15. default y
  16. depends on 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. config DUMPLEASES
  22. bool "Lease display utility (dumpleases)"
  23. default y
  24. depends on UDHCPD
  25. help
  26. dumpleases displays the leases written out by the udhcpd server.
  27. Lease times are stored in the file by time remaining in lease, or
  28. by the absolute time that it expires in seconds from epoch.
  29. config FEATURE_UDHCPD_WRITE_LEASES_EARLY
  30. bool "Rewrite the lease file at every new acknowledge"
  31. default y
  32. depends on UDHCPD
  33. help
  34. If selected, udhcpd will write a new file with leases every
  35. time a new lease has been accepted, thus eliminating the need
  36. to send SIGUSR1 for the initial writing or updating. Any timed
  37. rewriting remains undisturbed.
  38. config FEATURE_UDHCPD_BASE_IP_ON_MAC
  39. bool "Select IP address based on client MAC"
  40. default n
  41. depends on UDHCPD
  42. help
  43. If selected, udhcpd will base its selection of IP address to offer
  44. on the client's hardware address. Otherwise udhcpd uses the next
  45. consecutive free address.
  46. This reduces the frequency of IP address changes for clients
  47. which let their lease expire, and makes consecutive DHCPOFFERS
  48. for the same client to (almost always) contain the same
  49. IP address.
  50. config DHCPD_LEASES_FILE
  51. string "Absolute path to lease file"
  52. default "/var/lib/misc/udhcpd.leases"
  53. depends on UDHCPD
  54. help
  55. udhcpd stores addresses in a lease file. This is the absolute path
  56. of the file. Normally it is safe to leave it untouched.
  57. config UDHCPC
  58. bool "udhcp client (udhcpc)"
  59. default y
  60. select PLATFORM_LINUX
  61. help
  62. udhcpc is a DHCP client geared primarily toward embedded systems,
  63. while striving to be fully functional and RFC compliant.
  64. The udhcp client negotiates a lease with the DHCP server and
  65. runs a script when a lease is obtained or lost.
  66. config FEATURE_UDHCPC_ARPING
  67. bool "Verify that the offered address is free, using ARP ping"
  68. default y
  69. depends on UDHCPC
  70. help
  71. If selected, udhcpc will send ARP probes and make sure
  72. the offered address is really not in use by anyone. The client
  73. will DHCPDECLINE the offer if the address is in use,
  74. and restart the discover process.
  75. config FEATURE_UDHCPC_SANITIZEOPT
  76. bool "Do not pass malformed host and domain names"
  77. default y
  78. depends on UDHCPC
  79. help
  80. If selected, udhcpc will check some options (such as option 12 -
  81. hostname) and if they don't look like valid hostnames
  82. (for example, if they start with dash or contain spaces),
  83. they will be replaced with string "bad" when exporting
  84. to the environment.
  85. config FEATURE_UDHCP_PORT
  86. bool "Enable '-P port' option for udhcpd and udhcpc"
  87. default n
  88. depends on UDHCPD || UDHCPC
  89. help
  90. At the cost of ~300 bytes, enables -P port option.
  91. This feature is typically not needed.
  92. config UDHCP_DEBUG
  93. int "Maximum verbosity level for udhcp applets (0..9)"
  94. default 9
  95. range 0 9
  96. depends on UDHCPD || UDHCPC || DHCPRELAY
  97. help
  98. Verbosity can be increased with multiple -v options.
  99. This option controls how high it can be cranked up.
  100. Bigger values result in bigger code. Levels above 1
  101. are very verbose and useful for debugging only.
  102. config FEATURE_UDHCP_RFC3397
  103. bool "Support for RFC3397 domain search (experimental)"
  104. default y
  105. depends on UDHCPD || UDHCPC
  106. help
  107. If selected, both client and server will support passing of domain
  108. search lists via option 119, specified in RFC 3397,
  109. and SIP servers option 120, specified in RFC 3361.
  110. config FEATURE_UDHCP_8021Q
  111. bool "Support for 802.1Q VLAN parameters"
  112. default y
  113. depends on UDHCPD || UDHCPC
  114. help
  115. If selected, both client and server will support passing of VLAN
  116. ID and priority via options 132 and 133 as per 802.1Q.
  117. config UDHCPC_DEFAULT_SCRIPT
  118. string "Absolute path to config script"
  119. default "/usr/share/udhcpc/default.script"
  120. depends on UDHCPC
  121. help
  122. This script is called after udhcpc receives an answer. See
  123. examples/udhcp for a working example. Normally it is safe
  124. to leave this untouched.
  125. config UDHCPC_SLACK_FOR_BUGGY_SERVERS
  126. int "DHCP options slack buffer size"
  127. default 80
  128. range 0 924
  129. depends on UDHCPD || UDHCPC
  130. help
  131. Some buggy DHCP servers send DHCP offer packets with option
  132. field larger than we expect (which might also be considered a
  133. buffer overflow attempt). These packets are normally discarded.
  134. If circumstances beyond your control force you to support such
  135. servers, this may help. The upper limit (924) makes dhcpc accept
  136. even 1500 byte packets (maximum-sized ethernet packets).
  137. This option does not make dhcp[cd] emit non-standard
  138. sized packets.
  139. Known buggy DHCP servers:
  140. 3Com OfficeConnect Remote 812 ADSL Router:
  141. seems to confuse maximum allowed UDP packet size with
  142. maximum size of entire IP packet, and sends packets which are
  143. 28 bytes too large.
  144. Seednet (ISP) VDSL: sends packets 2 bytes too large.