From c41508cc8d91b1400d72197a3807851bb5830377 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 11 Oct 2007 19:26:04 +0000 Subject: [PATCH] Added check that MEMP_NUM_REASSDATA is bigger than IP_REASS_MAX_PBUFS (because each MEMP_NUM_REASSDATA has one pbuf at least!) --- src/core/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/init.c b/src/core/init.c index d121f133..8c2d9efd 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -139,6 +139,9 @@ #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) + #error "MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS doesn't make sense since each struct ip_reassdata must hold 2 pbufs at least!" +#endif /* Compile-time checks for deprecated options. */