From 8215bd6670e545e08bbfcf84a91702e16f3d19fd Mon Sep 17 00:00:00 2001 From: yuanjm Date: Thu, 19 May 2022 19:12:56 +0800 Subject: [PATCH] feat(netif): Add NETIF_FLAG_MLD6 flag for eth netif --- components/lwip/port/esp32/netif/ethernetif.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/lwip/port/esp32/netif/ethernetif.c b/components/lwip/port/esp32/netif/ethernetif.c index 3b51af804d..f776b53da1 100644 --- a/components/lwip/port/esp32/netif/ethernetif.c +++ b/components/lwip/port/esp32/netif/ethernetif.c @@ -91,6 +91,12 @@ static void ethernet_low_level_init(struct netif *netif) netif->flags |= NETIF_FLAG_IGMP; #endif #endif + +#if ESP_IPV6 +#if LWIP_IPV6 && LWIP_IPV6_MLD + netif->flags |= NETIF_FLAG_MLD6; +#endif +#endif } /**