aboutsummaryrefslogtreecommitdiff
path: root/net
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
parent3e5c2d3bdbe2c047b9853c4248f881f5ac645c89 (diff)
[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')
-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 be0ee8a34f9..30a5cb1b203 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);
/*