Skip to content

Commit 367e100

Browse files
committed
ports/esp32: Add initial support for IPV6.
Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
1 parent 813d559 commit 367e100

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ports/esp32/boards/sdkconfig.base

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ CONFIG_LWIP_PPP_SUPPORT=y
4545
CONFIG_LWIP_PPP_PAP_SUPPORT=y
4646
CONFIG_LWIP_PPP_CHAP_SUPPORT=y
4747

48+
# IPV6
49+
CONFIG_LWIP_IPV6_AUTOCONFIG=y
50+
4851
# SSL
4952
# Use 4kiB output buffer instead of default 16kiB
5053
CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y

ports/esp32/network_wlan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ static void network_wlan_ip_event_handler(void *event_handler_arg, esp_event_bas
147147
ESP_LOGI("network", "GOT_IP");
148148
wifi_sta_connected = true;
149149
wifi_sta_disconn_reason = 0; // Success so clear error. (in case of new error will be replaced anyway)
150+
ip_event_got_ip_t *event = (ip_event_got_ip_t *)event_data;
151+
esp_netif_create_ip6_linklocal(event->esp_netif);
152+
150153
#if MICROPY_HW_ENABLE_MDNS_QUERIES || MICROPY_HW_ENABLE_MDNS_RESPONDER
151154
if (!mdns_initialised) {
152155
mdns_init();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy