diff --git a/components/net/lwip/src/lwipopts.h b/components/net/lwip/src/lwipopts.h index 0f07cc3385..96f6d37f5e 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. */