From 1f9a2acef9ff6615cd81605d88d0f48357d5e7f3 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Tue, 2 Jul 2019 15:24:25 +0800 Subject: [PATCH] fix bug for udp send error --- 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 787ca131..180a5bed 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -505,7 +505,9 @@ * The number of sys timeouts used by the core stack (not apps) * The default number of timeouts is calculated here for all enabled modules. */ -#if !defined LWIP_NUM_SYS_TIMEOUT_INTERNAL || defined __DOXYGEN__ +#if ESP_LWIP +#define LWIP_NUM_SYS_TIMEOUT_INTERNAL (LWIP_TCP + IP_REASSEMBLY + (LWIP_ARP + (ESP_GRATUITOUS_ARP ? 1 : 0)) + (2*LWIP_DHCP + (ESP_DHCPS_TIMER ? 1 : 0)) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_NUM_TIMEOUTS + (LWIP_IPV6 * (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD))) +#else #define LWIP_NUM_SYS_TIMEOUT_INTERNAL (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_NUM_TIMEOUTS + (LWIP_IPV6 * (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD))) #endif /**