Config.src 4.8 KB

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