diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 6204816fd4..21d4ee53ca 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -196,6 +196,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/include/lwipopts.h b/components/lwip/port/include/lwipopts.h index 55ce6558f8..dc20710a5b 100644 --- a/components/lwip/port/include/lwipopts.h +++ b/components/lwip/port/include/lwipopts.h @@ -248,6 +248,11 @@ extern "C" { */ #define IP_REASS_MAX_PBUFS CONFIG_LWIP_IP_REASS_MAX_PBUFS +/** + * IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers. + */ +#define IP_DEFAULT_TTL CONFIG_LWIP_IP_DEFAULT_TTL + /* ---------------------------------- ---------- ICMP options ----------