From c1bbcf5ed3d575808d23775b58fd5244b5349113 Mon Sep 17 00:00:00 2001 From: jifl Date: Fri, 21 Sep 2007 14:39:03 +0000 Subject: [PATCH] Add further checking that MEMP_NUM_SYS_TIMEOUT is high enough --- src/core/init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/init.c b/src/core/init.c index 6a1efe17..56548346 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -129,6 +129,10 @@ #if (LWIP_TCP && ((LWIP_EVENT_API && LWIP_CALLBACK_API) || (!LWIP_EVENT_API && !LWIP_CALLBACK_API))) #error "One and exactly one of LWIP_EVENT_API and LWIP_CALLBACK_API has to be enabled in lwipopts.h" #endif +/* There must be sufficient timeouts, taking into account requirements of the subsystems. */ +#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 /* Compile-time checks for deprecated options. */