mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ipv6: don't let node/interface scoped multicast traffic escape on the wire
Reported-by: Erik Hugne <[email protected]> Cc: Erik Hugne <[email protected]> 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]>
This commit is contained in:
parent
65ab999da8
commit
dd40851521
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue