Config.src 5.4 KB

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