From a5a870c683b00db31117c278beb026e72e143569 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sat, 6 Mar 2010 11:51:31 +0000 Subject: [PATCH] LWIP_NETIF_TX_SINGLE_PBUF needs TCP_OVERSIZE >= TCP_MSS for TCP --- src/core/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/init.c b/src/core/init.c index 8fe00dee..b4689aa1 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -178,6 +178,9 @@ #if LWIP_TCPIP_CORE_LOCKING_INPUT && !LWIP_TCPIP_CORE_LOCKING #error "When using LWIP_TCPIP_CORE_LOCKING_INPUT, LWIP_TCPIP_CORE_LOCKING must be enabled, too" #endif +#if LWIP_TCP && LWIP_NETIF_TX_SINGLE_PBUF && (TCP_OVERSIZE < TCP_MSS) + #error "LWIP_NETIF_TX_SINGLE_PBUF needs TCP_OVERSIZE == TCP_MSS to create single-pbuf TCP packets" +#endif /* Compile-time checks for deprecated options.