summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2014-06-24 14:49:33 +0800
committerBernard Xiong <[email protected]>2014-06-24 14:49:33 +0800
commitbf733ae2aab82c65d538a686dc9571c7afd3cfb5 (patch)
tree299d92b0b90dc10b8172185594502a5cd96a3550 /components
parentbab17630030fc08601cec40b90b74c7a36d298ca (diff)
[LwIP] Fix the MEMP_NUM_TCP_SEG issue.
Diffstat (limited to 'components')
-rw-r--r--components/net/lwip-1.4.1/src/lwipopts.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/net/lwip-1.4.1/src/lwipopts.h b/components/net/lwip-1.4.1/src/lwipopts.h
index 10cb7893a7..029a758747 100644
--- a/components/net/lwip-1.4.1/src/lwipopts.h
+++ b/components/net/lwip-1.4.1/src/lwipopts.h
@@ -117,6 +117,8 @@
/* the number of simultaneously queued TCP */
#ifdef RT_LWIP_TCP_SEG_NUM
+#define MEMP_NUM_TCP_SEG RT_LWIP_TCP_SEG_NUM
+#else
#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN
#endif
@@ -176,7 +178,7 @@
/* TCP sender buffer space (bytes). */
#ifdef RT_LWIP_TCP_SND_BUF
-#define TCP_SND_BUF RT_LWIP_TCP_SND_BUF
+#define TCP_SND_BUF RT_LWIP_TCP_SND_BUF
#else
#define TCP_SND_BUF (TCP_MSS * 2)
#endif