@@ -518,7 +518,7 @@ menu "LWIP"
518
518
519
519
Can be set lower to save RAM, the default value 1460(ipv4)/1440(ipv6) will give best throughput.
520
520
IPv4 TCP_MSS Range: 576 <= TCP_MSS <= 1460
521
- IPv6 TCP_MSS Range: 1220<= TCP_mSS <= 1440
521
+ IPv6 TCP_MSS Range: 1220<= TCP_MSS <= 1440
522
522
523
523
config LWIP_TCP_TMR_INTERVAL
524
524
int "TCP timer interval(ms)"
@@ -543,7 +543,7 @@ menu "LWIP"
543
543
544
544
config LWIP_TCP_SND_BUF_DEFAULT
545
545
int "Default send buffer size"
546
- default 5744 # 4 * default MSS
546
+ default 5760 # 4 * default MSS
547
547
range 2440 65535 if !LWIP_WND_SCALE
548
548
range 2440 1024000 if LWIP_WND_SCALE
549
549
help
@@ -560,7 +560,7 @@ menu "LWIP"
560
560
561
561
config LWIP_TCP_WND_DEFAULT
562
562
int "Default receive window size"
563
- default 5744 # 4 * default MSS
563
+ default 5760 # 4 * default MSS
564
564
range 2440 65535 if !LWIP_WND_SCALE
565
565
range 2440 1024000 if LWIP_WND_SCALE
566
566
help
@@ -602,6 +602,41 @@ menu "LWIP"
602
602
Disable this option to save some RAM during TCP sessions, at the expense
603
603
of increased retransmissions if segments arrive out of order.
604
604
605
+ config LWIP_TCP_OOSEQ_TIMEOUT
606
+ int "Timeout for each pbuf queued in TCP OOSEQ, in RTOs."
607
+ depends on LWIP_TCP_QUEUE_OOSEQ
608
+ range 1 30
609
+ default 6
610
+ help
611
+ The timeout value is TCP_OOSEQ_TIMEOUT * RTO.
612
+
613
+ config LWIP_TCP_OOSEQ_MAX_PBUFS
614
+ int "The maximum number of pbufs queued on OOSEQ per pcb"
615
+ depends on LWIP_TCP_QUEUE_OOSEQ
616
+ range 0 12
617
+ default 4 if !SPIRAM_TRY_ALLOCATE_WIFI_LWIP
618
+ default 0 if SPIRAM_TRY_ALLOCATE_WIFI_LWIP
619
+ help
620
+ If LWIP_TCP_OOSEQ_MAX_PBUFS = 0, TCP will not control the number of OOSEQ pbufs.
621
+
622
+ In a poor network environment, many out-of-order tcp pbufs will be received.
623
+ These out-of-order pbufs will be cached in the TCP out-of-order queue which will
624
+ cause Wi-Fi/Ethernet fail to release RX buffer in time.
625
+ It is possible that all RX buffers for MAC layer are used by OOSEQ.
626
+
627
+ Control the number of out-of-order pbufs to ensure that the MAC layer
628
+ has enough RX buffer to receive packets.
629
+
630
+ In the Wi-Fi scenario,recommended OOSEQ PBUFS Range:
631
+ 0 <= TCP_OOSEQ_MAX_PBUFS <= CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM/(MAX_TCP_NUMBER + 1)
632
+
633
+ In the Ethernet scenario,recommended Ethernet OOSEQ PBUFS Range:
634
+ 0 <= TCP_OOSEQ_MAX_PBUFS <= CONFIG_ETH_DMA_RX_BUFFER_NUM/(MAX_TCP_NUMBER + 1)
635
+
636
+ Within the recommended value range, the larger the value, the better the performance.
637
+
638
+ MAX_TCP_NUMBER represent Maximum number of TCP connections in Wi-Fi(STA+SoftAP) and Ethernet scenario.
639
+
605
640
config LWIP_TCP_SACK_OUT
606
641
bool "Support sending selective acknowledgements"
607
642
default n
@@ -783,6 +818,23 @@ menu "LWIP"
783
818
help
784
819
Config max number of entries in IPv6 neighbor cache
785
820
821
+ config LWIP_ND6
822
+ bool "LWIP NDP6 Enable/Disable"
823
+ default y
824
+ depends on LWIP_IPV6
825
+ help
826
+ This option is used to disable the Network Discovery Protocol (NDP) if it is not required.
827
+ Please use this option with caution, as the NDP is essential for IPv6 functionality within a local network.
828
+
829
+ config LWIP_FORCE_ROUTER_FORWARDING
830
+ bool "LWIP Force Router Forwarding Enable/Disable"
831
+ default n
832
+ depends on LWIP_ND6
833
+ help
834
+ This option is used to set the the router flag for the NA packets.
835
+ When enabled, the router flag in NA packet will always set to 1,
836
+ otherwise, never set router flag for NA packets.
837
+
786
838
config LWIP_PPP_NOTIFY_PHASE_SUPPORT
787
839
bool "Enable Notify Phase Callback"
788
840
depends on LWIP_PPP_SUPPORT
0 commit comments