lwip: Add IPv6 improvements, NAPT fixes, and ND6 RIO support (v5.4)

[LWIP submodule changes]: git log --oneline fa4dffdf..fd432e4e
nd6: add a unit test case for nd6 rio support (esp-lwip@fd432e4e)
nd6: support route information option in router advertisement (esp-lwip@1adc49f9)
ip6: add some unit test cases for ip6 forwarding (esp-lwip@ebabd6d7)
ip6: clone the buf when forwarding a PBUF_REF packet (esp-lwip@adcd330e)
napt: Fixed NULL pointer dereference in ip_napt_enable (esp-lwip@0a44efa1)
napt: Added unit tests for napt (esp-lwip@865d7d0c)
This commit is contained in:
chendejin
2025-06-17 17:06:24 +08:00
committed by David Cermak
parent d7228f798e
commit b567f95ea4
3 changed files with 30 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

@@ -1334,6 +1334,21 @@ 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_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 ---------------