Merge branch 'feat/lwip/ipv6_dup_detect_tries' into 'master'

feat(lwip/config): add menuconfig option for setting LWIP_IPV6_DUP_DETECT_ATTEMPTS

Closes IDFGH-9320

See merge request espressif/esp-idf!39080
This commit is contained in:
David Čermák
2025-05-26 17:00:47 +08:00
2 changed files with 14 additions and 0 deletions

View File

@ -239,6 +239,14 @@ menu "LWIP"
help help
Set the maximum amount of pbufs waiting to be reassembled. Set the maximum amount of pbufs waiting to be reassembled.
config LWIP_IPV6_DUP_DETECT_ATTEMPTS
int "Number of duplicate address detection attempts"
range 0 7
default 1
depends on LWIP_IPV6
help
Set the number of duplicate address detection attempts.
config LWIP_IP_FORWARD config LWIP_IP_FORWARD
bool "Enable IP forwarding" bool "Enable IP forwarding"
default n default n

View File

@ -1327,6 +1327,12 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
* LWIP_ND6_NUM_DESTINATIONS: Maximum number of entries in IPv6 destinations cache * LWIP_ND6_NUM_DESTINATIONS: Maximum number of entries in IPv6 destinations cache
*/ */
#define LWIP_ND6_NUM_DESTINATIONS CONFIG_LWIP_IPV6_ND6_NUM_DESTINATIONS #define LWIP_ND6_NUM_DESTINATIONS CONFIG_LWIP_IPV6_ND6_NUM_DESTINATIONS
/**
* LWIP_IPV6_DUP_DETECT_ATTEMPTS: Number of duplicate address detection attempts
*/
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS CONFIG_LWIP_IPV6_DUP_DETECT_ATTEMPTS
/* /*
--------------------------------------- ---------------------------------------
---------- Hook options --------------- ---------- Hook options ---------------