From bc6a98c12cf3a1840e693a375384aee1ff1e10f2 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Tue, 16 Mar 2021 15:03:09 +0800 Subject: [PATCH] backport bugfix lwip for v4.0 --- components/lwip/lwip | 2 +- components/lwip/port/esp32/include/lwipopts.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/lwip/lwip b/components/lwip/lwip index 7285b846a2..2c9c531f0a 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit 7285b846a22ebd02377bd9c67e7f9eaaf842492b +Subproject commit 2c9c531f0a7e0ee536db9de4f9dc54e453712087 diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index aedc7d30c7..2bce2a7707 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -830,6 +830,7 @@ u32_t lwip_hook_tcp_isn(const struct ip_addr *local_ip, u16_t local_port, #define ESP_SOCKET 1 #define ESP_LWIP_SELECT 1 #define ESP_LWIP_LOCK 1 +#define ESP_THREAD_PROTECTION 1 #ifdef CONFIG_LWIP_IPV6_AUTOCONFIG #define ESP_IPV6_AUTOCONFIG CONFIG_LWIP_IPV6_AUTOCONFIG @@ -855,6 +856,7 @@ u32_t lwip_hook_tcp_isn(const struct ip_addr *local_ip, u16_t local_port, * DHCP_DEBUG: Enable debugging in dhcp.c. */ #define DHCP_DEBUG LWIP_DBG_OFF +#define ESP_DHCP_DEBUG LWIP_DBG_OFF #define LWIP_DEBUG LWIP_DBG_OFF #define TCP_DEBUG LWIP_DBG_OFF