From 92535158e7a1a6a2413b89cc22e7764f6555d468 Mon Sep 17 00:00:00 2001 From: devsaurus Date: Sun, 9 Jul 2017 12:42:37 +0200 Subject: [PATCH] components/lwip: Expose TCP_MSL in menuconfig. Merges https://github.com/espressif/esp-idf/pull/783 --- components/lwip/Kconfig | 6 ++++++ components/lwip/include/lwip/port/lwipopts.h | 5 +++++ 2 files changed, 11 insertions(+) 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. */