diff options
author | Corey Mutter <crm-netdev@mutternet.com> | 2007-05-14 03:00:27 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-05-14 03:00:27 -0700 |
commit | ae7bf20a6316272acfcaef5d265b18aaa54b41e4 (patch) | |
tree | 51bf1cbe079e57e15d2fa29e37b90a6b266feae6 /net | |
parent | 3e5c2d3bdbe2c047b9853c4248f881f5ac645c89 (diff) | |
download | linux-ae7bf20a6316272acfcaef5d265b18aaa54b41e4.tar.bz2 |
[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index be0ee8a34f9b..30a5cb1b203e 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); /* |