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