From 3a63cb80bb4cfb566544d40addb1595b6a3f3987 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 5 Jun 2024 08:04:44 +0200 Subject: [PATCH] fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs Closes https://github.com/espressif/esp-idf/issues/13713 --- components/esp_netif/lwip/esp_netif_lwip_ppp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/esp_netif/lwip/esp_netif_lwip_ppp.c b/components/esp_netif/lwip/esp_netif_lwip_ppp.c index db5e9f44f5..7e4a61a17f 100644 --- a/components/esp_netif/lwip/esp_netif_lwip_ppp.c +++ b/components/esp_netif/lwip/esp_netif_lwip_ppp.c @@ -165,7 +165,7 @@ static void on_ppp_notify_phase(ppp_pcb *pcb, u8_t phase, void *ctx) #endif // PPP_NOTIFY_PHASE /** - * @brief PPP low level output callback used to transmit data using standard esp-netif interafce + * @brief PPP low level output callback used to transmit data using standard esp-netif interface * * @param pcb PPP control block * @param data Buffer to write to serial port @@ -263,6 +263,10 @@ esp_err_t esp_netif_start_ppp(esp_netif_t *esp_netif) } #endif // CONFIG_LWIP_PPP_SERVER_SUPPORT +#if ESP_IPV6_AUTOCONFIG + ppp_ctx->ppp->netif->ip6_autoconfig_enabled = 1; +#endif + ESP_LOGD(TAG, "%s: Starting PPP connection: %p", __func__, ppp_ctx->ppp); #ifdef CONFIG_LWIP_PPP_SERVER_SUPPORT esp_err_t err = ppp_listen(ppp_ctx->ppp);