summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Mutter <crm-netdev@mutternet.com>2007-05-23 01:01:53 +0200
committerAdrian Bunk <bunk@stusta.de>2007-05-23 01:01:53 +0200
commit9bf4eae1b5a9787d5321478e6bac6e66c37b4d3e (patch)
tree69d750d02fa422105dfb6a93933c4c84d9a7fd69
parenta36aa221e62ffce68819f97844494c2d5f86d011 (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> Signed-off-by: Adrian Bunk <bunk@stusta.de>
-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 29f73592e68e..6a03ed723d07 100644
--- a/net/ipv6/ip6_input.c
+++ b/net/ipv6/ip6_input.c
@@ -226,7 +226,7 @@ int ip6_mc_input(struct sk_buff *skb)
IP6_INC_STATS_BH(IPSTATS_MIB_INMCASTPKTS);
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);
/*