From 2db11bbb8c3f4bac8e891662f31e6a1d0b610c37 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 12 Feb 2025 17:25:49 +0100 Subject: [PATCH] fix(examples): Fix SLIP netif example to make esp_netif use special netif by enabling PPP netif, so esp_netif knows that lwip's netif->state will be reserved for special netif info (slip) Closes https://github.com/espressif/esp-protocols/issues/759 --- examples/esp_netif/slip_custom_netif/sdkconfig.defaults | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/esp_netif/slip_custom_netif/sdkconfig.defaults b/examples/esp_netif/slip_custom_netif/sdkconfig.defaults index a0f094bcd..e5847818e 100644 --- a/examples/esp_netif/slip_custom_netif/sdkconfig.defaults +++ b/examples/esp_netif/slip_custom_netif/sdkconfig.defaults @@ -1,2 +1,5 @@ # Override some defaults to enable SLIP CONFIG_LWIP_SLIP_SUPPORT=y +# Workaround: Enable PPP to let esp_netif know that lwip's netif->state +# will be occupied (by SLIP netif info) +CONFIG_LWIP_PPP_SUPPORT=y