Config.src 5.6 KB

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