Commit 9bf4eae1 authored by Corey Mutter's avatar Corey Mutter Committed by Adrian Bunk

[IPV6]: Reverse sense of promisc tests in ip6_mc_input

Reverse the sense of the promiscuous-mode tests in ip6_mc_input().
Signed-off-by: default avatarCorey Mutter <crm-netdev@mutternet.com>
Signed-off-by: default avatarDavid L Stevens <dlstevens@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent a36aa221
...@@ -226,7 +226,7 @@ int ip6_mc_input(struct sk_buff *skb) ...@@ -226,7 +226,7 @@ int ip6_mc_input(struct sk_buff *skb)
IP6_INC_STATS_BH(IPSTATS_MIB_INMCASTPKTS); IP6_INC_STATS_BH(IPSTATS_MIB_INMCASTPKTS);
hdr = skb->nh.ipv6h; hdr = skb->nh.ipv6h;
deliver = likely(!(skb->dev->flags & (IFF_PROMISC|IFF_ALLMULTI))) || deliver = unlikely(skb->dev->flags & (IFF_PROMISC|IFF_ALLMULTI)) ||
ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, NULL); ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, NULL);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment