From f6582fd229de900a6976cf01d05f85cb2b3120e9 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 13 Feb 2012 21:38:48 +0100 Subject: [PATCH] Correctly calculate the default value of MEMP_NUM_SYS_TIMEOUT as needed --- src/include/lwip/opt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 9d8c86d6..e51f8e55 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -309,9 +309,11 @@ /** * MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts. * (requires NO_SYS==0) + * The default number of timeouts is calculated here for all enabled modules. + * The formula expects settings to be either '0' or '1'. */ #ifndef MEMP_NUM_SYS_TIMEOUT -#define MEMP_NUM_SYS_TIMEOUT 3 +#define MEMP_NUM_SYS_TIMEOUT (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0)) #endif /**