From 5969fffcd7d3606034c814c8d04e3268d85d23c8 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Sun, 15 Apr 2012 13:04:12 +0000 Subject: [PATCH] Added RT_LWIP_PBUF_POOL_BUFSIZE to handle PBUF_POOL_BUFSIZE definition in user configuration file. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2072 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/net/lwip/src/lwipopts.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/net/lwip/src/lwipopts.h b/components/net/lwip/src/lwipopts.h index 0f07cc338..96f6d37f5 100644 --- a/components/net/lwip/src/lwipopts.h +++ b/components/net/lwip/src/lwipopts.h @@ -139,7 +139,9 @@ #endif /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ -#define PBUF_POOL_BUFSIZE 1500 +#ifdef RT_LWIP_PBUF_POOL_BUFSIZE +#define PBUF_POOL_BUFSIZE RT_LWIP_PBUF_POOL_BUFSIZE +#endif /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a link level header. */