diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index fa604389e..65c76017c 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -93,6 +93,12 @@ config TCP_MSS Can be set lower to save RAM, the default value 1436 will give best throughput. +config TCP_MSL + int "Maximum segment lifetime (MSL)" + default 60000 + help + Set maximum segment lifetime in in milliseconds. + config TCP_SND_BUF_DEFAULT int "Default send buffer size" default 5744 # 4 * default MSS diff --git a/components/lwip/include/lwip/port/lwipopts.h b/components/lwip/include/lwip/port/lwipopts.h index 61a99382f..49c2174bf 100644 --- a/components/lwip/include/lwip/port/lwipopts.h +++ b/components/lwip/include/lwip/port/lwipopts.h @@ -294,6 +294,11 @@ */ #define TCP_MSS CONFIG_TCP_MSS +/** + * TCP_MSL: The maximum segment lifetime in milliseconds + */ +#define TCP_MSL CONFIG_TCP_MSL + /** * TCP_MAXRTX: Maximum number of retransmissions of data segments. */