diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-03-08 02:07:23 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-08 12:28:20 -0500 |
commit | ddf64354af4a702ee0b85d0a285ba74c7278a460 (patch) | |
tree | b2cf6d7df6fab2af9a512b027e6cf2604236027c /net | |
parent | 3bc1b1add7a8484cc4a261c3e128dbe1528ce01f (diff) | |
download | linux-3.10-ddf64354af4a702ee0b85d0a285ba74c7278a460.tar.gz linux-3.10-ddf64354af4a702ee0b85d0a285ba74c7278a460.tar.bz2 linux-3.10-ddf64354af4a702ee0b85d0a285ba74c7278a460.zip |
ipv6: stop multicast forwarding to process interface scoped addresses
v2:
a) used struct ipv6_addr_props
v3:
a) reverted changes for ipv6_addr_props
v4:
a) do not use __ipv6_addr_needs_scope_id
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ip6_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index b1876e52091..e33fe0ab256 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c @@ -281,7 +281,8 @@ int ip6_mc_input(struct sk_buff *skb) * IPv6 multicast router mode is now supported ;) */ if (dev_net(skb->dev)->ipv6.devconf_all->mc_forwarding && - !(ipv6_addr_type(&hdr->daddr) & IPV6_ADDR_LINKLOCAL) && + !(ipv6_addr_type(&hdr->daddr) & + (IPV6_ADDR_LOOPBACK|IPV6_ADDR_LINKLOCAL)) && likely(!(IP6CB(skb)->flags & IP6SKB_FORWARDED))) { /* * Okay, we try to forward - split and duplicate |