From d8d2991692eb302e8b1f907cbf9cf03457c776ec Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Wed, 8 Jan 2020 17:05:57 +0800 Subject: [PATCH] feature for add tcp sack --- components/lwip/Kconfig | 6 ++++++ components/lwip/port/esp32/include/lwipopts.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index e1c3b70d2..92c19870a 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -400,6 +400,12 @@ menu "LWIP" Disable this option to save some RAM during TCP sessions, at the expense of increased retransmissions if segments arrive out of order. + config LWIP_TCP_SACK_OUT + bool "Support sending selective acknowledgements" + default n + help + TCP will support sending selective acknowledgements (SACKs). + config LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES bool "Keep TCP connections when IP changed" default n diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index 17086ddd3..673ece01c 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -311,6 +311,11 @@ */ #define TCP_QUEUE_OOSEQ CONFIG_LWIP_TCP_QUEUE_OOSEQ +/** + * LWIP_TCP_SACK_OUT==1: TCP will support sending selective acknowledgements (SACKs). + */ +#define LWIP_TCP_SACK_OUT CONFIG_LWIP_TCP_SACK_OUT + /** * ESP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES==1: Keep TCP connection when IP changed * scenario happens: 192.168.0.2 -> 0.0.0.0 -> 192.168.0.2 or 192.168.0.2 -> 0.0.0.0