Kconfig 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289
  1. menu "LWIP"
  2. config LWIP_ENABLE
  3. bool "Enable LwIP stack"
  4. default y if !IDF_TARGET_LINUX
  5. default n if IDF_TARGET_LINUX
  6. help
  7. Builds normally if selected. Excludes LwIP from build if unselected, even if it is a
  8. dependency of a component or application.
  9. Some applications can switch their IP stacks, e.g., when switching between chip
  10. and Linux targets (LwIP stack vs. Linux IP stack). Since the LwIP dependency cannot
  11. easily be excluded based on a Kconfig option, it has to be a dependency in all cases.
  12. This switch allows the LwIP stack to be built selectively, even if it is a dependency.
  13. config LWIP_LOCAL_HOSTNAME
  14. string "Local netif hostname"
  15. default 'espressif'
  16. help
  17. The default name this device will report to other devices on the network.
  18. Could be updated at runtime with esp_netif_set_hostname()
  19. config LWIP_NETIF_API
  20. bool "Enable usage of standard POSIX APIs in LWIP"
  21. default n
  22. help
  23. If this feature is enabled, standard POSIX APIs: if_indextoname(), if_nametoindex()
  24. could be used to convert network interface index to name
  25. instead of IDF specific esp-netif APIs (such as esp_netif_get_netif_impl_name())
  26. config LWIP_TCPIP_TASK_PRIO
  27. int "LWIP TCP/IP Task Priority"
  28. default 18
  29. range 1 24
  30. help
  31. LWIP tcpip task priority. In case of high throughput, this parameter
  32. could be changed up to (configMAX_PRIORITIES-1).
  33. config LWIP_TCPIP_CORE_LOCKING
  34. bool "Enable tcpip core locking"
  35. default n
  36. help
  37. If Enable tcpip core locking,Creates a global mutex that is held
  38. during TCPIP thread operations.Can be locked by client code to perform
  39. lwIP operations without changing into TCPIP thread using callbacks.
  40. See LOCK_TCPIP_CORE() and UNLOCK_TCPIP_CORE().
  41. If disable tcpip core locking,TCP IP will perform tasks through context switching
  42. config LWIP_TCPIP_CORE_LOCKING_INPUT
  43. bool "Enable tcpip core locking input"
  44. depends on LWIP_TCPIP_CORE_LOCKING
  45. default n
  46. help
  47. when LWIP_TCPIP_CORE_LOCKING is enabled, this lets tcpip_input() grab the
  48. mutex for input packets as well, instead of allocating a message and passing
  49. it to tcpip_thread.
  50. config LWIP_CHECK_THREAD_SAFETY
  51. bool "Checks that lwip API runs in expected context"
  52. default n
  53. help
  54. Enable to check that the project does not violate lwip thread safety.
  55. If enabled, all lwip functions that require thread awareness run an assertion
  56. to verify that the TCP/IP core functionality is either locked or accessed
  57. from the correct thread.
  58. config LWIP_DNS_SUPPORT_MDNS_QUERIES
  59. bool "Enable mDNS queries in resolving host name"
  60. default y
  61. help
  62. If this feature is enabled, standard API such as gethostbyname
  63. support .local addresses by sending one shot multicast mDNS
  64. query
  65. config LWIP_L2_TO_L3_COPY
  66. bool "Enable copy between Layer2 and Layer3 packets"
  67. default n
  68. help
  69. If this feature is enabled, all traffic from layer2(WIFI Driver) will be
  70. copied to a new buffer before sending it to layer3(LWIP stack), freeing
  71. the layer2 buffer.
  72. Please be notified that the total layer2 receiving buffer is fixed and
  73. ESP32 currently supports 25 layer2 receiving buffer, when layer2 buffer
  74. runs out of memory, then the incoming packets will be dropped in hardware.
  75. The layer3 buffer is allocated from the heap, so the total layer3 receiving
  76. buffer depends on the available heap size, when heap runs out of memory,
  77. no copy will be sent to layer3 and packet will be dropped in layer2.
  78. Please make sure you fully understand the impact of this feature before
  79. enabling it.
  80. config LWIP_IRAM_OPTIMIZATION
  81. bool "Enable LWIP IRAM optimization"
  82. default n
  83. help
  84. If this feature is enabled, some functions relating to RX/TX in LWIP will be
  85. put into IRAM, it can improve UDP/TCP throughput by >10% for single core mode,
  86. it doesn't help too much for dual core mode. On the other hand, it needs about
  87. 10KB IRAM for these optimizations.
  88. If this feature is disabled, all lwip functions will be put into FLASH.
  89. config LWIP_EXTRA_IRAM_OPTIMIZATION
  90. bool "Enable LWIP IRAM optimization for TCP part"
  91. default n
  92. help
  93. If this feature is enabled, some tcp part functions relating to RX/TX in LWIP will be
  94. put into IRAM, it can improve TCP throughput. On the other hand, it needs about 17KB
  95. IRAM for these optimizations.
  96. config LWIP_TIMERS_ONDEMAND
  97. bool "Enable LWIP Timers on demand"
  98. default y
  99. help
  100. If this feature is enabled, IGMP and MLD6 timers will be activated only
  101. when joining groups or receiving QUERY packets.
  102. This feature will reduce the power consumption for applications which do not
  103. use IGMP and MLD6.
  104. config LWIP_ND6
  105. bool "LWIP NDP6 Enable/Disable"
  106. default y
  107. depends on LWIP_IPV6
  108. help
  109. This option is used to disable the Network Discovery Protocol (NDP) if it is not required.
  110. Please use this option with caution, as the NDP is essential for IPv6 functionality within a local network.
  111. config LWIP_MAX_SOCKETS
  112. int "Max number of open sockets"
  113. range 1 16
  114. default 10
  115. help
  116. Sockets take up a certain amount of memory, and allowing fewer
  117. sockets to be open at the same time conserves memory. Specify
  118. the maximum amount of sockets here. The valid value is from 1
  119. to 16.
  120. config LWIP_USE_ONLY_LWIP_SELECT
  121. bool "Support LWIP socket select() only (DEPRECATED)"
  122. default n
  123. help
  124. This option is deprecated. Do not use this option, use VFS_SUPPORT_SELECT instead.
  125. config LWIP_SO_LINGER
  126. bool "Enable SO_LINGER processing"
  127. default n
  128. help
  129. Enabling this option allows SO_LINGER processing.
  130. l_onoff = 1,l_linger can set the timeout.
  131. If l_linger=0, When a connection is closed, TCP will terminate the connection.
  132. This means that TCP will discard any data packets stored in the socket send buffer
  133. and send an RST to the peer.
  134. If l_linger!=0,Then closesocket() calls to block the process until
  135. the remaining data packets has been sent or timed out.
  136. config LWIP_SO_REUSE
  137. bool "Enable SO_REUSEADDR option"
  138. default y
  139. help
  140. Enabling this option allows binding to a port which remains in
  141. TIME_WAIT.
  142. config LWIP_SO_REUSE_RXTOALL
  143. bool "SO_REUSEADDR copies broadcast/multicast to all matches"
  144. depends on LWIP_SO_REUSE
  145. default y
  146. help
  147. Enabling this option means that any incoming broadcast or multicast
  148. packet will be copied to all of the local sockets that it matches
  149. (may be more than one if SO_REUSEADDR is set on the socket.)
  150. This increases memory overhead as the packets need to be copied,
  151. however they are only copied per matching socket. You can safely
  152. disable it if you don't plan to receive broadcast or multicast
  153. traffic on more than one socket at a time.
  154. config LWIP_SO_RCVBUF
  155. bool "Enable SO_RCVBUF option"
  156. default n
  157. help
  158. Enabling this option allows checking for available data on a netconn.
  159. config LWIP_NETBUF_RECVINFO
  160. bool "Enable IP_PKTINFO option"
  161. default n
  162. help
  163. Enabling this option allows checking for the destination address
  164. of a received IPv4 Packet.
  165. config LWIP_IP4_FRAG
  166. bool "Enable fragment outgoing IP4 packets"
  167. default y
  168. depends on LWIP_IPV4
  169. help
  170. Enabling this option allows fragmenting outgoing IP4 packets if their size
  171. exceeds MTU.
  172. config LWIP_IP6_FRAG
  173. bool "Enable fragment outgoing IP6 packets"
  174. default y
  175. depends on LWIP_IPV6
  176. help
  177. Enabling this option allows fragmenting outgoing IP6 packets if their size
  178. exceeds MTU.
  179. config LWIP_IP4_REASSEMBLY
  180. bool "Enable reassembly incoming fragmented IP4 packets"
  181. default n
  182. depends on LWIP_IPV4
  183. help
  184. Enabling this option allows reassemblying incoming fragmented IP4 packets.
  185. config LWIP_IP6_REASSEMBLY
  186. bool "Enable reassembly incoming fragmented IP6 packets"
  187. default n
  188. depends on LWIP_IPV6
  189. help
  190. Enabling this option allows reassemblying incoming fragmented IP6 packets.
  191. config LWIP_IP_REASS_MAX_PBUFS
  192. int "The maximum amount of pbufs waiting to be reassembled"
  193. range 10 100
  194. default 10
  195. help
  196. Set the maximum amount of pbufs waiting to be reassembled.
  197. config LWIP_IP_FORWARD
  198. bool "Enable IP forwarding"
  199. default n
  200. help
  201. Enabling this option allows packets forwarding across multiple interfaces.
  202. config LWIP_IPV4_NAPT
  203. bool "Enable NAT (new/experimental)"
  204. depends on LWIP_IP_FORWARD
  205. default n
  206. help
  207. Enabling this option allows Network Address and Port Translation.
  208. config LWIP_IPV4_NAPT_PORTMAP
  209. bool "Enable NAT Port Mapping (new/experimental)"
  210. depends on LWIP_IPV4_NAPT
  211. default y
  212. help
  213. Enabling this option allows Port Forwarding or Port mapping.
  214. config LWIP_STATS
  215. bool "Enable LWIP statistics"
  216. default n
  217. help
  218. Enabling this option allows LWIP statistics
  219. config LWIP_ESP_GRATUITOUS_ARP
  220. bool "Send gratuitous ARP periodically"
  221. default y
  222. depends on LWIP_IPV4
  223. help
  224. Enable this option allows to send gratuitous ARP periodically.
  225. This option solve the compatibility issues.If the ARP table of the AP is old, and the AP
  226. doesn't send ARP request to update it's ARP table, this will lead to the STA sending IP packet fail.
  227. Thus we send gratuitous ARP periodically to let AP update it's ARP table.
  228. config LWIP_GARP_TMR_INTERVAL
  229. int "GARP timer interval(seconds)"
  230. default 60
  231. depends on LWIP_ESP_GRATUITOUS_ARP
  232. help
  233. Set the timer interval for gratuitous ARP. The default value is 60s
  234. config LWIP_ESP_MLDV6_REPORT
  235. bool "Send mldv6 report periodically"
  236. depends on LWIP_IPV6
  237. default y
  238. help
  239. Enable this option allows to send mldv6 report periodically.
  240. This option solve the issue that failed to receive multicast data.
  241. Some routers fail to forward multicast packets.
  242. To solve this problem, send multicast mdlv6 report to routers regularly.
  243. config LWIP_MLDV6_TMR_INTERVAL
  244. int "mldv6 report timer interval(seconds)"
  245. default 40
  246. depends on LWIP_ESP_MLDV6_REPORT
  247. help
  248. Set the timer interval for mldv6 report. The default value is 30s
  249. config LWIP_TCPIP_RECVMBOX_SIZE
  250. int "TCPIP task receive mail box size"
  251. default 32
  252. range 6 64 if !LWIP_WND_SCALE
  253. range 6 1024 if LWIP_WND_SCALE
  254. help
  255. Set TCPIP task receive mail box size. Generally bigger value means higher throughput
  256. but more memory. The value should be bigger than UDP/TCP mail box size.
  257. config LWIP_DHCP_DOES_ARP_CHECK
  258. bool "DHCP: Perform ARP check on any offered address"
  259. default y
  260. depends on LWIP_IPV4
  261. help
  262. Enabling this option performs a check (via ARP request) if the offered IP address
  263. is not already in use by another host on the network.
  264. config LWIP_DHCP_DISABLE_CLIENT_ID
  265. bool "DHCP: Disable Use of HW address as client identification"
  266. default n
  267. depends on LWIP_IPV4
  268. help
  269. This option could be used to disable DHCP client identification with its MAC address.
  270. (Client id is used by DHCP servers to uniquely identify clients and are included
  271. in the DHCP packets as an option 61)
  272. Set this option to "y" in order to exclude option 61 from DHCP packets.
  273. config LWIP_DHCP_DISABLE_VENDOR_CLASS_ID
  274. bool "DHCP: Disable Use of vendor class identification"
  275. default y
  276. depends on LWIP_IPV4
  277. help
  278. This option could be used to disable DHCP client vendor class identification.
  279. Set this option to "y" in order to exclude option 60 from DHCP packets.
  280. config LWIP_DHCP_RESTORE_LAST_IP
  281. bool "DHCP: Restore last IP obtained from DHCP server"
  282. default n
  283. depends on LWIP_IPV4
  284. help
  285. When this option is enabled, DHCP client tries to re-obtain last valid IP address obtained from DHCP
  286. server. Last valid DHCP configuration is stored in nvs and restored after reset/power-up. If IP is still
  287. available, there is no need for sending discovery message to DHCP server and save some time.
  288. config LWIP_DHCP_OPTIONS_LEN
  289. int "DHCP total option length"
  290. default 68 if LWIP_DHCP_DISABLE_VENDOR_CLASS_ID
  291. default 108 if !LWIP_DHCP_DISABLE_VENDOR_CLASS_ID
  292. range 68 255
  293. depends on LWIP_IPV4
  294. help
  295. Set total length of outgoing DHCP option msg. Generally bigger value means it can carry more
  296. options and values. If your code meets LWIP_ASSERT due to option value is too long.
  297. Please increase the LWIP_DHCP_OPTIONS_LEN value.
  298. config LWIP_NUM_NETIF_CLIENT_DATA
  299. int "Number of clients store data in netif"
  300. default 0
  301. range 0 256
  302. help
  303. Number of clients that may store data in client_data member array of struct netif.
  304. config LWIP_DHCP_COARSE_TIMER_SECS
  305. int "DHCP coarse timer interval(s)"
  306. default 1
  307. range 1 10
  308. help
  309. Set DHCP coarse interval in seconds.
  310. A higher value will be less precise but cost less power consumption.
  311. menu "DHCP server"
  312. config LWIP_DHCPS
  313. bool "DHCPS: Enable IPv4 Dynamic Host Configuration Protocol Server (DHCPS)"
  314. default y
  315. depends on LWIP_IPV4
  316. help
  317. Enabling this option allows the device to run the DHCP server
  318. (to dynamically assign IPv4 addresses to clients).
  319. config LWIP_DHCPS_LEASE_UNIT
  320. int "Multiplier for lease time, in seconds"
  321. range 1 3600
  322. default 60
  323. depends on LWIP_DHCPS
  324. help
  325. The DHCP server is calculating lease time multiplying the sent
  326. and received times by this number of seconds per unit.
  327. The default is 60, that equals one minute.
  328. config LWIP_DHCPS_MAX_STATION_NUM
  329. int "Maximum number of stations"
  330. range 1 64
  331. default 8
  332. depends on LWIP_DHCPS
  333. help
  334. The maximum number of DHCP clients that are connected to the server.
  335. After this number is exceeded, DHCP server removes of the oldest device
  336. from it's address pool, without notification.
  337. config LWIP_DHCPS_STATIC_ENTRIES
  338. bool "Enable ARP static entries"
  339. default y
  340. depends on LWIP_DHCPS
  341. help
  342. Enabling this option allows DHCP server to support temporary static ARP entries
  343. for DHCP Client. This will help the DHCP server to send the DHCP OFFER and DHCP ACK using IP unicast.
  344. endmenu # DHCPS
  345. menuconfig LWIP_AUTOIP
  346. bool "Enable IPV4 Link-Local Addressing (AUTOIP)"
  347. default n
  348. depends on LWIP_IPV4
  349. help
  350. Enabling this option allows the device to self-assign an address
  351. in the 169.256/16 range if none is assigned statically or via DHCP.
  352. See RFC 3927.
  353. config LWIP_AUTOIP_TRIES
  354. int "DHCP Probes before self-assigning IPv4 LL address"
  355. range 1 100
  356. default 2
  357. depends on LWIP_AUTOIP
  358. help
  359. DHCP client will send this many probes before self-assigning a
  360. link local address.
  361. From LWIP help: "This can be set as low as 1 to get an AutoIP
  362. address very quickly, but you should be prepared to handle a
  363. changing IP address when DHCP overrides AutoIP." (In the case of
  364. ESP-IDF, this means multiple SYSTEM_EVENT_STA_GOT_IP events.)
  365. config LWIP_AUTOIP_MAX_CONFLICTS
  366. int "Max IP conflicts before rate limiting"
  367. range 1 100
  368. default 9
  369. depends on LWIP_AUTOIP
  370. help
  371. If the AUTOIP functionality detects this many IP conflicts while
  372. self-assigning an address, it will go into a rate limited mode.
  373. config LWIP_AUTOIP_RATE_LIMIT_INTERVAL
  374. int "Rate limited interval (seconds)"
  375. range 5 120
  376. default 20
  377. depends on LWIP_AUTOIP
  378. help
  379. If rate limiting self-assignment requests, wait this long between
  380. each request.
  381. config LWIP_IPV4
  382. bool "Enable IPv4"
  383. default y
  384. help
  385. Enable IPv4 stack. If you want to use IPv6 only TCP/IP stack, disable this.
  386. config LWIP_IPV6
  387. bool "Enable IPv6"
  388. default y
  389. help
  390. Enable IPv6 function. If not use IPv6 function, set this option to n.
  391. If disabling LWIP_IPV6 then some other components (coap and asio) will
  392. no longer be available.
  393. config LWIP_IPV6_AUTOCONFIG
  394. bool "Enable IPV6 stateless address autoconfiguration (SLAAC)"
  395. depends on LWIP_IPV6
  396. default n
  397. help
  398. Enabling this option allows the devices to IPV6 stateless address autoconfiguration (SLAAC).
  399. See RFC 4862.
  400. config LWIP_IPV6_NUM_ADDRESSES
  401. int "Number of IPv6 addresses on each network interface"
  402. depends on LWIP_IPV6
  403. default 3
  404. help
  405. The maximum number of IPv6 addresses on each interface. Any additional
  406. addresses will be discarded.
  407. config LWIP_IPV6_FORWARD
  408. bool "Enable IPv6 forwarding between interfaces"
  409. depends on LWIP_IPV6
  410. default n
  411. help
  412. Forwarding IPv6 packets between interfaces is only required when acting as
  413. a router.
  414. config LWIP_IPV6_RDNSS_MAX_DNS_SERVERS
  415. int "Use IPv6 Router Advertisement Recursive DNS Server Option"
  416. depends on LWIP_IPV6_AUTOCONFIG
  417. default 0
  418. help
  419. Use IPv6 Router Advertisement Recursive DNS Server Option (as per RFC 6106) to
  420. copy a defined maximum number of DNS servers to the DNS module.
  421. Set this option to a number of desired DNS servers advertised in the RA protocol.
  422. This feature is disabled when set to 0.
  423. config LWIP_IPV6_DHCP6
  424. bool "Enable DHCPv6 stateless address autoconfiguration"
  425. depends on LWIP_IPV6_AUTOCONFIG
  426. default n
  427. help
  428. Enable DHCPv6 for IPv6 stateless address autoconfiguration.
  429. Note that the dhcpv6 client has to be started using dhcp6_enable_stateless(netif);
  430. Note that the stateful address autoconfiguration is not supported.
  431. config LWIP_NETIF_STATUS_CALLBACK
  432. bool "Enable status callback for network interfaces"
  433. default n
  434. help
  435. Enable callbacks when the network interface is up/down and addresses are changed.
  436. menuconfig LWIP_NETIF_LOOPBACK
  437. bool "Support per-interface loopback"
  438. default y
  439. help
  440. Enabling this option means that if a packet is sent with a destination
  441. address equal to the interface's own IP address, it will "loop back" and
  442. be received by this interface.
  443. Disabling this option disables support of loopback interface in lwIP
  444. config LWIP_LOOPBACK_MAX_PBUFS
  445. int "Max queued loopback packets per interface"
  446. range 0 16
  447. default 8
  448. depends on LWIP_NETIF_LOOPBACK
  449. help
  450. Configure the maximum number of packets which can be queued for
  451. loopback on a given interface. Reducing this number may cause packets
  452. to be dropped, but will avoid filling memory with queued packet data.
  453. menu "TCP"
  454. config LWIP_MAX_ACTIVE_TCP
  455. int "Maximum active TCP Connections"
  456. range 1 1024
  457. default 16
  458. help
  459. The maximum number of simultaneously active TCP
  460. connections. The practical maximum limit is
  461. determined by available heap memory at runtime.
  462. Changing this value by itself does not substantially
  463. change the memory usage of LWIP, except for preventing
  464. new TCP connections after the limit is reached.
  465. config LWIP_MAX_LISTENING_TCP
  466. int "Maximum listening TCP Connections"
  467. range 1 1024
  468. default 16
  469. help
  470. The maximum number of simultaneously listening TCP
  471. connections. The practical maximum limit is
  472. determined by available heap memory at runtime.
  473. Changing this value by itself does not substantially
  474. change the memory usage of LWIP, except for preventing
  475. new listening TCP connections after the limit is reached.
  476. config LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  477. bool "TCP high speed retransmissions"
  478. default y
  479. help
  480. Speed up the TCP retransmission interval. If disabled,
  481. it is recommended to change the number of SYN retransmissions to 6,
  482. and TCP initial rto time to 3000.
  483. config LWIP_TCP_MAXRTX
  484. int "Maximum number of retransmissions of data segments"
  485. default 12
  486. range 3 12
  487. help
  488. Set maximum number of retransmissions of data segments.
  489. config LWIP_TCP_SYNMAXRTX
  490. int "Maximum number of retransmissions of SYN segments"
  491. default 6 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  492. default 12 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  493. range 3 12
  494. help
  495. Set maximum number of retransmissions of SYN segments.
  496. config LWIP_TCP_MSS
  497. int "Maximum Segment Size (MSS)"
  498. default 1440
  499. range 536 1460
  500. help
  501. Set maximum segment size for TCP transmission.
  502. Can be set lower to save RAM, the default value 1460(ipv4)/1440(ipv6) will give best throughput.
  503. IPv4 TCP_MSS Range: 576 <= TCP_MSS <= 1460
  504. IPv6 TCP_MSS Range: 1220<= TCP_MSS <= 1440
  505. config LWIP_TCP_TMR_INTERVAL
  506. int "TCP timer interval(ms)"
  507. default 250
  508. help
  509. Set TCP timer interval in milliseconds.
  510. Can be used to speed connections on bad networks.
  511. A lower value will redeliver unacked packets faster.
  512. config LWIP_TCP_MSL
  513. int "Maximum segment lifetime (MSL)"
  514. default 60000
  515. help
  516. Set maximum segment lifetime in milliseconds.
  517. config LWIP_TCP_FIN_WAIT_TIMEOUT
  518. int "Maximum FIN segment lifetime"
  519. default 20000
  520. help
  521. Set maximum segment lifetime in milliseconds.
  522. config LWIP_TCP_SND_BUF_DEFAULT
  523. int "Default send buffer size"
  524. default 5760 # 4 * default MSS
  525. range 2440 65535 if !LWIP_WND_SCALE
  526. range 2440 1024000 if LWIP_WND_SCALE
  527. help
  528. Set default send buffer size for new TCP sockets.
  529. Per-socket send buffer size can be changed at runtime
  530. with lwip_setsockopt(s, TCP_SNDBUF, ...).
  531. This value must be at least 2x the MSS size, and the default
  532. is 4x the default MSS size.
  533. Setting a smaller default SNDBUF size can save some RAM, but
  534. will decrease performance.
  535. config LWIP_TCP_WND_DEFAULT
  536. int "Default receive window size"
  537. default 5760 # 4 * default MSS
  538. range 2440 65535 if !LWIP_WND_SCALE
  539. range 2440 1024000 if LWIP_WND_SCALE
  540. help
  541. Set default TCP receive window size for new TCP sockets.
  542. Per-socket receive window size can be changed at runtime
  543. with lwip_setsockopt(s, TCP_WINDOW, ...).
  544. Setting a smaller default receive window size can save some RAM,
  545. but will significantly decrease performance.
  546. config LWIP_TCP_RECVMBOX_SIZE
  547. int "Default TCP receive mail box size"
  548. default 6
  549. range 6 64 if !LWIP_WND_SCALE
  550. range 6 1024 if LWIP_WND_SCALE
  551. help
  552. Set TCP receive mail box size. Generally bigger value means higher throughput
  553. but more memory. The recommended value is: LWIP_TCP_WND_DEFAULT/TCP_MSS + 2, e.g. if
  554. LWIP_TCP_WND_DEFAULT=14360, TCP_MSS=1436, then the recommended receive mail box size is
  555. (14360/1436 + 2) = 12.
  556. TCP receive mail box is a per socket mail box, when the application receives packets
  557. from TCP socket, LWIP core firstly posts the packets to TCP receive mail box and the
  558. application then fetches the packets from mail box. It means LWIP can caches maximum
  559. LWIP_TCP_RECCVMBOX_SIZE packets for each TCP socket, so the maximum possible cached TCP packets
  560. for all TCP sockets is LWIP_TCP_RECCVMBOX_SIZE multiples the maximum TCP socket number. In other
  561. words, the bigger LWIP_TCP_RECVMBOX_SIZE means more memory.
  562. On the other hand, if the receiv mail box is too small, the mail box may be full. If the
  563. mail box is full, the LWIP drops the packets. So generally we need to make sure the TCP
  564. receive mail box is big enough to avoid packet drop between LWIP core and application.
  565. config LWIP_TCP_QUEUE_OOSEQ
  566. bool "Queue incoming out-of-order segments"
  567. default y
  568. help
  569. Queue incoming out-of-order segments for later use.
  570. Disable this option to save some RAM during TCP sessions, at the expense
  571. of increased retransmissions if segments arrive out of order.
  572. config LWIP_TCP_OOSEQ_TIMEOUT
  573. int "Timeout for each pbuf queued in TCP OOSEQ, in RTOs."
  574. depends on LWIP_TCP_QUEUE_OOSEQ
  575. range 1 30
  576. default 6
  577. help
  578. The timeout value is TCP_OOSEQ_TIMEOUT * RTO.
  579. config LWIP_TCP_OOSEQ_MAX_PBUFS
  580. int "The maximum number of pbufs queued on OOSEQ per pcb"
  581. depends on LWIP_TCP_QUEUE_OOSEQ
  582. range 0 12
  583. default 4
  584. help
  585. If LWIP_TCP_OOSEQ_MAX_PBUFS = 0, TCP will not control the number of OOSEQ pbufs.
  586. In a poor network environment, many out-of-order tcp pbufs will be received.
  587. These out-of-order pbufs will be cached in the TCP out-of-order queue which will
  588. cause Wi-Fi/Ethernet fail to release RX buffer in time.
  589. It is possible that all RX buffers for MAC layer are used by OOSEQ.
  590. Control the number of out-of-order pbufs to ensure that the MAC layer has enough RX buffer to receive packets.
  591. In the Wi-Fi scenario, recommended OOSEQ PBUFS Range: 0 <= TCP_OOSEQ_MAX_PBUFS <= CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM/(MAX_TCP_NUMBER + 1)
  592. In the Ethernet scenario,recommended Ethernet OOSEQ PBUFS Range: 0 <= TCP_OOSEQ_MAX_PBUFS <= CONFIG_ETH_DMA_RX_BUFFER_NUM/(MAX_TCP_NUMBER + 1)
  593. Within the recommended value range, the larger the value, the better the performance.
  594. MAX_TCP_NUMBER represent Maximum number of TCP connections in Wi-Fi(STA+SoftAP) and Ethernet scenario.
  595. config LWIP_TCP_SACK_OUT
  596. bool "Support sending selective acknowledgements"
  597. default n
  598. depends on LWIP_TCP_QUEUE_OOSEQ
  599. help
  600. TCP will support sending selective acknowledgements (SACKs).
  601. choice LWIP_TCP_OVERSIZE
  602. prompt "Pre-allocate transmit PBUF size"
  603. default LWIP_TCP_OVERSIZE_MSS
  604. help
  605. Allows enabling "oversize" allocation of TCP transmission pbufs ahead of time,
  606. which can reduce the length of pbuf chains used for transmission.
  607. This will not make a difference to sockets where Nagle's algorithm
  608. is disabled.
  609. Default value of MSS is fine for most applications, 25% MSS may save
  610. some RAM when only transmitting small amounts of data. Disabled will
  611. have worst performance and fragmentation characteristics, but uses
  612. least RAM overall.
  613. config LWIP_TCP_OVERSIZE_MSS
  614. bool "MSS"
  615. config LWIP_TCP_OVERSIZE_QUARTER_MSS
  616. bool "25% MSS"
  617. config LWIP_TCP_OVERSIZE_DISABLE
  618. bool "Disabled"
  619. endchoice
  620. config LWIP_WND_SCALE
  621. bool "Support TCP window scale"
  622. depends on SPIRAM_TRY_ALLOCATE_WIFI_LWIP
  623. default n
  624. help
  625. Enable this feature to support TCP window scaling.
  626. config LWIP_TCP_RCV_SCALE
  627. int "Set TCP receiving window scaling factor"
  628. depends on LWIP_WND_SCALE
  629. range 0 14
  630. default 0
  631. help
  632. Enable this feature to support TCP window scaling.
  633. config LWIP_TCP_RTO_TIME
  634. int "Default TCP rto time"
  635. default 3000 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  636. default 1500 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  637. help
  638. Set default TCP rto time for a reasonable initial rto.
  639. In bad network environment, recommend set value of rto time to 1500.
  640. endmenu # TCP
  641. menu "UDP"
  642. config LWIP_MAX_UDP_PCBS
  643. int "Maximum active UDP control blocks"
  644. range 1 1024
  645. default 16
  646. help
  647. The maximum number of active UDP "connections" (ie
  648. UDP sockets sending/receiving data).
  649. The practical maximum limit is determined by available
  650. heap memory at runtime.
  651. config LWIP_UDP_RECVMBOX_SIZE
  652. int "Default UDP receive mail box size"
  653. default 6
  654. range 6 64
  655. help
  656. Set UDP receive mail box size. The recommended value is 6.
  657. UDP receive mail box is a per socket mail box, when the application receives packets
  658. from UDP socket, LWIP core firstly posts the packets to UDP receive mail box and the
  659. application then fetches the packets from mail box. It means LWIP can caches maximum
  660. UDP_RECCVMBOX_SIZE packets for each UDP socket, so the maximum possible cached UDP packets
  661. for all UDP sockets is UDP_RECCVMBOX_SIZE multiples the maximum UDP socket number. In other
  662. words, the bigger UDP_RECVMBOX_SIZE means more memory.
  663. On the other hand, if the receiv mail box is too small, the mail box may be full. If the
  664. mail box is full, the LWIP drops the packets. So generally we need to make sure the UDP
  665. receive mail box is big enough to avoid packet drop between LWIP core and application.
  666. endmenu # UDP
  667. menu "Checksums"
  668. config LWIP_CHECKSUM_CHECK_IP
  669. bool "Enable LWIP IP checksums"
  670. default n
  671. help
  672. Enable checksum checking for received IP messages
  673. config LWIP_CHECKSUM_CHECK_UDP
  674. bool "Enable LWIP UDP checksums"
  675. default n
  676. help
  677. Enable checksum checking for received UDP messages
  678. config LWIP_CHECKSUM_CHECK_ICMP
  679. bool "Enable LWIP ICMP checksums"
  680. default y
  681. help
  682. Enable checksum checking for received ICMP messages
  683. endmenu # Checksums
  684. config LWIP_TCPIP_TASK_STACK_SIZE
  685. int "TCP/IP Task Stack Size"
  686. default 3072
  687. # for high log levels, esp_netif API calls can end up
  688. # a few calls deep and logging there can trigger a stack overflow
  689. range 2048 65536 if LOG_DEFAULT_LEVEL < 4
  690. range 2560 65536 if LOG_DEFAULT_LEVEL >= 4
  691. help
  692. Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations.
  693. Setting this stack too small will result in stack overflow crashes.
  694. choice LWIP_TCPIP_TASK_AFFINITY
  695. prompt "TCP/IP task affinity"
  696. default LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  697. help
  698. Allows setting LwIP tasks affinity, i.e. whether the task is pinned to
  699. CPU0, pinned to CPU1, or allowed to run on any CPU.
  700. Currently this applies to "TCP/IP" task and "Ping" task.
  701. config LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  702. bool "No affinity"
  703. config LWIP_TCPIP_TASK_AFFINITY_CPU0
  704. bool "CPU0"
  705. config LWIP_TCPIP_TASK_AFFINITY_CPU1
  706. bool "CPU1"
  707. depends on !FREERTOS_UNICORE
  708. endchoice
  709. config LWIP_TCPIP_TASK_AFFINITY
  710. hex
  711. default FREERTOS_NO_AFFINITY if LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  712. default 0x0 if LWIP_TCPIP_TASK_AFFINITY_CPU0
  713. default 0x1 if LWIP_TCPIP_TASK_AFFINITY_CPU1
  714. menuconfig LWIP_PPP_SUPPORT
  715. bool "Enable PPP support"
  716. default n
  717. help
  718. Enable PPP stack. Now only PPP over serial is possible.
  719. config LWIP_PPP_ENABLE_IPV6
  720. bool "Enable IPV6 support for PPP connections (IPV6CP)"
  721. depends on LWIP_PPP_SUPPORT && LWIP_IPV6
  722. default y
  723. help
  724. Enable IPV6 support in PPP for the local link between the DTE (processor) and DCE (modem).
  725. There are some modems which do not support the IPV6 addressing in the local link.
  726. If they are requested for IPV6CP negotiation, they may time out.
  727. This would in turn fail the configuration for the whole link.
  728. If your modem is not responding correctly to PPP Phase Network, try to disable IPV6 support.
  729. config LWIP_IPV6_MEMP_NUM_ND6_QUEUE
  730. int "Max number of IPv6 packets to queue during MAC resolution"
  731. depends on LWIP_IPV6
  732. range 3 20
  733. default 3
  734. help
  735. Config max number of IPv6 packets to queue during MAC resolution.
  736. config LWIP_IPV6_ND6_NUM_NEIGHBORS
  737. int "Max number of entries in IPv6 neighbor cache"
  738. depends on LWIP_IPV6
  739. range 3 10
  740. default 5
  741. help
  742. Config max number of entries in IPv6 neighbor cache
  743. config LWIP_PPP_NOTIFY_PHASE_SUPPORT
  744. bool "Enable Notify Phase Callback"
  745. depends on LWIP_PPP_SUPPORT
  746. default n
  747. help
  748. Enable to set a callback which is called on change of the internal PPP state machine.
  749. config LWIP_PPP_PAP_SUPPORT
  750. bool "Enable PAP support"
  751. depends on LWIP_PPP_SUPPORT
  752. default n
  753. help
  754. Enable Password Authentication Protocol (PAP) support
  755. config LWIP_PPP_CHAP_SUPPORT
  756. bool "Enable CHAP support"
  757. depends on LWIP_PPP_SUPPORT
  758. default n
  759. help
  760. Enable Challenge Handshake Authentication Protocol (CHAP) support
  761. config LWIP_PPP_MSCHAP_SUPPORT
  762. bool "Enable MSCHAP support"
  763. depends on LWIP_PPP_SUPPORT
  764. default n
  765. help
  766. Enable Microsoft version of the Challenge-Handshake Authentication Protocol (MSCHAP) support
  767. config LWIP_PPP_MPPE_SUPPORT
  768. bool "Enable MPPE support"
  769. depends on LWIP_PPP_SUPPORT
  770. default n
  771. help
  772. Enable Microsoft Point-to-Point Encryption (MPPE) support
  773. config LWIP_ENABLE_LCP_ECHO
  774. bool "Enable LCP ECHO"
  775. depends on LWIP_PPP_SUPPORT
  776. default n
  777. help
  778. Enable LCP echo keepalive requests
  779. config LWIP_LCP_ECHOINTERVAL
  780. int "Echo interval (s)"
  781. range 0 1000000
  782. depends on LWIP_ENABLE_LCP_ECHO
  783. default 3
  784. help
  785. Interval in seconds between keepalive LCP echo requests, 0 to disable.
  786. config LWIP_LCP_MAXECHOFAILS
  787. int "Maximum echo failures"
  788. range 0 100000
  789. depends on LWIP_ENABLE_LCP_ECHO
  790. default 3
  791. help
  792. Number of consecutive unanswered echo requests before failure is indicated.
  793. config LWIP_PPP_DEBUG_ON
  794. bool "Enable PPP debug log output"
  795. depends on LWIP_PPP_SUPPORT
  796. default n
  797. help
  798. Enable PPP debug log output
  799. menuconfig LWIP_SLIP_SUPPORT
  800. bool "Enable SLIP support (new/experimental)"
  801. default n
  802. help
  803. Enable SLIP stack. Now only SLIP over serial is possible.
  804. SLIP over serial support is experimental and unsupported.
  805. config LWIP_SLIP_DEBUG_ON
  806. bool "Enable SLIP debug log output"
  807. depends on LWIP_SLIP_SUPPORT
  808. default n
  809. help
  810. Enable SLIP debug log output
  811. menu "ICMP"
  812. config LWIP_ICMP
  813. bool "ICMP: Enable ICMP"
  814. default y
  815. help
  816. Enable ICMP module for check network stability
  817. config LWIP_MULTICAST_PING
  818. bool "Respond to multicast pings"
  819. default n
  820. depends on LWIP_ICMP6 || LWIP_ICMP
  821. config LWIP_BROADCAST_PING
  822. bool "Respond to broadcast pings"
  823. default n
  824. depends on LWIP_ICMP
  825. endmenu # ICMP
  826. menu "LWIP RAW API"
  827. config LWIP_MAX_RAW_PCBS
  828. int "Maximum LWIP RAW PCBs"
  829. range 1 1024
  830. default 16
  831. help
  832. The maximum number of simultaneously active LWIP
  833. RAW protocol control blocks. The practical maximum
  834. limit is determined by available heap memory at runtime.
  835. endmenu # LWIP RAW API
  836. menu "SNTP"
  837. config LWIP_SNTP_MAX_SERVERS
  838. int "Maximum number of NTP servers"
  839. default 1
  840. range 1 16
  841. help
  842. Set maximum number of NTP servers used by LwIP SNTP module.
  843. First argument of sntp_setserver/sntp_setservername functions
  844. is limited to this value.
  845. config LWIP_DHCP_GET_NTP_SRV
  846. bool "Request NTP servers from DHCP"
  847. default n
  848. help
  849. If enabled, LWIP will add 'NTP' to Parameter-Request Option sent via DHCP-request.
  850. DHCP server might reply with an NTP server address in option 42.
  851. SNTP callback for such replies should be set accordingly (see sntp_servermode_dhcp() func.)
  852. config LWIP_DHCP_MAX_NTP_SERVERS
  853. int "Maximum number of NTP servers aquired via DHCP"
  854. default 1
  855. range 1 16
  856. depends on LWIP_DHCP_GET_NTP_SRV
  857. help
  858. Set maximum number of NTP servers aquired via DHCP-offer.
  859. Should be less or equal to "Maximum number of NTP servers", any extra servers would be just ignored.
  860. config LWIP_SNTP_UPDATE_DELAY
  861. int "Request interval to update time (ms)"
  862. range 15000 4294967295
  863. default 3600000
  864. help
  865. This option allows you to set the time update period via SNTP.
  866. Default is 1 hour. Must not be below 15 seconds by specification.
  867. (SNTPv4 RFC 4330 enforces a minimum update time of 15 seconds).
  868. endmenu # SNTP
  869. config LWIP_BRIDGEIF_MAX_PORTS
  870. int "Maximum number of bridge ports"
  871. default 7
  872. range 1 63
  873. help
  874. Set maximum number of ports a bridge can consists of.
  875. config LWIP_ESP_LWIP_ASSERT
  876. bool "Enable LWIP ASSERT checks"
  877. default y
  878. depends on !COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE
  879. help
  880. Enable this option keeps LWIP assertion checks enabled.
  881. It is recommended to keep this option enabled.
  882. If asserts are disabled for the entire project, they are also disabled
  883. for LWIP and this option is ignored.
  884. menu "Hooks"
  885. choice LWIP_HOOK_TCP_ISN
  886. prompt "TCP ISN Hook"
  887. default LWIP_HOOK_TCP_ISN_DEFAULT
  888. help
  889. Enables to define a TCP ISN hook to randomize initial sequence
  890. number in TCP connection.
  891. The default TCP ISN algorithm used in IDF (standardized in RFC 6528)
  892. produces ISN by combining an MD5 of the new TCP id and a stable
  893. secret with the current time.
  894. This is because the lwIP implementation (`tcp_next_iss`) is not
  895. very strong, as it does not take into consideration any platform
  896. specific entropy source.
  897. Set to LWIP_HOOK_TCP_ISN_CUSTOM to provide custom implementation.
  898. Set to LWIP_HOOK_TCP_ISN_NONE to use lwIP implementation.
  899. config LWIP_HOOK_TCP_ISN_NONE
  900. bool "No hook declared"
  901. config LWIP_HOOK_TCP_ISN_DEFAULT
  902. bool "Default implementation"
  903. config LWIP_HOOK_TCP_ISN_CUSTOM
  904. bool "Custom implementation"
  905. endchoice
  906. choice LWIP_HOOK_IP6_ROUTE
  907. prompt "IPv6 route Hook"
  908. depends on LWIP_IPV6
  909. default LWIP_HOOK_IP6_ROUTE_NONE
  910. help
  911. Enables custom IPv6 route hook.
  912. Setting this to "default" provides weak implementation
  913. stub that could be overwritten in application code.
  914. Setting this to "custom" provides hook's declaration
  915. only and expects the application to implement it.
  916. config LWIP_HOOK_IP6_ROUTE_NONE
  917. bool "No hook declared"
  918. config LWIP_HOOK_IP6_ROUTE_DEFAULT
  919. bool "Default (weak) implementation"
  920. config LWIP_HOOK_IP6_ROUTE_CUSTOM
  921. bool "Custom implementation"
  922. endchoice
  923. choice LWIP_HOOK_ND6_GET_GW
  924. prompt "IPv6 get gateway Hook"
  925. depends on LWIP_IPV6
  926. default LWIP_HOOK_ND6_GET_GW_NONE
  927. help
  928. Enables custom IPv6 route hook.
  929. Setting this to "default" provides weak implementation
  930. stub that could be overwritten in application code.
  931. Setting this to "custom" provides hook's declaration
  932. only and expects the application to implement it.
  933. config LWIP_HOOK_ND6_GET_GW_NONE
  934. bool "No hook declared"
  935. config LWIP_HOOK_ND6_GET_GW_DEFAULT
  936. bool "Default (weak) implementation"
  937. config LWIP_HOOK_ND6_GET_GW_CUSTOM
  938. bool "Custom implementation"
  939. endchoice
  940. choice LWIP_HOOK_IP6_SELECT_SRC_ADDR
  941. prompt "IPv6 source address selection Hook"
  942. depends on LWIP_IPV6
  943. default LWIP_HOOK_IP6_SELECT_SRC_ADDR_NONE
  944. help
  945. Enables custom IPv6 source address selection.
  946. Setting this to "default" provides weak implementation
  947. stub that could be overwritten in application code.
  948. Setting this to "custom" provides hook's declaration
  949. only and expects the application to implement it.
  950. config LWIP_HOOK_IP6_SELECT_SRC_ADDR_NONE
  951. bool "No hook declared"
  952. config LWIP_HOOK_IP6_SELECT_SRC_ADDR_DEFAULT
  953. bool "Default (weak) implementation"
  954. config LWIP_HOOK_IP6_SELECT_SRC_ADDR_CUSTOM
  955. bool "Custom implementation"
  956. endchoice
  957. choice LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE
  958. prompt "Netconn external resolve Hook"
  959. default LWIP_HOOK_NETCONN_EXT_RESOLVE_DEFAULT if OPENTHREAD_DNS64_CLIENT
  960. default LWIP_HOOK_NETCONN_EXT_RESOLVE_NONE if !OPENTHREAD_DNS64_CLIENT
  961. help
  962. Enables custom DNS resolve hook.
  963. Setting this to "default" provides weak implementation
  964. stub that could be overwritten in application code.
  965. Setting this to "custom" provides hook's declaration
  966. only and expects the application to implement it.
  967. config LWIP_HOOK_NETCONN_EXT_RESOLVE_NONE
  968. bool "No hook declared"
  969. config LWIP_HOOK_NETCONN_EXT_RESOLVE_DEFAULT
  970. bool "Default (weak) implementation"
  971. config LWIP_HOOK_NETCONN_EXT_RESOLVE_CUSTOM
  972. bool "Custom implementation"
  973. endchoice
  974. choice LWIP_HOOK_IP6_INPUT
  975. prompt "IPv6 packet input"
  976. depends on LWIP_IPV6
  977. default LWIP_HOOK_IP6_INPUT_NONE
  978. help
  979. Enables custom IPv6 packet input.
  980. Setting this to "default" provides weak implementation
  981. stub that could be overwritten in application code.
  982. Setting this to "custom" provides hook's declaration
  983. only and expects the application to implement it.
  984. config LWIP_HOOK_IP6_INPUT_NONE
  985. bool "No hook declared"
  986. config LWIP_HOOK_IP6_INPUT_DEFAULT
  987. bool "Default (weak) implementation"
  988. config LWIP_HOOK_IP6_INPUT_CUSTOM
  989. bool "Custom implementation"
  990. endchoice
  991. endmenu # Hooks
  992. menuconfig LWIP_DEBUG
  993. bool "Enable LWIP Debug"
  994. default n
  995. help
  996. Enabling this option allows different kinds of lwIP debug output.
  997. All lwIP debug features increase the size of the final binary.
  998. config LWIP_DEBUG_ESP_LOG
  999. bool "Route LWIP debugs through ESP_LOG interface"
  1000. depends on LWIP_DEBUG
  1001. default n
  1002. help
  1003. Enabling this option routes all enabled LWIP debugs through ESP_LOGD.
  1004. config LWIP_NETIF_DEBUG
  1005. bool "Enable netif debug messages"
  1006. depends on LWIP_DEBUG
  1007. default n
  1008. config LWIP_PBUF_DEBUG
  1009. bool "Enable pbuf debug messages"
  1010. depends on LWIP_DEBUG
  1011. default n
  1012. config LWIP_ETHARP_DEBUG
  1013. bool "Enable etharp debug messages"
  1014. depends on LWIP_DEBUG
  1015. default n
  1016. config LWIP_API_LIB_DEBUG
  1017. bool "Enable api lib debug messages"
  1018. depends on LWIP_DEBUG
  1019. default n
  1020. config LWIP_SOCKETS_DEBUG
  1021. bool "Enable socket debug messages"
  1022. depends on LWIP_DEBUG
  1023. default n
  1024. config LWIP_IP_DEBUG
  1025. bool "Enable IP debug messages"
  1026. depends on LWIP_DEBUG
  1027. default n
  1028. config LWIP_ICMP_DEBUG
  1029. bool "Enable ICMP debug messages"
  1030. depends on LWIP_DEBUG && LWIP_ICMP
  1031. default n
  1032. config LWIP_DHCP_STATE_DEBUG
  1033. bool "Enable DHCP state tracking"
  1034. depends on LWIP_DEBUG
  1035. default n
  1036. config LWIP_DHCP_DEBUG
  1037. bool "Enable DHCP debug messages"
  1038. depends on LWIP_DEBUG
  1039. default n
  1040. config LWIP_IP6_DEBUG
  1041. bool "Enable IP6 debug messages"
  1042. depends on LWIP_DEBUG
  1043. default n
  1044. config LWIP_ICMP6_DEBUG
  1045. bool "Enable ICMP6 debug messages"
  1046. depends on LWIP_DEBUG
  1047. default n
  1048. config LWIP_TCP_DEBUG
  1049. bool "Enable TCP debug messages"
  1050. depends on LWIP_DEBUG
  1051. default n
  1052. config LWIP_UDP_DEBUG
  1053. bool "Enable UDP debug messages"
  1054. depends on LWIP_DEBUG
  1055. default n
  1056. config LWIP_SNTP_DEBUG
  1057. bool "Enable SNTP debug messages"
  1058. depends on LWIP_DEBUG
  1059. default n
  1060. config LWIP_DNS_DEBUG
  1061. bool "Enable DNS debug messages"
  1062. depends on LWIP_DEBUG
  1063. default n
  1064. config LWIP_NAPT_DEBUG
  1065. bool "Enable NAPT debug messages"
  1066. depends on LWIP_DEBUG && LWIP_IPV4_NAPT
  1067. default n
  1068. config LWIP_BRIDGEIF_DEBUG
  1069. bool "Enable bridge generic debug messages"
  1070. depends on LWIP_DEBUG
  1071. default n
  1072. config LWIP_BRIDGEIF_FDB_DEBUG
  1073. bool "Enable bridge FDB debug messages"
  1074. depends on LWIP_DEBUG
  1075. default n
  1076. config LWIP_BRIDGEIF_FW_DEBUG
  1077. bool "Enable bridge forwarding debug messages"
  1078. depends on LWIP_DEBUG
  1079. default n
  1080. endmenu