diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 3fa5456060..56691c9661 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -161,6 +161,13 @@ menu "LWIP" Enabling this option allows checking for the destination address of a received IPv4 Packet. + config LWIP_IP_DEFAULT_TTL + int "The value for Time-To-Live used by transport layers" + range 1 255 + default 64 + help + Set value for Time-To-Live used by transport layers. + config LWIP_IP4_FRAG bool "Enable fragment outgoing IP4 packets" default y diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index e588949166..fa53e68794 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -235,6 +235,11 @@ extern "C" { */ #define IP_REASS_MAX_PBUFS 10 +/** + * IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers. + */ +#define IP_DEFAULT_TTL CONFIG_LWIP_IP_DEFAULT_TTL + /* ---------------------------------- ---------- ICMP options ----------