public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6•org>
To: David Miller <davem@davemloft•net>
Cc: netdev@vger•kernel.org, erik.hugne@ericsson•com,
	YOSHIFUJI Hideaki <yoshfuji@linux-ipv6•org>
Subject: Re: [PATCH] ipv6: don't let node/interface scoped multicast traffic escape on the wire
Date: Mon, 11 Feb 2013 00:31:39 +0900	[thread overview]
Message-ID: <5117BD5B.2020900@linux-ipv6.org> (raw)
In-Reply-To: <20130210123335.GA18219@order.stressinduktion.org>

> Reported-by: Erik Hugne <erik.hugne@ericsson•com>
> Cc: Erik Hugne <erik.hugne@ericsson•com>
> Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6•org>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion•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@linux-ipv6•org>

--yoshfuji

  reply	other threads:[~2013-02-10 15:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-10 12:33 [PATCH] ipv6: don't let node/interface scoped multicast traffic escape on the wire Hannes Frederic Sowa
2013-02-10 15:31 ` YOSHIFUJI Hideaki [this message]
2013-02-11 19:01 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5117BD5B.2020900@linux-ipv6.org \
    --to=yoshfuji@linux-ipv6$(echo .)org \
    --cc=davem@davemloft$(echo .)net \
    --cc=erik.hugne@ericsson$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox