From 2e7efc486e6d90dfe8a6f058682375870c05071f Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Thu, 17 Sep 2020 10:49:28 +0800 Subject: [PATCH] WIP: Temporarily break ipv6 zoning to pass IT_* tests ipv6: send data if src address is null Send both multicast and unicast data if the src IP address is ANY * picked from 4fd84aba * picked from 889c3875 Ref IDF-4856 --- src/core/ipv6/ip6.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/ipv6/ip6.c b/src/core/ipv6/ip6.c index 4fc11994..6314c729 100644 --- a/src/core/ipv6/ip6.c +++ b/src/core/ipv6/ip6.c @@ -174,7 +174,15 @@ ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest) } /* Again, do not use any other netif in this case, as that could result in * zone boundary violations. */ +#if ESP_LWIP + if (ip6_addr_ismulticast(dest) || ip6_addr_isany(src)) { + return netif_default; + } else { + return NULL; + } +#else return NULL; +#endif /* ESP_LWIP */ } /* We come here only if neither source nor destination is scoped. */