Skip to content

Commit 271532b

Browse files
DejinChenespressif-bot
authored andcommitted
feat(lwip/config): add menuconfig to enable ND6 RIO support and set the cache size
1 parent 22ae972 commit 271532b

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

components/lwip/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,20 @@ menu "LWIP"
949949
help
950950
Maximum number of entries in IPv6 destinations cache
951951

952+
config LWIP_IPV6_ND6_ROUTE_INFO_OPTION_SUPPORT
953+
bool "Enable IPV6 ND6 route information option support"
954+
depends on LWIP_ND6
955+
default n
956+
help
957+
Enable route information option (RIO) support in IPV6 ND6
958+
959+
config LWIP_IPV6_ND6_NUM_ROUTE_INFO
960+
int "Max number of entries in IPv6 route information options cache"
961+
depends on LWIP_IPV6_ND6_ROUTE_INFO_OPTION_SUPPORT
962+
default 10
963+
help
964+
Maximum number of entries in IPv6 route information options cache
965+
952966
menuconfig LWIP_PPP_SUPPORT
953967
bool "Enable PPP support"
954968
default n

components/lwip/port/include/lwipopts.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,20 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
13331333
*/
13341334
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS CONFIG_LWIP_IPV6_DUP_DETECT_ATTEMPTS
13351335

1336+
/**
1337+
* LWIP_ND6_SUPPORT_RIO: Support route information options in IPv6 nd6 packets
1338+
*/
1339+
#ifdef CONFIG_LWIP_IPV6_ND6_ROUTE_INFO_OPTION_SUPPORT
1340+
#define LWIP_ND6_SUPPORT_RIO 1
1341+
#else
1342+
#define LWIP_ND6_SUPPORT_RIO 0
1343+
#endif
1344+
1345+
/**
1346+
* LWIP_IPV6_ND6_NUM_ROUTE_INFO: Maximum number of entries in IPv6 route information options cache
1347+
*/
1348+
#define LWIP_ND6_NUM_ROUTES CONFIG_LWIP_IPV6_ND6_NUM_ROUTE_INFO
1349+
13361350
/*
13371351
---------------------------------------
13381352
---------- Hook options ---------------

0 commit comments

Comments
 (0)