summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-12-11 19:16:23 +0800
committerBernard Xiong <[email protected]>2017-12-11 19:16:23 +0800
commit7515fb9d83c4673f5b1f679b7f4febf02efed9d5 (patch)
treee76abd1f415825b7415b2efc1076a58ff8a43268 /components/net
parentb6fef984a65bc5b49727eafed54c61432a40f34c (diff)
parent2e0c91a950ebdece533bda44a53bacde2c070346 (diff)
[lwIP] merge net/Kconfig
Diffstat (limited to 'components/net')
-rw-r--r--components/net/Kconfig4
-rw-r--r--components/net/lwip-1.4.1/src/lwipopts.h5
-rw-r--r--components/net/lwip-2.0.2/src/lwipopts.h5
3 files changed, 14 insertions, 0 deletions
diff --git a/components/net/Kconfig b/components/net/Kconfig
index e81b966093..af375e6c03 100644
--- a/components/net/Kconfig
+++ b/components/net/Kconfig
@@ -97,6 +97,10 @@ config RT_USING_LWIP
default n
endif
+ config RT_MEMP_NUM_NETCONN
+ int "the number of struct netconns"
+ default 8
+
config RT_LWIP_PBUF_NUM
int "the number of PBUF"
default 16
diff --git a/components/net/lwip-1.4.1/src/lwipopts.h b/components/net/lwip-1.4.1/src/lwipopts.h
index 0b177b5894..8b4d38961e 100644
--- a/components/net/lwip-1.4.1/src/lwipopts.h
+++ b/components/net/lwip-1.4.1/src/lwipopts.h
@@ -93,6 +93,11 @@
should be set high. */
#define MEMP_NUM_PBUF 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
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