mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
Merge branch 'backport/router_forwarding_flag_set_v51' into 'release/v5.1'
feat(lwip): support NA router farwording flag set(Backport V5.1) See merge request espressif/esp-idf!27630
This commit is contained in:
@ -113,6 +113,15 @@ menu "LWIP"
|
|||||||
This option is used to disable the Network Discovery Protocol (NDP) if it is not required.
|
This option is used to disable the Network Discovery Protocol (NDP) if it is not required.
|
||||||
Please use this option with caution, as the NDP is essential for IPv6 functionality within a local network.
|
Please use this option with caution, as the NDP is essential for IPv6 functionality within a local network.
|
||||||
|
|
||||||
|
config LWIP_FORCE_ROUTER_FORWARDING
|
||||||
|
bool "LWIP Force Router Forwarding Enable/Disable"
|
||||||
|
default n
|
||||||
|
depends on LWIP_ND6
|
||||||
|
help
|
||||||
|
This option is used to set the the router flag for the NA packets.
|
||||||
|
When enabled, the router flag in NA packet will always set to 1,
|
||||||
|
otherwise, never set router flag for NA packets.
|
||||||
|
|
||||||
config LWIP_MAX_SOCKETS
|
config LWIP_MAX_SOCKETS
|
||||||
int "Max number of open sockets"
|
int "Max number of open sockets"
|
||||||
range 1 16
|
range 1 16
|
||||||
|
Submodule components/lwip/lwip updated: 4a8286ab8b...542ba2997f
@ -1156,6 +1156,16 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
|
|||||||
#define LWIP_ND6 0
|
#define LWIP_ND6 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* LWIP_FORCE_ROUTER_FORWARDING==1: the router flag in NA packet will always set to 1,
|
||||||
|
* otherwise, never set router flag for NA packets.
|
||||||
|
*/
|
||||||
|
#ifdef CONFIG_LWIP_FORCE_ROUTER_FORWARDING
|
||||||
|
#define LWIP_FORCE_ROUTER_FORWARDING 1
|
||||||
|
#else
|
||||||
|
#define LWIP_FORCE_ROUTER_FORWARDING 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LWIP_IPV6_NUM_ADDRESSES: Number of IPv6 addresses per netif.
|
* LWIP_IPV6_NUM_ADDRESSES: Number of IPv6 addresses per netif.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user