From cb21ade204c77e2b8c0e441acd372ee1270a9229 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Mon, 20 Apr 2020 18:51:47 +0800 Subject: [PATCH] fix(lwip): fix IGMP join wrong address --- components/lwip/lwip/src/core/ipv6/mld6.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/lwip/lwip/src/core/ipv6/mld6.c b/components/lwip/lwip/src/core/ipv6/mld6.c index 9acb82fe..bb7e1cab 100644 --- a/components/lwip/lwip/src/core/ipv6/mld6.c +++ b/components/lwip/lwip/src/core/ipv6/mld6.c @@ -306,6 +306,10 @@ mld6_joingroup(const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr) err_t err = ERR_VAL; /* no matching interface */ struct netif *netif; +#if ESP_LWIP + LWIP_ERROR("mld6_joingroup: attempt to join non-multicast address", ip6_addr_ismulticast(groupaddr), return ERR_VAL;); +#endif + /* loop through netif's */ netif = netif_list; while (netif != NULL) {