From 09aa24632a96fd3ff5c79a70553859841475472e Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 30 Mar 2022 10:53:51 +0200 Subject: [PATCH] esp_netif: Support IPv6 autoconfig is enabled in menuconfig --- 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 783ea1b81a..a3fef0a31a 100644 --- a/components/esp_netif/lwip/esp_netif_lwip.c +++ b/components/esp_netif/lwip/esp_netif_lwip.c @@ -758,6 +758,9 @@ static esp_err_t esp_netif_start_api(esp_netif_api_msg_t *msg) ESP_ERROR_CHECK(esp_netif_lwip_add(esp_netif)); +#if ESP_IPV6_AUTOCONFIG + esp_netif->lwip_netif->ip6_autoconfig_enabled = 1; +#endif if (esp_netif->flags&ESP_NETIF_FLAG_GARP) { #if ESP_GRATUITOUS_ARP netif_set_garp_flag(esp_netif->lwip_netif);