Config.src 5.1 KB

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