[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5117BD5B.2020900@linux-ipv6.org>
Date: Mon, 11 Feb 2013 00:31:39 +0900
From: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
To: David Miller <davem@...emloft.net>
CC: netdev@...r.kernel.org, erik.hugne@...csson.com,
YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
Subject: Re: [PATCH] ipv6: don't let node/interface scoped multicast traffic
escape on the wire
> Reported-by: Erik Hugne <erik.hugne@...csson.com>
> Cc: Erik Hugne <erik.hugne@...csson.com>
> Cc: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
> ---
> net/ipv6/ip6_output.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
> index c953825..155eccf 100644
> --- a/net/ipv6/ip6_output.c
> +++ b/net/ipv6/ip6_output.c
> @@ -120,6 +120,13 @@ static int ip6_finish_output2(struct sk_buff *skb)
>
> IP6_UPD_PO_STATS(dev_net(dev), idev, IPSTATS_MIB_OUTMCAST,
> skb->len);
> +
> + if (IPV6_ADDR_MC_SCOPE(&ipv6_hdr(skb)->daddr) <=
> + IPV6_ADDR_SCOPE_NODELOCAL &&
> + !(dev->flags & IFF_LOOPBACK)) {
> + kfree_skb(skb);
> + return 0;
> + }
> }
>
> rcu_read_lock_bh();
>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
--yoshfuji
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists