lwip: fix IPv6 ND6 queue too much pkts cause no mem issue and add menuconfig item for this params.

This commit is contained in:
ChenJianxing 2020-07-20 21:04:45 +08:00
parent 820621687c
commit c4107150ee
3 changed files with 25 additions and 1 deletions

View file

@ -546,6 +546,20 @@ menu "LWIP"
PPP over serial support is experimental and unsupported.
config LWIP_IPV6_MEMP_NUM_ND6_QUEUE
int "Max number of IPv6 packets to queue during MAC resolution"
range 3 20
default 3
help
Config max number of IPv6 packets to queue during MAC resolution.
config LWIP_IPV6_ND6_NUM_NEIGHBORS
int "Max number of entries in IPv6 neighbor cache"
range 3 10
default 5
help
Config max number of entries in IPv6 neighbor cache
config LWIP_PPP_NOTIFY_PHASE_SUPPORT
bool "Enable Notify Phase Callback"
depends on LWIP_PPP_SUPPORT

@ -1 +1 @@
Subproject commit 602d25c525cbca272b33736170575c1665613beb
Subproject commit 80d6d19a929c6db577fc44a47fdb4acffdd68933

View file

@ -678,6 +678,16 @@
*/
#define LWIP_IPV6 1
/**
* MEMP_NUM_ND6_QUEUE: Max number of IPv6 packets to queue during MAC resolution.
*/
#define MEMP_NUM_ND6_QUEUE CONFIG_LWIP_IPV6_MEMP_NUM_ND6_QUEUE
/**
* LWIP_ND6_NUM_NEIGHBORS: Number of entries in IPv6 neighbor cache
*/
#define LWIP_ND6_NUM_NEIGHBORS CONFIG_LWIP_IPV6_ND6_NUM_NEIGHBORS
/*
---------------------------------------
---------- Hook options ---------------