Skip to content

Commit 2b16bd7

Browse files
committed
Merge branch 'bugfix/change_default_value_for_ip_ttl_5.0' into 'release/v5.0'
Fix(lwip):bugfix for change default value for ip ttl 5.0 See merge request espressif/esp-idf!28399
2 parents d4693f8 + 8926466 commit 2b16bd7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

components/lwip/Kconfig

+7
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ menu "LWIP"
161161
Enabling this option allows checking for the destination address
162162
of a received IPv4 Packet.
163163

164+
config LWIP_IP_DEFAULT_TTL
165+
int "The value for Time-To-Live used by transport layers"
166+
range 1 255
167+
default 64
168+
help
169+
Set value for Time-To-Live used by transport layers.
170+
164171
config LWIP_IP4_FRAG
165172
bool "Enable fragment outgoing IP4 packets"
166173
default y

components/lwip/port/esp32/include/lwipopts.h

+5
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ extern "C" {
235235
*/
236236
#define IP_REASS_MAX_PBUFS 10
237237

238+
/**
239+
* IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers.
240+
*/
241+
#define IP_DEFAULT_TTL CONFIG_LWIP_IP_DEFAULT_TTL
242+
238243
/*
239244
----------------------------------
240245
---------- ICMP options ----------

0 commit comments

Comments
 (0)