Kconfig 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  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. help
  117. Enabling this option allows fragmenting outgoing IP6 packets if their size
  118. exceeds MTU.
  119. config LWIP_IP4_REASSEMBLY
  120. bool "Enable reassembly incoming fragmented IP4 packets"
  121. default n
  122. help
  123. Enabling this option allows reassemblying incoming fragmented IP4 packets.
  124. config LWIP_IP6_REASSEMBLY
  125. bool "Enable reassembly incoming fragmented IP6 packets"
  126. default n
  127. help
  128. Enabling this option allows reassemblying incoming fragmented IP6 packets.
  129. config LWIP_IP_FORWARD
  130. bool "Enable IP forwarding"
  131. default n
  132. help
  133. Enabling this option allows packets forwarding across multiple interfaces.
  134. config LWIP_IPV4_NAPT
  135. bool "Enable NAT (new/experimental)"
  136. depends on LWIP_IP_FORWARD
  137. select LWIP_L2_TO_L3_COPY
  138. default n
  139. help
  140. Enabling this option allows Network Address and Port Translation.
  141. config LWIP_STATS
  142. bool "Enable LWIP statistics"
  143. default n
  144. help
  145. Enabling this option allows LWIP statistics
  146. config LWIP_ETHARP_TRUST_IP_MAC
  147. bool "Enable LWIP ARP trust"
  148. default n
  149. help
  150. Enabling this option allows ARP table to be updated.
  151. If this option is enabled, the incoming IP packets cause the ARP table to be
  152. updated with the source MAC and IP addresses supplied in the packet.
  153. You may want to disable this if you do not trust LAN peers to have the
  154. correct addresses, or as a limited approach to attempt to handle
  155. spoofing. If disabled, lwIP will need to make a new ARP request if
  156. the peer is not already in the ARP table, adding a little latency.
  157. The peer *is* in the ARP table if it requested our address before.
  158. Also notice that this slows down input processing of every IP packet!
  159. There are two known issues in real application if this feature is enabled:
  160. - The LAN peer may have bug to update the ARP table after the ARP entry is aged out.
  161. If the ARP entry on the LAN peer is aged out but failed to be updated, all IP packets
  162. sent from LWIP to the LAN peer will be dropped by LAN peer.
  163. - The LAN peer may not be trustful, the LAN peer may send IP packets to LWIP with
  164. two different MACs, but the same IP address. If this happens, the LWIP has problem
  165. to receive IP packets from LAN peer.
  166. So the recommendation is to disable this option.
  167. Here the LAN peer means the other side to which the ESP station or soft-AP is connected.
  168. config LWIP_ESP_GRATUITOUS_ARP
  169. bool "Send gratuitous ARP periodically"
  170. default y
  171. help
  172. Enable this option allows to send gratuitous ARP periodically.
  173. This option solve the compatibility issues.If the ARP table of the AP is old, and the AP
  174. doesn't send ARP request to update it's ARP table, this will lead to the STA sending IP packet fail.
  175. Thus we send gratuitous ARP periodically to let AP update it's ARP table.
  176. config LWIP_GARP_TMR_INTERVAL
  177. int "GARP timer interval(seconds)"
  178. default 60
  179. depends on LWIP_ESP_GRATUITOUS_ARP
  180. help
  181. Set the timer interval for gratuitous ARP. The default value is 60s
  182. config LWIP_TCPIP_RECVMBOX_SIZE
  183. int "TCPIP task receive mail box size"
  184. default 32
  185. range 6 64 if !LWIP_WND_SCALE
  186. range 6 1024 if LWIP_WND_SCALE
  187. help
  188. Set TCPIP task receive mail box size. Generally bigger value means higher throughput
  189. but more memory. The value should be bigger than UDP/TCP mail box size.
  190. config LWIP_DHCP_DOES_ARP_CHECK
  191. bool "DHCP: Perform ARP check on any offered address"
  192. default y
  193. help
  194. Enabling this option performs a check (via ARP request) if the offered IP address
  195. is not already in use by another host on the network.
  196. config LWIP_DHCP_RESTORE_LAST_IP
  197. bool "DHCP: Restore last IP obtained from DHCP server"
  198. default n
  199. help
  200. When this option is enabled, DHCP client tries to re-obtain last valid IP address obtained from DHCP
  201. server. Last valid DHCP configuration is stored in nvs and restored after reset/power-up. If IP is still
  202. available, there is no need for sending discovery message to DHCP server and save some time.
  203. menu "DHCP server"
  204. config LWIP_DHCPS_LEASE_UNIT
  205. int "Multiplier for lease time, in seconds"
  206. range 1 3600
  207. default 60
  208. help
  209. The DHCP server is calculating lease time multiplying the sent
  210. and received times by this number of seconds per unit.
  211. The default is 60, that equals one minute.
  212. config LWIP_DHCPS_MAX_STATION_NUM
  213. int "Maximum number of stations"
  214. range 1 64
  215. default 8
  216. help
  217. The maximum number of DHCP clients that are connected to the server.
  218. After this number is exceeded, DHCP server removes of the oldest device
  219. from it's address pool, without notification.
  220. endmenu # DHCPS
  221. menuconfig LWIP_AUTOIP
  222. bool "Enable IPV4 Link-Local Addressing (AUTOIP)"
  223. default n
  224. help
  225. Enabling this option allows the device to self-assign an address
  226. in the 169.256/16 range if none is assigned statically or via DHCP.
  227. See RFC 3927.
  228. config LWIP_AUTOIP_TRIES
  229. int "DHCP Probes before self-assigning IPv4 LL address"
  230. range 1 100
  231. default 2
  232. depends on LWIP_AUTOIP
  233. help
  234. DHCP client will send this many probes before self-assigning a
  235. link local address.
  236. From LWIP help: "This can be set as low as 1 to get an AutoIP
  237. address very quickly, but you should be prepared to handle a
  238. changing IP address when DHCP overrides AutoIP." (In the case of
  239. ESP-IDF, this means multiple SYSTEM_EVENT_STA_GOT_IP events.)
  240. config LWIP_AUTOIP_MAX_CONFLICTS
  241. int "Max IP conflicts before rate limiting"
  242. range 1 100
  243. default 9
  244. depends on LWIP_AUTOIP
  245. help
  246. If the AUTOIP functionality detects this many IP conflicts while
  247. self-assigning an address, it will go into a rate limited mode.
  248. config LWIP_AUTOIP_RATE_LIMIT_INTERVAL
  249. int "Rate limited interval (seconds)"
  250. range 5 120
  251. default 20
  252. depends on LWIP_AUTOIP
  253. help
  254. If rate limiting self-assignment requests, wait this long between
  255. each request.
  256. config LWIP_IPV6_AUTOCONFIG
  257. bool "Enable IPV6 stateless address autoconfiguration"
  258. default n
  259. help
  260. Enabling this option allows the devices to IPV6 stateless address autoconfiguration.
  261. See RFC 4862.
  262. menuconfig LWIP_NETIF_LOOPBACK
  263. bool "Support per-interface loopback"
  264. default y
  265. help
  266. Enabling this option means that if a packet is sent with a destination
  267. address equal to the interface's own IP address, it will "loop back" and
  268. be received by this interface.
  269. config LWIP_LOOPBACK_MAX_PBUFS
  270. int "Max queued loopback packets per interface"
  271. range 0 16
  272. default 8
  273. depends on LWIP_NETIF_LOOPBACK
  274. help
  275. Configure the maximum number of packets which can be queued for
  276. loopback on a given interface. Reducing this number may cause packets
  277. to be dropped, but will avoid filling memory with queued packet data.
  278. menu "TCP"
  279. config LWIP_TCP_ISN_HOOK
  280. bool "Enable TCP ISN Hook"
  281. default y
  282. help
  283. Enables custom TCP ISN hook to randomize initial sequence
  284. number in TCP connection. This is recommended as default
  285. lwIP implementation (`tcp_next_iss`) is not very strong,
  286. as it does not take into consideration any platform
  287. specific entropy source.
  288. config LWIP_MAX_ACTIVE_TCP
  289. int "Maximum active TCP Connections"
  290. range 1 1024
  291. default 16
  292. help
  293. The maximum number of simultaneously active TCP
  294. connections. The practical maximum limit is
  295. determined by available heap memory at runtime.
  296. Changing this value by itself does not substantially
  297. change the memory usage of LWIP, except for preventing
  298. new TCP connections after the limit is reached.
  299. config LWIP_MAX_LISTENING_TCP
  300. int "Maximum listening TCP Connections"
  301. range 1 1024
  302. default 16
  303. help
  304. The maximum number of simultaneously listening TCP
  305. connections. The practical maximum limit is
  306. determined by available heap memory at runtime.
  307. Changing this value by itself does not substantially
  308. change the memory usage of LWIP, except for preventing
  309. new listening TCP connections after the limit is reached.
  310. config LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  311. bool "TCP high speed retransmissions"
  312. default y
  313. help
  314. Speed up the TCP retransmission interval. If disabled,
  315. it is recommended to change the number of SYN retransmissions to 6,
  316. and TCP initial rto time to 3000.
  317. config LWIP_TCP_MAXRTX
  318. int "Maximum number of retransmissions of data segments"
  319. default 12
  320. range 3 12
  321. help
  322. Set maximum number of retransmissions of data segments.
  323. config LWIP_TCP_SYNMAXRTX
  324. int "Maximum number of retransmissions of SYN segments"
  325. default 6 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  326. default 12 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  327. range 3 12
  328. help
  329. Set maximum number of retransmissions of SYN segments.
  330. config LWIP_TCP_MSS
  331. int "Maximum Segment Size (MSS)"
  332. default 1440
  333. range 536 1460
  334. help
  335. Set maximum segment size for TCP transmission.
  336. Can be set lower to save RAM, the default value 1460(ipv4)/1440(ipv6) will give best throughput.
  337. IPv4 TCP_MSS Range: 576 <= TCP_MSS <= 1460
  338. IPv6 TCP_MSS Range: 1220<= TCP_mSS <= 1440
  339. config LWIP_TCP_TMR_INTERVAL
  340. int "TCP timer interval(ms)"
  341. default 250
  342. help
  343. Set TCP timer interval in milliseconds.
  344. Can be used to speed connections on bad networks.
  345. A lower value will redeliver unacked packets faster.
  346. config LWIP_TCP_MSL
  347. int "Maximum segment lifetime (MSL)"
  348. default 60000
  349. help
  350. Set maximum segment lifetime in in milliseconds.
  351. config LWIP_TCP_SND_BUF_DEFAULT
  352. int "Default send buffer size"
  353. default 5744 # 4 * default MSS
  354. range 2440 65535 if !LWIP_WND_SCALE
  355. range 2440 1024000 if LWIP_WND_SCALE
  356. help
  357. Set default send buffer size for new TCP sockets.
  358. Per-socket send buffer size can be changed at runtime
  359. with lwip_setsockopt(s, TCP_SNDBUF, ...).
  360. This value must be at least 2x the MSS size, and the default
  361. is 4x the default MSS size.
  362. Setting a smaller default SNDBUF size can save some RAM, but
  363. will decrease performance.
  364. config LWIP_TCP_WND_DEFAULT
  365. int "Default receive window size"
  366. default 5744 # 4 * default MSS
  367. range 2440 65535 if !LWIP_WND_SCALE
  368. range 2440 1024000 if LWIP_WND_SCALE
  369. help
  370. Set default TCP receive window size for new TCP sockets.
  371. Per-socket receive window size can be changed at runtime
  372. with lwip_setsockopt(s, TCP_WINDOW, ...).
  373. Setting a smaller default receive window size can save some RAM,
  374. but will significantly decrease performance.
  375. config LWIP_TCP_RECVMBOX_SIZE
  376. int "Default TCP receive mail box size"
  377. default 6
  378. range 6 64 if !LWIP_WND_SCALE
  379. range 6 1024 if LWIP_WND_SCALE
  380. help
  381. Set TCP receive mail box size. Generally bigger value means higher throughput
  382. but more memory. The recommended value is: LWIP_TCP_WND_DEFAULT/TCP_MSS + 2, e.g. if
  383. LWIP_TCP_WND_DEFAULT=14360, TCP_MSS=1436, then the recommended receive mail box size is
  384. (14360/1436 + 2) = 12.
  385. TCP receive mail box is a per socket mail box, when the application receives packets
  386. from TCP socket, LWIP core firstly posts the packets to TCP receive mail box and the
  387. application then fetches the packets from mail box. It means LWIP can caches maximum
  388. LWIP_TCP_RECCVMBOX_SIZE packets for each TCP socket, so the maximum possible cached TCP packets
  389. for all TCP sockets is LWIP_TCP_RECCVMBOX_SIZE multiples the maximum TCP socket number. In other
  390. words, the bigger LWIP_TCP_RECVMBOX_SIZE means more memory.
  391. On the other hand, if the receiv mail box is too small, the mail box may be full. If the
  392. mail box is full, the LWIP drops the packets. So generally we need to make sure the TCP
  393. receive mail box is big enough to avoid packet drop between LWIP core and application.
  394. config LWIP_TCP_QUEUE_OOSEQ
  395. bool "Queue incoming out-of-order segments"
  396. default y
  397. help
  398. Queue incoming out-of-order segments for later use.
  399. Disable this option to save some RAM during TCP sessions, at the expense
  400. of increased retransmissions if segments arrive out of order.
  401. config LWIP_TCP_SACK_OUT
  402. bool "Support sending selective acknowledgements"
  403. default n
  404. help
  405. TCP will support sending selective acknowledgements (SACKs).
  406. config LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES
  407. bool "Keep TCP connections when IP changed"
  408. default n
  409. help
  410. This option is enabled when the following scenario happen:
  411. network dropped and reconnected, IP changes is like: 192.168.0.2->0.0.0.0->192.168.0.2
  412. Disable this option to keep consistent with the original LWIP code behavior.
  413. choice LWIP_TCP_OVERSIZE
  414. prompt "Pre-allocate transmit PBUF size"
  415. default LWIP_TCP_OVERSIZE_MSS
  416. help
  417. Allows enabling "oversize" allocation of TCP transmission pbufs ahead of time,
  418. which can reduce the length of pbuf chains used for transmission.
  419. This will not make a difference to sockets where Nagle's algorithm
  420. is disabled.
  421. Default value of MSS is fine for most applications, 25% MSS may save
  422. some RAM when only transmitting small amounts of data. Disabled will
  423. have worst performance and fragmentation characteristics, but uses
  424. least RAM overall.
  425. config LWIP_TCP_OVERSIZE_MSS
  426. bool "MSS"
  427. config LWIP_TCP_OVERSIZE_QUARTER_MSS
  428. bool "25% MSS"
  429. config LWIP_TCP_OVERSIZE_DISABLE
  430. bool "Disabled"
  431. endchoice
  432. config LWIP_WND_SCALE
  433. bool "Support TCP window scale"
  434. depends on SPIRAM_TRY_ALLOCATE_WIFI_LWIP
  435. default n
  436. help
  437. Enable this feature to support TCP window scaling.
  438. config LWIP_TCP_RCV_SCALE
  439. int "Set TCP receiving window scaling factor"
  440. depends on LWIP_WND_SCALE
  441. range 0 14
  442. default 0
  443. help
  444. Enable this feature to support TCP window scaling.
  445. config LWIP_TCP_RTO_TIME
  446. int "Default TCP rto time"
  447. default 3000 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  448. default 1500 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
  449. help
  450. Set default TCP rto time for a reasonable initial rto.
  451. In bad network environment, recommend set value of rto time to 1500.
  452. endmenu # TCP
  453. menu "UDP"
  454. config LWIP_MAX_UDP_PCBS
  455. int "Maximum active UDP control blocks"
  456. range 1 1024
  457. default 16
  458. help
  459. The maximum number of active UDP "connections" (ie
  460. UDP sockets sending/receiving data).
  461. The practical maximum limit is determined by available
  462. heap memory at runtime.
  463. config LWIP_UDP_RECVMBOX_SIZE
  464. int "Default UDP receive mail box size"
  465. default 6
  466. range 6 64
  467. help
  468. Set UDP receive mail box size. The recommended value is 6.
  469. UDP receive mail box is a per socket mail box, when the application receives packets
  470. from UDP socket, LWIP core firstly posts the packets to UDP receive mail box and the
  471. application then fetches the packets from mail box. It means LWIP can caches maximum
  472. UDP_RECCVMBOX_SIZE packets for each UDP socket, so the maximum possible cached UDP packets
  473. for all UDP sockets is UDP_RECCVMBOX_SIZE multiples the maximum UDP socket number. In other
  474. words, the bigger UDP_RECVMBOX_SIZE means more memory.
  475. On the other hand, if the receiv mail box is too small, the mail box may be full. If the
  476. mail box is full, the LWIP drops the packets. So generally we need to make sure the UDP
  477. receive mail box is big enough to avoid packet drop between LWIP core and application.
  478. endmenu # UDP
  479. config LWIP_TCPIP_TASK_STACK_SIZE
  480. int "TCP/IP Task Stack Size"
  481. default 3072
  482. # for high log levels, tcpip_adapter API calls can end up
  483. # a few calls deep and logging there can trigger a stack overflow
  484. range 2048 65536 if LOG_DEFAULT_LEVEL < 4
  485. range 2560 65536 if LOG_DEFAULT_LEVEL >= 4
  486. help
  487. Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations.
  488. Setting this stack too small will result in stack overflow crashes.
  489. choice LWIP_TCPIP_TASK_AFFINITY
  490. prompt "TCP/IP task affinity"
  491. default LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  492. help
  493. Allows setting LwIP tasks affinity, i.e. whether the task is pinned to
  494. CPU0, pinned to CPU1, or allowed to run on any CPU.
  495. Currently this applies to "TCP/IP" task and "Ping" task.
  496. config LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  497. bool "No affinity"
  498. config LWIP_TCPIP_TASK_AFFINITY_CPU0
  499. bool "CPU0"
  500. config LWIP_TCPIP_TASK_AFFINITY_CPU1
  501. bool "CPU1"
  502. depends on !FREERTOS_UNICORE
  503. endchoice
  504. config LWIP_TCPIP_TASK_AFFINITY
  505. hex
  506. default FREERTOS_NO_AFFINITY if LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY
  507. default 0x0 if LWIP_TCPIP_TASK_AFFINITY_CPU0
  508. default 0x1 if LWIP_TCPIP_TASK_AFFINITY_CPU1
  509. menuconfig LWIP_PPP_SUPPORT
  510. bool "Enable PPP support (new/experimental)"
  511. default n
  512. help
  513. Enable PPP stack. Now only PPP over serial is possible.
  514. PPP over serial support is experimental and unsupported.
  515. config LWIP_PPP_ENABLE_IPV6
  516. bool "Enable IPV6 support for PPP connections (IPV6CP)"
  517. depends on LWIP_PPP_SUPPORT
  518. default y
  519. help
  520. Enable IPV6 support in PPP for the local link between the DTE (processor) and DCE (modem).
  521. There are some modems which do not support the IPV6 addressing in the local link.
  522. If they are requested for IPV6CP negotiation, they may time out.
  523. This would in turn fail the configuration for the whole link.
  524. If your modem is not responding correctly to PPP Phase Network, try to disable IPV6 support.
  525. config LWIP_IPV6_MEMP_NUM_ND6_QUEUE
  526. int "Max number of IPv6 packets to queue during MAC resolution"
  527. range 3 20
  528. default 3
  529. help
  530. Config max number of IPv6 packets to queue during MAC resolution.
  531. config LWIP_IPV6_ND6_NUM_NEIGHBORS
  532. int "Max number of entries in IPv6 neighbor cache"
  533. range 3 10
  534. default 5
  535. help
  536. Config max number of entries in IPv6 neighbor cache
  537. config LWIP_PPP_NOTIFY_PHASE_SUPPORT
  538. bool "Enable Notify Phase Callback"
  539. depends on LWIP_PPP_SUPPORT
  540. default n
  541. help
  542. Enable to set a callback which is called on change of the internal PPP state machine.
  543. config LWIP_PPP_PAP_SUPPORT
  544. bool "Enable PAP support"
  545. depends on LWIP_PPP_SUPPORT
  546. default n
  547. help
  548. Enable Password Authentication Protocol (PAP) support
  549. config LWIP_PPP_CHAP_SUPPORT
  550. bool "Enable CHAP support"
  551. depends on LWIP_PPP_SUPPORT
  552. default n
  553. help
  554. Enable Challenge Handshake Authentication Protocol (CHAP) support
  555. config LWIP_PPP_MSCHAP_SUPPORT
  556. bool "Enable MSCHAP support"
  557. depends on LWIP_PPP_SUPPORT
  558. default n
  559. help
  560. Enable Microsoft version of the Challenge-Handshake Authentication Protocol (MSCHAP) support
  561. config LWIP_PPP_MPPE_SUPPORT
  562. bool "Enable MPPE support"
  563. depends on LWIP_PPP_SUPPORT
  564. default n
  565. help
  566. Enable Microsoft Point-to-Point Encryption (MPPE) support
  567. config LWIP_PPP_DEBUG_ON
  568. bool "Enable PPP debug log output"
  569. depends on LWIP_PPP_SUPPORT
  570. default n
  571. help
  572. Enable PPP debug log output
  573. menu "ICMP"
  574. config LWIP_MULTICAST_PING
  575. bool "Respond to multicast pings"
  576. default n
  577. config LWIP_BROADCAST_PING
  578. bool "Respond to broadcast pings"
  579. default n
  580. endmenu # ICMP
  581. menu "LWIP RAW API"
  582. config LWIP_MAX_RAW_PCBS
  583. int "Maximum LWIP RAW PCBs"
  584. range 1 1024
  585. default 16
  586. help
  587. The maximum number of simultaneously active LWIP
  588. RAW protocol control blocks. The practical maximum
  589. limit is determined by available heap memory at runtime.
  590. endmenu # LWIP RAW API
  591. menu "SNTP"
  592. config LWIP_DHCP_MAX_NTP_SERVERS
  593. int "Maximum number of NTP servers"
  594. default 1
  595. range 1 16
  596. help
  597. Set maximum number of NTP servers used by LwIP SNTP module.
  598. First argument of sntp_setserver/sntp_setservername functions
  599. is limited to this value.
  600. config LWIP_SNTP_UPDATE_DELAY
  601. int "Request interval to update time (ms)"
  602. range 15000 4294967295
  603. default 3600000
  604. help
  605. This option allows you to set the time update period via SNTP.
  606. Default is 1 hour. Must not be below 15 seconds by specification.
  607. (SNTPv4 RFC 4330 enforces a minimum update time of 15 seconds).
  608. endmenu # SNTP
  609. config LWIP_ESP_LWIP_ASSERT
  610. bool "Enable LWIP ASSERT checks"
  611. default y
  612. help
  613. Enable this option allows lwip to check assert.
  614. It is recommended to keep it open, do not close it.
  615. endmenu