From 282e9ead17c3c70bb46a6da94f5805ae5c147a82 Mon Sep 17 00:00:00 2001 From: fbernon Date: Fri, 12 Oct 2007 06:50:16 +0000 Subject: [PATCH] Minor change (sanity check for MEMP_NUM_REASSDATA only done if IP_REASSEMBLY=1) --- src/core/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/init.c b/src/core/init.c index 8c2d9efd..9d1e97e6 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -139,7 +139,7 @@ #if ((NO_SYS==0) && (MEMP_NUM_SYS_TIMEOUT < (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_PPP))) #error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts" #endif -#if (MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS) +#if (IP_REASSEMBLY && (MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS)) #error "MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS doesn't make sense since each struct ip_reassdata must hold 2 pbufs at least!" #endif