projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bc1b1a
)
ipv6: stop multicast forwarding to process interface scoped addresses
author
Hannes Frederic Sowa
<
[email protected]
>
Fri, 8 Mar 2013 02:07:23 +0000
(
02:07
+0000)
committer
David S. Miller
<
[email protected]
>
Fri, 8 Mar 2013 17:28:20 +0000
(12:28 -0500)
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 <
[email protected]
>
Signed-off-by: Hannes Frederic Sowa <
[email protected]
>
Acked-by: YOSHIFUJI Hideaki <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/ip6_input.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ip6_input.c
b/net/ipv6/ip6_input.c
index b1876e52091e1ea2568b5b1acf9411df5986ef84..e33fe0ab2568ec5a750e846457ff52a6a3395c86 100644
(file)
--- 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