Commit 42c072d5 authored by David Stevens's avatar David Stevens Committed by David S. Miller

[IPV6]: Fix UDP socket selection for multicast.

When binding to two different multicast addresses on the same UDP
port, a copy sent to either multicast address is delivered to both.
parent e92b29bc
......@@ -551,6 +551,7 @@ static struct sock *udp_v6_mcast_next(struct sock *sk,
if (!ipv6_addr_any(&np->rcv_saddr)) {
if (!ipv6_addr_cmp(&np->rcv_saddr, loc_addr))
return s;
continue;
}
if(!inet6_mc_check(s, loc_addr, rmt_addr))
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment