From c092f9b881562d7c065118bdc09467ff8bbc9ded Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Thu, 19 Mar 2020 14:14:13 +0800 Subject: [PATCH] bugfix for TCPv6 send ok when sta disconnect --- components/esp_netif/lwip/esp_netif_lwip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_netif/lwip/esp_netif_lwip.c b/components/esp_netif/lwip/esp_netif_lwip.c index 195ddd3ffa..a96a92a1cb 100644 --- a/components/esp_netif/lwip/esp_netif_lwip.c +++ b/components/esp_netif/lwip/esp_netif_lwip.c @@ -1086,6 +1086,9 @@ static esp_err_t esp_netif_down_api(esp_netif_api_msg_t *msg) esp_netif_reset_ip_info(esp_netif); } + for(int8_t i = 0 ;i < LWIP_IPV6_NUM_ADDRESSES ;i++) { + netif_ip6_addr_set(lwip_netif, i, IP6_ADDR_ANY6); + } netif_set_addr(lwip_netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); netif_set_down(lwip_netif);