]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6/udp: Fix ipv6 multicast socket filter regression
authorHenning Rogge <hrogge@gmail.com>
Mon, 18 May 2015 19:08:49 +0000 (21:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2015 20:34:43 +0000 (16:34 -0400)
commit126e6c8a4763a68c14ebcc8565b13b8634f63a6d
treea0dac766900f360ed1d6f2ea8db1c11065afeca9
parent5725e8fcc2cdcc3869bea6b6d19001bc490ce05c
net/ipv6/udp: Fix ipv6 multicast socket filter regression

Commit <642d94ffbd88> ("udp: Simplify__udp*_lib_mcast_deliver")
simplified the filter for incoming IPv6 multicast but removed
the check of the local socket address and the UDP destination
address.

This patch restores the filter to prevent sockets bound to a IPv6
multicast IP to receive other UDP traffic link unicast.

Signed-off-by: Henning Rogge <hrogge@gmail.com>
Fixes: 642d94ffbd88 ("udp: Simplify__udp*_lib_mcast_deliver")
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c