From c731fdde0314035d3f9e20d8d5014369453a45cf Mon Sep 17 00:00:00 2001 From: rosahay-silabs Date: Thu, 30 Jun 2022 01:41:43 +0530 Subject: [PATCH] Adds fix for IPV6 multicast --- src/inet/UDPEndPointImplLwIP.cpp | 2 +- src/lwip/efr32/lwipopts-rs911x.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/inet/UDPEndPointImplLwIP.cpp b/src/inet/UDPEndPointImplLwIP.cpp index b3ce8a24705eb1..62a2a5549e18ef 100644 --- a/src/inet/UDPEndPointImplLwIP.cpp +++ b/src/inet/UDPEndPointImplLwIP.cpp @@ -133,7 +133,7 @@ CHIP_ERROR UDPEndPointImplLwIP::LwIPBindInterface(struct udp_pcb * aUDP, Interfa InterfaceId UDPEndPointImplLwIP::GetBoundInterface() const { #if HAVE_LWIP_UDP_BIND_NETIF - return InterfaceId(netif_get_by_index(mUDP->netif_idx)); + return InterfaceId(netif_get_by_index(mUDP->netif_idx + 1)); #else return InterfaceId(mUDP->intf_filter); #endif diff --git a/src/lwip/efr32/lwipopts-rs911x.h b/src/lwip/efr32/lwipopts-rs911x.h index 5f84181387a69f..c866909e8d5a71 100644 --- a/src/lwip/efr32/lwipopts-rs911x.h +++ b/src/lwip/efr32/lwipopts-rs911x.h @@ -101,6 +101,7 @@ #define LWIP_IPV6_AUTOCONFIG (1) #define LWIP_IPV6_ROUTER_SUPPORT 1 #define LWIP_ND6_LISTEN_RA 1 +#define LWIP_IPV6_MLD 1 #define LWIP_ND6_NUM_NEIGHBORS (2) #define LWIP_ND6_NUM_DESTINATIONS (3) @@ -150,9 +151,7 @@ #define LWIP_IPV6_NUM_ADDRESSES 5 -#ifndef LWIP_IPV6_ND #define LWIP_IPV6_ND 1 -#endif #define LWIP_ND6_QUEUEING 1 #define LWIP_NUM_ND6_QUEUE 3