Kconfig 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. menu "LWIP"
  2. config LWIP_LOCAL_HOSTNAME
  3. string "Local netif hostname"
  4. default 'espressif'
  5. help
  6. The default name this device will report to other devices on the network.
  7. Could be updated at runtime with esp_netif_set_hostname()
  8. config LWIP_DNS_SUPPORT_MDNS_QUERIES
  9. bool "Enable mDNS queries in resolving host name"
  10. default y
  11. help
  12. If this feature is enabled, standard API such as gethostbyname
  13. support .local addresses by sending one shot multicast mDNS
  14. query
  15. config LWIP_L2_TO_L3_COPY
  16. bool "Enable copy between Layer2 and Layer3 packets"
  17. default n
  18. help
  19. If this feature is enabled, all traffic from layer2(WIFI Driver) will be
  20. copied to a new buffer before sending it to layer3(LWIP stack), freeing
  21. the layer2 buffer.
  22. Please be notified that the total layer2 receiving buffer is fixed and
  23. ESP32 currently supports 25 layer2 receiving buffer, when layer2 buffer
  24. runs out of memory, then the incoming packets will be dropped in hardware.
  25. The layer3 buffer is allocated from the heap, so the total layer3 receiving
  26. buffer depends on the available heap size, when heap runs out of memory,
  27. no copy will be sent to layer3 and packet will be dropped in layer2.
  28. Please make sure you fully understand the impact of this feature before
  29. enabling it.
  30. config LWIP_IRAM_OPTIMIZATION
  31. bool "Enable LWIP IRAM optimization"
  32. default n
  33. help
  34. If this feature is enabled, some functions relating to RX/TX in LWIP will be
  35. put into IRAM, it can improve UDP/TCP throughput by >10% for single core mode,
  36. it doesn't help too much for dual core mode. On the other hand, it needs about
  37. 10KB IRAM for these optimizations.
  38. If this feature is disabled, all lwip functions will be put into FLASH.
  39. config LWIP_TIMERS_ONDEMAND
  40. bool "Enable LWIP Timers on demand"
  41. default y
  42. help
  43. If this feature is enabled, IGMP and MLD6 timers will be activated only
  44. when joining groups or receiving QUERY packets.
  45. This feature will reduce the power consumption for applications which do not
  46. use IGMP and MLD6.
  47. config LWIP_MAX_SOCKETS
  48. int "Max number of open sockets"
  49. range 1 16
  50. default 10
  51. help
  52. Sockets take up a certain amount of memory, and allowing fewer
  53. sockets to be open at the same time conserves memory. Specify
  54. the maximum amount of sockets here. The valid value is from 1
  55. to 16.
  56. config LWIP_USE_ONLY_LWIP_SELECT
  57. bool "Support LWIP socket select() only (DEPRECATED)"
  58. default n
  59. help
  60. This option is deprecated. Use VFS_SUPPORT_SELECT instead, which is
  61. the inverse of this option.
  62. The virtual filesystem layer of select() redirects sockets to
  63. lwip_select() and non-socket file descriptors to their respective driver
  64. implementations. If this option is enabled then all calls of select()
  65. will be redirected to lwip_select(), therefore, select can be used
  66. for sockets only.
  67. config LWIP_SO_LINGER
  68. bool "Enable SO_LINGER processing"
  69. default n
  70. help
  71. Enabling this option allows SO_LINGER processing.
  72. l_onoff = 1,l_linger can set the timeout.
  73. If l_linger=0, When a connection is closed, TCP will terminate the connection.
  74. This means that TCP will discard any data packets stored in the socket send buffer
  75. and send an RST to the peer.
  76. If l_linger!=0,Then closesocket() calls to block the process until
  77. the remaining data packets has been sent or timed out.
  78. config LWIP_SO_REUSE
  79. bool "Enable SO_REUSEADDR option"
  80. default y
  81. help
  82. Enabling this option allows binding to a port which remains in
  83. TIME_WAIT.
  84. config LWIP_SO_REUSE_RXTOALL
  85. bool "SO_REUSEADDR copies broadcast/multicast to all matches"
  86. depends on LWIP_SO_REUSE
  87. default y
  88. help
  89. Enabling this option means that any incoming broadcast or multicast
  90. packet will be copied to all of the local sockets that it matches
  91. (may be more than one if SO_REUSEADDR is set on the socket.)
  92. This increases memory overhead as the packets need to be copied,
  93. however they are only copied per matching socket. You can safely
  94. disable it if you don't plan to receive broadcast or multicast
  95. traffic on more than one socket at a time.
  96. config LWIP_SO_RCVBUF
  97. bool "Enable SO_RCVBUF option"
  98. default n
  99. help
  100. Enabling this option allows checking for available data on a netconn.
  101. config LWIP_NETBUF_RECVINFO
  102. bool "Enable IP_PKTINFO option"
  103. default n
  104. help
  105. Enabling this option allows checking for the destination address
  106. of a received IPv4 Packet.
  107. config LWIP_IP4_FRAG
  108. bool "Enable fragment outgoing IP4 packets"
  109. default y
  110. help
  111. Enabling this option allows fragmenting outgoing IP4 packets if their size
  112. exceeds MTU.
  113. config LWIP_IP6_FRAG
  114. bool "Enable fragment outgoing IP6 packets"
  115. default y
  116. depends on LWIP_IPV6
  117. help
  118. Enabling this option allows fragmenting outgoing IP6 packets if their size
  119. exceeds MTU.
  120. config LWIP_IP4_REASSEMBLY
  121. bool "Enable reassembly incoming fragmented IP4 packets"
  122. default n
  123. help
  124. Enabling this option allows reassemblying incoming fragmented IP4 packets.
  125. config LWIP_IP6_REASSEMBLY
  126. bool "Enable reassembly incoming fragmented IP6 packets"
  127. default n
  128. depends on LWIP_IPV6
  129. help
  130. Enabling this option allows reassemblying incoming fragmented IP6 packets.
  131. config LWIP_IP_FORWARD
  132. bool "Enable IP forwarding"
  133. default n
  134. help
  135. Enabling this option allows packets forwarding across multiple interfaces.
  136. config LWIP_IPV4_NAPT
  137. bool "Enable NAT (new/experimental)"
  138. depends on LWIP_IP_FORWARD
  139. select LWIP_L2_TO_L3_COPY
  140. default n
  141. help
  142. Enabling this option allows Network Address and Port Translation.
  143. config LWIP_STATS
  144. bool "Enable LWIP statistics"
  145. default n
  146. help
  147. Enabling this option allows LWIP statistics
  148. config LWIP_ETHARP_TRUST_IP_MAC
  149. bool "Enable LWIP ARP trust"
  150. default n
  151. help
  152. Enabling this option allows ARP table to be updated.
  153. If this option is enabled, the incoming IP packets cause the ARP table to be
  154. updated with the source MAC and IP addresses supplied in the packet.
  155. You may want to disable this if you do not trust LAN peers to have the
  156. correct addresses, or as a limited approach to attempt to handle
  157. spoofing. If disabled, lwIP will need to make a new ARP request if
  158. the peer is not already in the ARP table, adding a little latency.
  159. The peer *is* in the ARP table if it requested our address before.
  160. Also notice that this slows down input processing of every IP packet!
  161. There are two known issues in real application if this feature is enabled:
  162. - The LAN peer may have bug to update the ARP table after the ARP entry is aged out.
  163. If the ARP entry on the LAN peer is aged out but failed to be updated, all IP packets
  164. sent from LWIP to the LAN peer will be dropped by LAN peer.
  165. - The LAN peer may not be trustful, the LAN peer may send IP packets to LWIP with
  166. two different MACs, but the same IP address. If this happens, the LWIP has problem
  167. to receive IP packets from LAN peer.
  168. So the recommendation is to disable this option.
  169. Here the LAN peer means the other side to which the ESP station or soft-AP is connected.
  170. config LWIP_ESP_GRATUITOUS_ARP
  171. bool "Send gratuitous ARP periodically"
  172. default y
  173. help
  174. Enable this option allows to send gratuitous ARP periodically.
  175. This option solve the compatibility issues.If the ARP table of the AP is old, and the AP
  176. doesn't send ARP request to update it's ARP table, this will lead to the STA sending IP packet fail.
  177. Thus we send gratuitous ARP periodically to let AP update it's ARP table.
  178. config LWIP_GARP_TMR_INTERVAL
  179. int "GARP timer interval(seconds)"
  180. default 60
  181. depends on LWIP_ESP_GRATUITOUS_ARP
  182. help
  183. Set the timer interval for gratuitous ARP. The default value is 60s
  184. config LWIP_TCPIP_RECVMBOX_SIZE
  185. int "TCPIP task receive mail box size"
  186. default 32
  187. range 6 64 if !LWIP_WND_SCALE
  188. range 6 1024 if LWIP_WND_SCALE
  189. help
  190. Set TCPIP task receive mail box size. Generally bigger value means higher throughput
  191. but more memory. The value should be bigger than UDP/TCP mail box size.
  192. config LWIP_DHCP_DOES_ARP_CHECK
  193. bool "DHCP: Perform ARP check on any offered address"
  194. default y
  195. help
  196. Enabling this option performs a check (via ARP request) if the offered IP address
  197. is not already in use by another host on the network.
  198. config LWIP_DHCP_RESTORE_LAST_IP
  199. bool "DHCP: Restore last IP obtained from DHCP server"
  200. default n
  201. help
  202. When this option is enabled, DHCP client tries to re-obtain last valid IP address obtained from DHCP
  203. server. Last valid DHCP configuration is stored in nvs and restored after reset/power-up. If IP is still
  204. available, there is no need for sending discovery message to DHCP server and save some time.
  205. menu "DHCP server"
  206. config LWIP_DHCPS_LEASE_UNIT
  207. int "Multiplier for lease time, in seconds"
  208. range 1 3600
  209. default 60
  210. help
  211. The DHCP server is calculating lease time multiplying the sent
  212. and received times by this number of seconds per unit.
  213. The default is 60, that equals one minute.
  214. config LWIP_DHCPS_MAX_STATION_NUM
  215. int "Maximum number of stations"
  216. range 1 64
  217. default 8
  218. help
  219. The maximum number of DHCP clients that are connected to the server.
  220. After this number is exceeded, DHCP server removes of the oldest device
  221. from it's address pool, without notification.
  222. endmenu # DHCPS
  223. menuconfig LWIP_AUTOIP
  224. bool "Enable IPV4 Link-Local Addressing (AUTOIP)"
  225. default n
  226. help
  227. Enabling this option allows the device to self-assign an address
  228. in the 169.256/16 range if none is assigned statically or via DHCP.
  229. See RFC 3927.
  230. config LWIP_AUTOIP_TRIES
  231. int "DHCP Probes before self-assigning IPv4 LL address"
  232. range 1 100
  233. default 2
  234. depends on LWIP_AUTOIP
  235. help
  236. DHCP client will send this many probes before self-assigning a
  237. link local address.
  238. From LWIP help: "This can be set as low as 1 to get an AutoIP
  239. address very quickly, but you should be prepared to handle a
  240. changing IP address when DHCP overrides AutoIP." (In the case of
  241. ESP-IDF, this means multiple SYSTEM_EVENT_STA_GOT_IP events.)
  242. config LWIP_AUTOIP_MAX_CONFLICTS
  243. int "Max IP conflicts before rate limiting"
  244. range 1 100
  245. default 9
  246. depends on LWIP_AUTOIP
  247. help
  248. If the AUTOIP functionality detects this many IP conflicts while
  249. self-assigning an address, it will go into a rate limited mode.
  250. config LWIP_AUTOIP_RATE_LIMIT_INTERVAL
  251. int "Rate limited interval (seconds)"
  252. range 5 120
  253. default 20
  254. depends on LWIP_AUTOIP
  255. help
  256. If rate limiting self-assignment requests, wait this long between
  257. each request.
  258. config LWIP_IPV6
  259. bool "Enable IPv6"
  260. default y
  261. help
  262. Enable IPv6 function. If not use IPv6 function, set this option to n.
  263. If disable LWIP_IPV6, not adding coap and asio component into the build.
  264. Please assign them to EXCLUDE_COMPONENTS in the make or cmake file in your
  265. project directory, so that the component will not be compiled.
  266. config LWIP_IPV6_AUTOCONFIG
  267. bool "Enable IPV6 stateless address autoconfiguration (SLAAC)"
  268. depends on LWIP_IPV6
  269. default n
  270. help
  271. Enabling this option allows the devices to IPV6 stateless address autoconfiguration (SLAAC).
  272. See RFC 4862.
  273. menuconfig LWIP_NETIF_LOOPBACK
  274. bool "Support per-interface loopback"
  275. default y
  276. help
  277. Enabling this option means that if a packet is sent with a destination
  278. address equal to the interface's own IP address, it will "loop back" and
  279. be received by this interface.
  280. config LWIP_LOOPBACK_MAX_PBUFS
  281. int "Max queued loopback packets per interface"
  282. range 0 16
  283. default 8
  284. depends on LWIP_NETIF_LOOPBACK
  285. help
  286. Configure the maximum number of packets which can be queued for
  287. loopback on a given interface. Reducing this number may cause packets
  288. to be dropped, but will avoid filling memory with queued packet data.
  289. menu "TCP"
  290. config LWIP_MAX_ACTIVE_TCP
  291. int "Maximum active TCP Connections"
  292. range 1 1024
  293. default 16
  294. help
  295. The maximum number of simultaneously active TCP
  296. connections. The practical maximum limit is
  297. determined by available heap memory at runtime.
  298. Changing this value by itself does not substantially
  299. change the memory usage of LWIP, except for preventing
  300. new TCP connections after the limit is reached.
  301. config LWIP_MAX_LISTENING_TCP
  302. int "Maximum listening TCP Connections"
  303. range 1 1024
  304. default 16
  305. help
  306. The maximum number of simultaneously listening TCP
  307. connections. The practical maximum limit is
  308. determined by available heap memory at runtime.
  309. Changing this value by itself does not substantially
  310. change the memory usage of LWIP, except for preventing
  311. new listening TCP connections after the limit is reached.
  312. config LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  313. bool "TCP high speed retransmissions"
  314. default y
  315. help
  316. Speed up the TCP retransmission interval. If disabled,
  317. it is recommended to change the number of SYN retransmissions to 6,
  318. and TCP initial rto time to 3000.
  319. config LWIP_TCP_MAXRTX
  320. int "Maximum number of retransmissions of data segments"
  321. default 12
  322. range 3 12
  323. help
  324. Set maximum number of retransmissions of data segments.
  325. config LWIP_TCP_SYNMAXRTX
  326. int "Maximum number of retransmissions of SYN segments"
  327. default 6 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  328. default 12 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  329. range 3 12
  330. help
  331. Set maximum number of retransmissions of SYN segments.
  332. config LWIP_TCP_MSS
  333. int "Maximum Segment Size (MSS)"
  334. default 1440
  335. range 536 1460
  336. help
  337. Set maximum segment size for TCP transmission.
  338. Can be set lower to save RAM, the default value 1460(ipv4)/1440(ipv6) will give best throughput.
  339. IPv4 TCP_MSS Range: 576 <= TCP_MSS <= 1460
  340. IPv6 TCP_MSS Range: 1220<= TCP_mSS <= 1440
  341. config LWIP_TCP_TMR_INTERVAL
  342. int "TCP timer interval(ms)"
  343. default 250
  344. help
  345. Set TCP timer interval in milliseconds.
  346. Can be used to speed connections on bad networks.
  347. A lower value will redeliver unacked packets faster.
  348. config LWIP_TCP_MSL
  349. int "Maximum segment lifetime (MSL)"
  350. default 60000
  351. help
  352. Set maximum segment lifetime in in milliseconds.
  353. config LWIP_TCP_SND_BUF_DEFAULT
  354. int "Default send buffer size"
  355. default 5744 # 4 * default MSS
  356. range 2440 65535 if !LWIP_WND_SCALE
  357. range 2440 1024000 if LWIP_WND_SCALE
  358. help
  359. Set default send buffer size for new TCP sockets.
  360. Per-socket send buffer size can be changed at runtime
  361. with lwip_setsockopt(s, TCP_SNDBUF, ...).
  362. This value must be at least 2x the MSS size, and the default
  363. is 4x the default MSS size.
  364. Setting a smaller default SNDBUF size can save some RAM, but
  365. will decrease performance.
  366. config LWIP_TCP_WND_DEFAULT
  367. int "Default receive window size"
  368. default 5744 # 4 * default MSS
  369. range 2440 65535 if !LWIP_WND_SCALE
  370. range 2440 1024000 if LWIP_WND_SCALE
  371. help
  372. Set default TCP receive window size for new TCP sockets.
  373. Per-socket receive window size can be changed at runtime
  374. with lwip_setsockopt(s, TCP_WINDOW, ...).
  375. Setting a smaller default receive window size can save some RAM,
  376. but will significantly decrease performance.
  377. config LWIP_TCP_RECVMBOX_SIZE
  378. int "Default TCP receive mail box size"
  379. default 6
  380. range 6 64 if !LWIP_WND_SCALE
  381. range 6 1024 if LWIP_WND_SCALE
  382. help
  383. Set TCP receive mail box size. Generally bigger value means higher throughput
  384. but more memory. The recommended value is: LWIP_TCP_WND_DEFAULT/TCP_MSS + 2, e.g. if
  385. LWIP_TCP_WND_DEFAULT=14360, TCP_MSS=1436, then the recommended receive mail box size is
  386. (14360/1436 + 2) = 12.
  387. TCP receive mail box is a per socket mail box, when the application receives packets
  388. from TCP socket, LWIP core firstly posts the packets to TCP receive mail box and the
  389. application then fetches the packets from mail box. It means LWIP can caches maximum
  390. LWIP_TCP_RECCVMBOX_SIZE packets for each TCP socket, so the maximum possible cached TCP packets
  391. for all TCP sockets is LWIP_TCP_RECCVMBOX_SIZE multiples the maximum TCP socket number. In other
  392. words, the bigger LWIP_TCP_RECVMBOX_SIZE means more memory.
  393. On the other hand, if the receiv mail box is too small, the mail box may be full. If the
  394. mail box is full, the LWIP drops the packets. So generally we need to make sure the TCP
  395. receive mail box is big enough to avoid packet drop between LWIP core and application.
  396. config LWIP_TCP_QUEUE_OOSEQ
  397. bool "Queue incoming out-of-order segments"
  398. default y
  399. help
  400. Queue incoming out-of-order segments for later use.
  401. Disable this option to save some RAM during TCP sessions, at the expense
  402. of increased retransmissions if segments arrive out of order.
  403. config LWIP_TCP_SACK_OUT
  404. bool "Support sending selective acknowledgements"
  405. default n
  406. help
  407. TCP will support sending selective acknowledgements (SACKs).
  408. config LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES
  409. bool "Keep TCP connections when IP changed"
  410. default n
  411. help
  412. This option is enabled when the following scenario happen:
  413. network dropped and reconnected, IP changes is like: 192.168.0.2->0.0.0.0->192.168.0.2
  414. Disable this option to keep consistent with the original LWIP code behavior.
  415. choice LWIP_TCP_OVERSIZE
  416. prompt "Pre-allocate transmit PBUF size"
  417. default LWIP_TCP_OVERSIZE_MSS
  418. help
  419. Allows enabling "oversize" allocation of TCP transmission pbufs ahead of time,
  420. which can reduce the length of pbuf chains used for transmission.
  421. This will not make a difference to sockets where Nagle's algorithm
  422. is disabled.
  423. Default value of MSS is fine for most applications, 25% MSS may save
  424. some RAM when only transmitting small amounts of data. Disabled will
  425. have worst performance and fragmentation characteristics, but uses
  426. least RAM overall.
  427. config LWIP_TCP_OVERSIZE_MSS
  428. bool "MSS"
  429. config LWIP_TCP_OVERSIZE_QUARTER_MSS
  430. bool "25% MSS"
  431. config LWIP_TCP_OVERSIZE_DISABLE
  432. bool "Disabled"
  433. endchoice
  434. config LWIP_WND_SCALE
  435. bool "Support TCP window scale"
  436. depends on SPIRAM_TRY_ALLOCATE_WIFI_LWIP
  437. default n
  438. help
  439. Enable this feature to support TCP window scaling.
  440. config LWIP_TCP_RCV_SCALE
  441. int "Set TCP receiving window scaling factor"
  442. depends on LWIP_WND_SCALE
  443. range 0 14
  444. default 0
  445. help
  446. Enable this feature to support TCP window scaling.
  447. config LWIP_TCP_RTO_TIME
  448. int "Default TCP rto time"
  449. default 3000 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  450. default 1500 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  451. help
  452. Set default TCP rto time for a reasonable initial rto.
  453. In bad network environment, recommend set value of rto time to 1500.
  454. endmenu # TCP
  455. menu "UDP"
  456. config LWIP_MAX_UDP_PCBS
  457. int "Maximum active UDP control blocks"
  458. range 1 1024
  459. default 16
  460. help
  461. The maximum number of active UDP "connections" (ie
  462. UDP sockets sending/receiving data).
  463. The practical maximum limit is determined by available
  464. heap memory at runtime.
  465. config LWIP_UDP_RECVMBOX_SIZE
  466. int "Default UDP receive mail box size"
  467. default 6
  468. range 6 64
  469. help
  470. Set UDP receive mail box size. The recommended value is 6.
  471. UDP receive mail box is a per socket mail box, when the application receives packets
  472. from UDP socket, LWIP core firstly posts the packets to UDP receive mail box and the
  473. application then fetches the packets from mail box. It means LWIP can caches maximum
  474. UDP_RECCVMBOX_SIZE packets for each UDP socket, so the maximum possible cached UDP packets
  475. for all UDP sockets is UDP_RECCVMBOX_SIZE multiples the maximum UDP socket number. In other
  476. words, the bigger UDP_RECVMBOX_SIZE means more memory.
  477. On the other hand, if the receiv mail box is too small, the mail box may be full. If the
  478. mail box is full, the LWIP drops the packets. So generally we need to make sure the UDP
  479. receive mail box is big enough to avoid packet drop between LWIP core and application.
  480. endmenu # UDP
  481. menu "Checksums"
  482. config LWIP_CHECKSUM_CHECK_IP
  483. bool "Enable LWIP IP checksums"
  484. default n
  485. help
  486. Enable checksum checking for received IP messages
  487. config LWIP_CHECKSUM_CHECK_UDP
  488. bool "Enable LWIP UDP checksums"
  489. default n
  490. help
  491. Enable checksum checking for received UDP messages
  492. config LWIP_CHECKSUM_CHECK_ICMP
  493. bool "Enable LWIP ICMP checksums"
  494. default y
  495. help
  496. Enable checksum checking for received ICMP messages
  497. endmenu # Checksums
  498. config LWIP_TCPIP_TASK_STACK_SIZE
  499. int "TCP/IP Task Stack Size"
  500. default 3072
  501. # for high log levels, tcpip_adapter API calls can end up
  502. # a few calls deep and logging there can trigger a stack overflow
  503. range 2048 65536 if LOG_DEFAULT_LEVEL < 4
  504. range 2560 65536 if LOG_DEFAULT_LEVEL >= 4
  505. help
  506. Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations.
  507. Setting this stack too small will result in stack overflow crashes.
  508. choice LWIP_TCPIP_TASK_AFFINITY
  509. prompt "TCP/IP task affinity"
  510. default LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  511. help
  512. Allows setting LwIP tasks affinity, i.e. whether the task is pinned to
  513. CPU0, pinned to CPU1, or allowed to run on any CPU.
  514. Currently this applies to "TCP/IP" task and "Ping" task.
  515. config LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  516. bool "No affinity"
  517. config LWIP_TCPIP_TASK_AFFINITY_CPU0
  518. bool "CPU0"
  519. config LWIP_TCPIP_TASK_AFFINITY_CPU1
  520. bool "CPU1"
  521. depends on !FREERTOS_UNICORE
  522. endchoice
  523. config LWIP_TCPIP_TASK_AFFINITY
  524. hex
  525. default FREERTOS_NO_AFFINITY if LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  526. default 0x0 if LWIP_TCPIP_TASK_AFFINITY_CPU0
  527. default 0x1 if LWIP_TCPIP_TASK_AFFINITY_CPU1
  528. menuconfig LWIP_PPP_SUPPORT
  529. bool "Enable PPP support (new/experimental)"
  530. default n
  531. help
  532. Enable PPP stack. Now only PPP over serial is possible.
  533. PPP over serial support is experimental and unsupported.
  534. config LWIP_PPP_ENABLE_IPV6
  535. bool "Enable IPV6 support for PPP connections (IPV6CP)"
  536. depends on LWIP_PPP_SUPPORT && LWIP_IPV6
  537. default y
  538. help
  539. Enable IPV6 support in PPP for the local link between the DTE (processor) and DCE (modem).
  540. There are some modems which do not support the IPV6 addressing in the local link.
  541. If they are requested for IPV6CP negotiation, they may time out.
  542. This would in turn fail the configuration for the whole link.
  543. If your modem is not responding correctly to PPP Phase Network, try to disable IPV6 support.
  544. config LWIP_IPV6_MEMP_NUM_ND6_QUEUE
  545. int "Max number of IPv6 packets to queue during MAC resolution"
  546. depends on LWIP_IPV6
  547. range 3 20
  548. default 3
  549. help
  550. Config max number of IPv6 packets to queue during MAC resolution.
  551. config LWIP_IPV6_ND6_NUM_NEIGHBORS
  552. int "Max number of entries in IPv6 neighbor cache"
  553. depends on LWIP_IPV6
  554. range 3 10
  555. default 5
  556. help
  557. Config max number of entries in IPv6 neighbor cache
  558. config LWIP_PPP_NOTIFY_PHASE_SUPPORT
  559. bool "Enable Notify Phase Callback"
  560. depends on LWIP_PPP_SUPPORT
  561. default n
  562. help
  563. Enable to set a callback which is called on change of the internal PPP state machine.
  564. config LWIP_PPP_PAP_SUPPORT
  565. bool "Enable PAP support"
  566. depends on LWIP_PPP_SUPPORT
  567. default n
  568. help
  569. Enable Password Authentication Protocol (PAP) support
  570. config LWIP_PPP_CHAP_SUPPORT
  571. bool "Enable CHAP support"
  572. depends on LWIP_PPP_SUPPORT
  573. default n
  574. help
  575. Enable Challenge Handshake Authentication Protocol (CHAP) support
  576. config LWIP_PPP_MSCHAP_SUPPORT
  577. bool "Enable MSCHAP support"
  578. depends on LWIP_PPP_SUPPORT
  579. default n
  580. help
  581. Enable Microsoft version of the Challenge-Handshake Authentication Protocol (MSCHAP) support
  582. config LWIP_PPP_MPPE_SUPPORT
  583. bool "Enable MPPE support"
  584. depends on LWIP_PPP_SUPPORT
  585. default n
  586. help
  587. Enable Microsoft Point-to-Point Encryption (MPPE) support
  588. config LWIP_PPP_DEBUG_ON
  589. bool "Enable PPP debug log output"
  590. depends on LWIP_PPP_SUPPORT
  591. default n
  592. help
  593. Enable PPP debug log output
  594. menuconfig LWIP_SLIP_SUPPORT
  595. bool "Enable SLIP support (new/experimental)"
  596. default n
  597. help
  598. Enable SLIP stack. Now only SLIP over serial is possible.
  599. SLIP over serial support is experimental and unsupported.
  600. config LWIP_SLIP_DEBUG_ON
  601. bool "Enable SLIP debug log output"
  602. depends on LWIP_SLIP_SUPPORT
  603. default n
  604. help
  605. Enable SLIP debug log output
  606. menu "ICMP"
  607. config LWIP_MULTICAST_PING
  608. bool "Respond to multicast pings"
  609. default n
  610. config LWIP_BROADCAST_PING
  611. bool "Respond to broadcast pings"
  612. default n
  613. endmenu # ICMP
  614. menu "LWIP RAW API"
  615. config LWIP_MAX_RAW_PCBS
  616. int "Maximum LWIP RAW PCBs"
  617. range 1 1024
  618. default 16
  619. help
  620. The maximum number of simultaneously active LWIP
  621. RAW protocol control blocks. The practical maximum
  622. limit is determined by available heap memory at runtime.
  623. endmenu # LWIP RAW API
  624. menu "SNTP"
  625. config LWIP_DHCP_MAX_NTP_SERVERS
  626. int "Maximum number of NTP servers"
  627. default 1
  628. range 1 16
  629. help
  630. Set maximum number of NTP servers used by LwIP SNTP module.
  631. First argument of sntp_setserver/sntp_setservername functions
  632. is limited to this value.
  633. config LWIP_SNTP_UPDATE_DELAY
  634. int "Request interval to update time (ms)"
  635. range 15000 4294967295
  636. default 3600000
  637. help
  638. This option allows you to set the time update period via SNTP.
  639. Default is 1 hour. Must not be below 15 seconds by specification.
  640. (SNTPv4 RFC 4330 enforces a minimum update time of 15 seconds).
  641. endmenu # SNTP
  642. config LWIP_ESP_LWIP_ASSERT
  643. bool "Enable LWIP ASSERT checks"
  644. default y
  645. depends on !COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE
  646. help
  647. Enable this option keeps LWIP assertion checks enabled.
  648. It is recommended to keep this option enabled.
  649. If asserts are disabled for the entire project, they are also disabled
  650. for LWIP and this option is ignored.
  651. menu "Hooks"
  652. choice LWIP_HOOK_TCP_ISN
  653. prompt "TCP ISN Hook"
  654. default LWIP_HOOK_TCP_ISN_DEFAULT
  655. help
  656. Enables to define a TCP ISN hook to randomize initial sequence
  657. number in TCP connection.
  658. The default TCP ISN algorithm used in IDF (standardized in RFC 6528)
  659. produces ISN by combining an MD5 of the new TCP id and a stable
  660. secret with the current time.
  661. This is because the lwIP implementation (`tcp_next_iss`) is not
  662. very strong, as it does not take into consideration any platform
  663. specific entropy source.
  664. Set to LWIP_HOOK_TCP_ISN_CUSTOM to provide custom implementation.
  665. Set to LWIP_HOOK_TCP_ISN_NONE to use lwIP implementation.
  666. config LWIP_HOOK_TCP_ISN_NONE
  667. bool "No hook declared"
  668. config LWIP_HOOK_TCP_ISN_DEFAULT
  669. bool "Default implementation"
  670. config LWIP_HOOK_TCP_ISN_CUSTOM
  671. bool "Custom implementation"
  672. endchoice
  673. choice LWIP_HOOK_IP6_ROUTE
  674. prompt "IPv6 route Hook"
  675. depends on LWIP_IPV6
  676. default LWIP_HOOK_IP6_ROUTE_NONE
  677. help
  678. Enables custom IPv6 route hook.
  679. Setting this to "default" provides weak implementation
  680. stub that could be overwritten in application code.
  681. Setting this to "custom" provides hook's declaration
  682. only and expects the application to implement it.
  683. config LWIP_HOOK_IP6_ROUTE_NONE
  684. bool "No hook declared"
  685. config LWIP_HOOK_IP6_ROUTE_DEFAULT
  686. bool "Default (weak) implementation"
  687. config LWIP_HOOK_IP6_ROUTE_CUSTOM
  688. bool "Custom implementation"
  689. endchoice
  690. choice LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE
  691. prompt "Netconn external resolve Hook"
  692. default LWIP_HOOK_NETCONN_EXT_RESOLVE_NONE
  693. help
  694. Enables custom DNS resolve hook.
  695. Setting this to "default" provides weak implementation
  696. stub that could be overwritten in application code.
  697. Setting this to "custom" provides hook's declaration
  698. only and expects the application to implement it.
  699. config LWIP_HOOK_NETCONN_EXT_RESOLVE_NONE
  700. bool "No hook declared"
  701. config LWIP_HOOK_NETCONN_EXT_RESOLVE_DEFAULT
  702. bool "Default (weak) implementation"
  703. config LWIP_HOOK_NETCONN_EXT_RESOLVE_CUSTOM
  704. bool "Custom implementation"
  705. endchoice
  706. endmenu # Hooks
  707. menuconfig LWIP_DEBUG
  708. bool "Enable LWIP Debug"
  709. default n
  710. config LWIP_NETIF_DEBUG
  711. bool "Enable netif debug messages"
  712. depends on LWIP_DEBUG
  713. default n
  714. config LWIP_PBUF_DEBUG
  715. bool "Enable pbuf debug messages"
  716. depends on LWIP_DEBUG
  717. default n
  718. config LWIP_ETHARP_DEBUG
  719. bool "Enable etharp debug messages"
  720. depends on LWIP_DEBUG
  721. default n
  722. config LWIP_API_LIB_DEBUG
  723. bool "Enable api lib debug messages"
  724. depends on LWIP_DEBUG
  725. default n
  726. config LWIP_SOCKETS_DEBUG
  727. bool "Enable socket debug messages"
  728. depends on LWIP_DEBUG
  729. default n
  730. config LWIP_IP_DEBUG
  731. bool "Enable IP debug messages"
  732. depends on LWIP_DEBUG
  733. default n
  734. config LWIP_ICMP_DEBUG
  735. bool "Enable ICMP debug messages"
  736. depends on LWIP_DEBUG
  737. default n
  738. config LWIP_DHCP_STATE_DEBUG
  739. bool "Enable DHCP state tracking"
  740. depends on LWIP_DEBUG
  741. default n
  742. config LWIP_DHCP_DEBUG
  743. bool "Enable DHCP debug messages"
  744. depends on LWIP_DEBUG
  745. default n
  746. config LWIP_IP6_DEBUG
  747. bool "Enable IP6 debug messages"
  748. depends on LWIP_DEBUG
  749. default n
  750. config LWIP_ICMP6_DEBUG
  751. bool "Enable ICMP6 debug messages"
  752. depends on LWIP_DEBUG
  753. default n
  754. config LWIP_TCP_DEBUG
  755. bool "Enable TCP debug messages"
  756. depends on LWIP_DEBUG
  757. default n
  758. endmenu