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

This commit is contained in:
xueyunfei
2023-12-27 11:04:21 +08:00
committed by Xue yun fei
parent be58e27f58
commit 8926466b4d
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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 ----------