3
0

Config.src 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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 || UDHCPC6
  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. # udhcpc6 config is inserted here:
  89. INSERT
  90. comment "Common options for DHCP applets"
  91. depends on UDHCPD || UDHCPC || UDHCPC6 || DHCPRELAY
  92. config UDHCPC_DEFAULT_INTERFACE
  93. string "Default interface name"
  94. default "eth0"
  95. depends on UDHCPC || UDHCPC6
  96. help
  97. The interface that will be used if no other interface is
  98. specified on the commandline.
  99. config FEATURE_UDHCP_PORT
  100. bool "Enable '-P port' option for udhcpd and udhcpc"
  101. default n
  102. depends on UDHCPD || UDHCPC || UDHCPC6
  103. help
  104. At the cost of ~300 bytes, enables -P port option.
  105. This feature is typically not needed.
  106. config UDHCP_DEBUG
  107. int "Maximum verbosity level (0..9)"
  108. default 2
  109. range 0 9
  110. depends on UDHCPD || UDHCPC || UDHCPC6 || DHCPRELAY
  111. help
  112. Verbosity can be increased with multiple -v options.
  113. This option controls how high it can be cranked up.
  114. Bigger values result in bigger code. Levels above 1
  115. are very verbose and useful for debugging only.
  116. config UDHCPC_SLACK_FOR_BUGGY_SERVERS
  117. int "DHCP options slack buffer size"
  118. default 80
  119. range 0 924
  120. depends on UDHCPD || UDHCPC
  121. help
  122. Some buggy DHCP servers send DHCP offer packets with option
  123. field larger than we expect (which might also be considered a
  124. buffer overflow attempt). These packets are normally discarded.
  125. If circumstances beyond your control force you to support such
  126. servers, this may help. The upper limit (924) makes udhcpc accept
  127. even 1500 byte packets (maximum-sized ethernet packets).
  128. This option does not make udhcp[cd] emit non-standard
  129. sized packets.
  130. Known buggy DHCP servers:
  131. 3Com OfficeConnect Remote 812 ADSL Router:
  132. seems to confuse maximum allowed UDP packet size with
  133. maximum size of entire IP packet, and sends packets
  134. which are 28 bytes too large.
  135. Seednet (ISP) VDSL: sends packets 2 bytes too large.
  136. config FEATURE_UDHCP_RFC3397
  137. bool "Support RFC 3397 domain search options"
  138. default y
  139. depends on UDHCPD || UDHCPC
  140. help
  141. If selected, both client and server will support passing of domain
  142. search lists via option 119, specified in RFC 3397,
  143. and SIP servers option 120, specified in RFC 3361.
  144. config FEATURE_UDHCP_8021Q
  145. bool "Support 802.1Q VLAN parameters options"
  146. default y
  147. depends on UDHCPD || UDHCPC
  148. help
  149. If selected, both client and server will support passing of VLAN
  150. ID and priority via options 132 and 133 as per 802.1Q.