Config.src 5.1 KB

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