Merge branch 'feat/menuconfig_for_rio_enable' into 'master'

feat(lwip/config): add menuconfig option to enable ND6 RIO support and set the RIO cache size

Closes IDFGH-13888

See merge request espressif/esp-idf!39488
This commit is contained in:
David Čermák
2025-06-26 22:13:57 +08:00
3 changed files with 29 additions and 1 deletions

View File

@@ -949,6 +949,20 @@ menu "LWIP"
help help
Maximum number of entries in IPv6 destinations cache Maximum number of entries in IPv6 destinations cache
config LWIP_IPV6_ND6_ROUTE_INFO_OPTION_SUPPORT
bool "Enable IPV6 ND6 route information option support"
depends on LWIP_ND6
default n
help
Enable route information option (RIO) support in IPV6 ND6
config LWIP_IPV6_ND6_NUM_ROUTE_INFO
int "Max number of entries in IPv6 route information options cache"
depends on LWIP_IPV6_ND6_ROUTE_INFO_OPTION_SUPPORT
default 10
help
Maximum number of entries in IPv6 route information options cache
menuconfig LWIP_PPP_SUPPORT menuconfig LWIP_PPP_SUPPORT
bool "Enable PPP support" bool "Enable PPP support"
default n default n

View File

@@ -1333,6 +1333,20 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
*/ */
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS CONFIG_LWIP_IPV6_DUP_DETECT_ATTEMPTS #define LWIP_IPV6_DUP_DETECT_ATTEMPTS CONFIG_LWIP_IPV6_DUP_DETECT_ATTEMPTS
/**
* LWIP_ND6_SUPPORT_RIO: Support route information options in IPv6 nd6 packets
*/
#ifdef CONFIG_LWIP_IPV6_ND6_ROUTE_INFO_OPTION_SUPPORT
#define LWIP_ND6_SUPPORT_RIO 1
#else
#define LWIP_ND6_SUPPORT_RIO 0
#endif
/**
* LWIP_IPV6_ND6_NUM_ROUTE_INFO: Maximum number of entries in IPv6 route information options cache
*/
#define LWIP_ND6_NUM_ROUTES CONFIG_LWIP_IPV6_ND6_NUM_ROUTE_INFO
/* /*
--------------------------------------- ---------------------------------------
---------- Hook options --------------- ---------- Hook options ---------------