1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

[gnrc_icmpv6_error] Fixed multicast detection

before this commit the src address was checked for multicast, but the dst address should be checked. Therefore udp multicast packets would be flooded back to the src as ICMPv6 error, as not all nodes had a UDP receiver registered.
This commit is contained in:
steffen 2019-09-05 19:22:43 +02:00
parent 999fffdc59
commit 485dbd1fda

View File

@ -243,7 +243,7 @@ static gnrc_pktsnip_t *_check_ipv6_hdr(const gnrc_pktsnip_t *orig_pkt)
const ipv6_hdr_t *ipv6_hdr = ipv6->data;
if (ipv6_addr_is_unspecified(&ipv6_hdr->src) ||
ipv6_addr_is_multicast(&ipv6_hdr->src)) {
ipv6_addr_is_multicast(&ipv6_hdr->dst)) {
ipv6 = NULL;
}
return ipv6;