From 61dac0009953038933f839693c758401136e8580 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Tue, 31 Mar 2020 19:27:40 +0800 Subject: [PATCH] fix ipv6 bug that input the wrong broadcast address to return OK --- components/lwip/core/ipv6/mld6.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lwip/core/ipv6/mld6.c b/components/lwip/core/ipv6/mld6.c index 489c5063a..47c2c791a 100644 --- a/components/lwip/core/ipv6/mld6.c +++ b/components/lwip/core/ipv6/mld6.c @@ -322,6 +322,9 @@ 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) {