diff options
| author | SummerGift <[email protected]> | 2017-12-09 16:03:46 +0800 |
|---|---|---|
| committer | SummerGift <[email protected]> | 2017-12-09 16:04:38 +0800 |
| commit | 2de2d6e43335e4f209423d7146f5e1fd2a1b71e9 (patch) | |
| tree | 4e998f28e41028d04fd1a07762342d2f164d7bc7 /components | |
| parent | 870c1fd15ce8e86e12035c00c9e304750f081e88 (diff) | |
[lwip]:add MEMP_NUM_NETCONN option for lwip
Diffstat (limited to 'components')
| -rw-r--r-- | components/net/Kconfig | 4 | ||||
| -rw-r--r-- | components/net/lwip-2.0.2/src/lwipopts.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/components/net/Kconfig b/components/net/Kconfig index 3220d5e786..f86e7416eb 100644 --- a/components/net/Kconfig +++ b/components/net/Kconfig @@ -98,6 +98,10 @@ config RT_USING_LWIP config RT_LWIP_PPPOS bool "PPPoS protocol" default n + + config RT_MEMP_NUM_NETCONN + int "the number of struct netconns" + default 8 config RT_LWIP_PBUF_NUM int "the number of PBUF" diff --git a/components/net/lwip-2.0.2/src/lwipopts.h b/components/net/lwip-2.0.2/src/lwipopts.h index 76e3a0f948..988b9668db 100644 --- a/components/net/lwip-2.0.2/src/lwipopts.h +++ b/components/net/lwip-2.0.2/src/lwipopts.h @@ -105,6 +105,11 @@ should be set high. */ #define MEMP_NUM_PBUF 32 //16 +/* the number of struct netconns */ +#ifdef RT_MEMP_NUM_NETCONN +#define MEMP_NUM_NETCONN RT_MEMP_NUM_NETCONN +#endif + /* the number of UDP protocol control blocks. One per active RAW "connection". */ #ifdef RT_LWIP_RAW_PCB_NUM #define MEMP_NUM_RAW_PCB RT_LWIP_RAW_PCB_NUM |
