From 1cb4cd5ec6270f502ee3e9b24821c55ceacf226c Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Thu, 19 Mar 2020 11:24:06 +0800 Subject: [PATCH] optimization TCPv6 connect --- components/lwip/lwip | 2 +- components/lwip/port/esp32/include/lwipopts.h | 1 + components/lwip/port/esp32/netif/wlanif.c | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/components/lwip/lwip b/components/lwip/lwip index da2740fa8..453b291c4 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit da2740fa8d56b9b9e8a10602f38df1ea4dbd9b74 +Subproject commit 453b291c4c0752e05b585a62d32d8bb23e1538d7 diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index 76cd4b080..8882c9c9e 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -777,6 +777,7 @@ #define ESP_LWIP 1 #define ESP_LWIP_ARP 1 +#define ESP_IPV6 1 #define ESP_PER_SOC_TCP_WND 0 #define ESP_THREAD_SAFE 1 #define ESP_THREAD_SAFE_DEBUG LWIP_DBG_OFF diff --git a/components/lwip/port/esp32/netif/wlanif.c b/components/lwip/port/esp32/netif/wlanif.c index 7c60b6934..ed5e13ed1 100644 --- a/components/lwip/port/esp32/netif/wlanif.c +++ b/components/lwip/port/esp32/netif/wlanif.c @@ -81,6 +81,12 @@ low_level_init(struct netif *netif) #endif #endif +#if ESP_IPV6 +#if LWIP_IPV6 && LWIP_IPV6_MLD + netif->flags |= NETIF_FLAG_MLD6; +#endif +#endif + #if !ESP_L2_TO_L3_COPY netif->l2_buffer_free_notify = esp_wifi_internal_free_rx_buffer; #endif