summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorCorey Mutter <crm-netdev@mutternet.com>2007-05-14 03:00:27 -0700
committerDavid S. Miller <davem@davemloft.net>2007-05-14 03:00:27 -0700
commitae7bf20a6316272acfcaef5d265b18aaa54b41e4 (patch)
tree51bf1cbe079e57e15d2fa29e37b90a6b266feae6 /net/ipv6
parent3e5c2d3bdbe2c047b9853c4248f881f5ac645c89 (diff)
downloadop-kernel-dev-ae7bf20a6316272acfcaef5d265b18aaa54b41e4.zip
op-kernel-dev-ae7bf20a6316272acfcaef5d265b18aaa54b41e4.tar.gz
[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: Corey Mutter <crm-netdev@mutternet.com> Signed-off-by: David L Stevens <dlstevens@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ip6_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c
index be0ee8a..30a5cb1 100644
--- a/net/ipv6/ip6_input.c
+++ b/net/ipv6/ip6_input.c
@@ -235,7 +235,7 @@ int ip6_mc_input(struct sk_buff *skb)
IP6_INC_STATS_BH(ip6_dst_idev(skb->dst), IPSTATS_MIB_INMCASTPKTS);
hdr = ipv6_hdr(skb);
- 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);
/*
OpenPOWER on IntegriCloud