Kconfig 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. menu "ESP NETIF Adapter"
  2. config ESP_NETIF_IP_LOST_TIMER_INTERVAL
  3. int "IP Address lost timer interval (seconds)"
  4. range 0 65535
  5. default 120
  6. help
  7. The value of 0 indicates the IP lost timer is disabled, otherwise the timer is enabled.
  8. The IP address may be lost because of some reasons, e.g. when the station disconnects
  9. from soft-AP, or when DHCP IP renew fails etc. If the IP lost timer is enabled, it will
  10. be started everytime the IP is lost. Event SYSTEM_EVENT_STA_LOST_IP will be raised if
  11. the timer expires. The IP lost timer is stopped if the station get the IP again before
  12. the timer expires.
  13. choice ESP_NETIF_USE_TCPIP_STACK_LIB
  14. prompt "TCP/IP Stack Library"
  15. default ESP_NETIF_TCPIP_LWIP
  16. help
  17. Choose the TCP/IP Stack to work, for example, LwIP, uIP, etc.
  18. config ESP_NETIF_TCPIP_LWIP
  19. bool "LwIP"
  20. select ESP_NETIF_USES_TCPIP_WITH_BSD_API
  21. depends on LWIP_ENABLE
  22. help
  23. lwIP is a small independent implementation of the TCP/IP protocol suite.
  24. config ESP_NETIF_LOOPBACK
  25. bool "Loopback"
  26. help
  27. Dummy implementation of esp-netif functionality which connects driver transmit
  28. to receive function. This option is for testing purpose only
  29. endchoice
  30. config ESP_NETIF_USES_TCPIP_WITH_BSD_API
  31. bool # Set to true if the chosen TCP/IP stack provides BSD socket API
  32. config ESP_NETIF_RECEIVE_REPORT_ERRORS
  33. bool "Use esp_err_t to report errors from esp_netif_receive"
  34. default n
  35. help
  36. Enable if esp_netif_receive() should return error code. This is useful to inform upper layers
  37. that packet input to TCP/IP stack failed, so the upper layers could implement flow control.
  38. This option is disabled by default due to backward compatibility and will be enabled in v6.0 (IDF-7194)
  39. config ESP_NETIF_L2_TAP
  40. bool "Enable netif L2 TAP support"
  41. select ETH_TRANSMIT_MUTEX
  42. help
  43. A user program can read/write link layer (L2) frames from/to ESP TAP device.
  44. The ESP TAP device can be currently associated only with Ethernet physical interfaces.
  45. config ESP_NETIF_L2_TAP_MAX_FDS
  46. depends on ESP_NETIF_L2_TAP
  47. int "Maximum number of opened L2 TAP File descriptors"
  48. range 1 10
  49. default 5
  50. help
  51. Maximum number of opened File descriptors (FD's) associated with ESP TAP device. ESP TAP FD's take up
  52. a certain amount of memory, and allowing fewer FD's to be opened at the same time conserves memory.
  53. config ESP_NETIF_L2_TAP_RX_QUEUE_SIZE
  54. depends on ESP_NETIF_L2_TAP
  55. int "Size of L2 TAP Rx queue"
  56. range 1 100
  57. default 20
  58. help
  59. Maximum number of frames queued in opened File descriptor. Once the queue is full, the newly arriving
  60. frames are dropped until the queue has enough room to accept incoming traffic (Tail Drop queue
  61. management).
  62. config ESP_NETIF_BRIDGE_EN
  63. depends on ESP_NETIF_TCPIP_LWIP
  64. bool "Enable LwIP IEEE 802.1D bridge"
  65. default n
  66. help
  67. Enable LwIP IEEE 802.1D bridge support in ESP-NETIF. Note that "Number of clients store data in netif"
  68. (LWIP_NUM_NETIF_CLIENT_DATA) option needs to be properly configured to be LwIP bridge avaiable!
  69. endmenu