3
0

Config.src 5.1 KB

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