2016-08-17 15:08:22 +00:00
|
|
|
menu "LWIP"
|
|
|
|
|
2016-11-16 08:24:41 +00:00
|
|
|
config L2_TO_L3_COPY
|
|
|
|
bool "Enable copy between Layer2 and Layer3 packets"
|
2017-03-01 05:37:36 +00:00
|
|
|
default n
|
2016-11-16 08:24:41 +00:00
|
|
|
help
|
2016-11-17 02:22:20 +00:00
|
|
|
If this feature is enabled, all traffic from layer2(WIFI Driver) will be
|
|
|
|
copied to a new buffer before sending it to layer3(LWIP stack), freeing
|
|
|
|
the layer2 buffer.
|
|
|
|
Please be notified that the total layer2 receiving buffer is fixed and
|
|
|
|
ESP32 currently supports 25 layer2 receiving buffer, when layer2 buffer
|
|
|
|
runs out of memory, then the incoming packets will be dropped in hardware.
|
|
|
|
The layer3 buffer is allocated from the heap, so the total layer3 receiving
|
|
|
|
buffer depends on the available heap size, when heap runs out of memory,
|
|
|
|
no copy will be sent to layer3 and packet will be dropped in layer2.
|
|
|
|
Please make sure you fully understand the impact of this feature before
|
|
|
|
enabling it.
|
2016-11-16 08:24:41 +00:00
|
|
|
|
2016-08-17 15:08:22 +00:00
|
|
|
config LWIP_MAX_SOCKETS
|
2016-10-28 05:35:06 +00:00
|
|
|
int "Max number of open sockets"
|
2017-02-27 06:47:48 +00:00
|
|
|
range 1 32
|
2016-11-29 08:25:17 +00:00
|
|
|
default 10
|
2016-09-28 05:24:58 +00:00
|
|
|
help
|
|
|
|
Sockets take up a certain amount of memory, and allowing fewer
|
|
|
|
sockets to be open at the same time conserves memory. Specify
|
2016-10-28 05:35:06 +00:00
|
|
|
the maximum amount of sockets here. The valid value is from 1
|
|
|
|
to 16.
|
2016-08-17 15:08:22 +00:00
|
|
|
|
2016-08-24 05:29:06 +00:00
|
|
|
config LWIP_THREAD_LOCAL_STORAGE_INDEX
|
2016-09-28 05:24:58 +00:00
|
|
|
int "Index for thread-local-storage pointer for lwip"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Specify the thread-local-storage-pointer index for lwip
|
|
|
|
use.
|
2016-08-24 05:29:06 +00:00
|
|
|
|
2016-09-20 07:36:55 +00:00
|
|
|
config LWIP_SO_REUSE
|
2016-09-28 05:24:58 +00:00
|
|
|
bool "Enable SO_REUSEADDR option"
|
2017-03-01 05:37:36 +00:00
|
|
|
default n
|
2016-09-28 05:24:58 +00:00
|
|
|
help
|
|
|
|
Enabling this option allows binding to a port which remains in
|
|
|
|
TIME_WAIT.
|
2016-09-20 07:36:55 +00:00
|
|
|
|
2017-01-05 11:17:52 +00:00
|
|
|
config LWIP_SO_RCVBUF
|
|
|
|
bool "Enable SO_RCVBUF option"
|
2017-03-01 05:37:36 +00:00
|
|
|
default n
|
2017-01-05 11:17:52 +00:00
|
|
|
help
|
|
|
|
Enabling this option allows checking for available data on a netconn.
|
|
|
|
|
2016-11-03 04:46:46 +00:00
|
|
|
config LWIP_DHCP_MAX_NTP_SERVERS
|
2017-01-17 09:44:25 +00:00
|
|
|
int "Maximum number of NTP servers"
|
|
|
|
default 1
|
|
|
|
range 1 16
|
|
|
|
help
|
|
|
|
Set maximum number of NTP servers used by LwIP SNTP module.
|
|
|
|
First argument of sntp_setserver/sntp_setservername functions
|
|
|
|
is limited to this value.
|
2016-11-03 04:46:46 +00:00
|
|
|
|
2016-12-26 07:47:20 +00:00
|
|
|
config LWIP_IP_FRAG
|
|
|
|
bool "Enable fragment outgoing IP packets"
|
2017-03-01 05:37:36 +00:00
|
|
|
default n
|
2017-01-17 09:44:25 +00:00
|
|
|
help
|
2016-12-26 07:47:20 +00:00
|
|
|
Enabling this option allows fragmenting outgoing IP packets if their size
|
|
|
|
exceeds MTU.
|
|
|
|
|
|
|
|
config LWIP_IP_REASSEMBLY
|
|
|
|
bool "Enable reassembly incoming fragmented IP packets"
|
2017-03-01 05:37:36 +00:00
|
|
|
default n
|
2017-01-17 09:44:25 +00:00
|
|
|
help
|
2016-12-26 07:47:20 +00:00
|
|
|
Enabling this option allows reassemblying incoming fragmented IP packets.
|
|
|
|
|
2017-01-17 09:44:25 +00:00
|
|
|
config TCP_MAXRTX
|
|
|
|
int "Maximum number of retransmissions of data segments"
|
|
|
|
default 12
|
|
|
|
range 3 12
|
|
|
|
help
|
|
|
|
Set maximum number of retransmissions of data segments.
|
|
|
|
|
|
|
|
config TCP_SYNMAXRTX
|
|
|
|
int "Maximum number of retransmissions of SYN segments"
|
|
|
|
default 6
|
|
|
|
range 3 12
|
|
|
|
help
|
|
|
|
Set maximum number of retransmissions of SYN segments.
|
|
|
|
|
lwip: optimize the dhcp client
1. modify the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
2. add DHCP_DOES_ARP_CHECK to menuconfig for users to specify if do a ARP check on the offered address.
If enable, one more second will be taken in obtaining IP address.
3. update wifi libs
2017-01-22 12:32:39 +00:00
|
|
|
config LWIP_DHCP_DOES_ARP_CHECK
|
|
|
|
bool "Enable an ARP check on the offered address"
|
2017-03-01 05:37:36 +00:00
|
|
|
default y
|
lwip: optimize the dhcp client
1. modify the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
2. add DHCP_DOES_ARP_CHECK to menuconfig for users to specify if do a ARP check on the offered address.
If enable, one more second will be taken in obtaining IP address.
3. update wifi libs
2017-01-22 12:32:39 +00:00
|
|
|
help
|
|
|
|
Enabling this option allows check if the offered IP address is not already
|
|
|
|
in use by another host on the network.
|
|
|
|
|
2016-08-17 15:08:22 +00:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
|