From 007ab69777219848dc0d205ec9bb9594ec1eb60b Mon Sep 17 00:00:00 2001 From: sg Date: Fri, 6 Mar 2015 22:09:33 +0100 Subject: [PATCH] Fixed default LWIP_SUPPORT_CUSTOM_PBUF setting for IPv6/frag --- src/include/lwip/pbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/lwip/pbuf.h b/src/include/lwip/pbuf.h index bc6eceb3..8e9240e9 100644 --- a/src/include/lwip/pbuf.h +++ b/src/include/lwip/pbuf.h @@ -43,7 +43,7 @@ extern "C" { /** Currently, the pbuf_custom code is only needed for one specific configuration * of IP_FRAG */ #ifndef LWIP_SUPPORT_CUSTOM_PBUF -#define LWIP_SUPPORT_CUSTOM_PBUF (IP_FRAG && !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF) +#define LWIP_SUPPORT_CUSTOM_PBUF ((IP_FRAG && !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF) || (LWIP_IPV6 && LWIP_IPV6_FRAG)) #endif /* @todo: We need a mechanism to prevent wasting memory in every pbuf