Skip to content

Commit

Permalink
Merge branch 'bugfix/change_default_value_for_ip_ttl_5.1' into 'relea…
Browse files Browse the repository at this point in the history
…se/v5.1'

Fix(lwip):bugfix for change default value for ip ttl 5.1

See merge request espressif/esp-idf!28400
  • Loading branch information
jack0c committed Jan 24, 2024
2 parents 01f6a7a + 8b16d9b commit c9f2c51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/lwip/Kconfig
Expand Up @@ -186,6 +186,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
Expand Down
5 changes: 5 additions & 0 deletions components/lwip/port/include/lwipopts.h
Expand Up @@ -235,6 +235,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 ----------
Expand Down

0 comments on commit c9f2c51

Please sign in to comment.