summaryrefslogtreecommitdiff
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-03-07 19:16:55 (GMT)
committerDavid S. Miller <davem@davemloft.net>2008-03-07 19:16:55 (GMT)
commitb8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 (patch)
treef4f576d4be94ea792bf075260586ab25c6507716 /net/ipv6/udp.c
parente504799276e53045a9b597f24c1b456552482f63 (diff)
downloadlinux-fsl-qoriq-b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551.tar.xz
[NETNS][IPV6] mcast - handle several network namespace
This patch make use of the network namespace information at the right places to handle the multicast for several network namespaces. It makes the socket control to be per namespace too. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Benjamin Thery <benjamin.thery@bull.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 53739de..d6e311f 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -323,6 +323,9 @@ static struct sock *udp_v6_mcast_next(struct sock *sk,
sk_for_each_from(s, node) {
struct inet_sock *inet = inet_sk(s);
+ if (s->sk_net != sk->sk_net)
+ continue;
+
if (s->sk_hash == num && s->sk_family == PF_INET6) {
struct ipv6_pinfo *np = inet6_sk(s);
if (inet->dport) {