Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae7bf20a authored by Corey Mutter's avatar Corey Mutter Committed by David S. Miller
Browse files

[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>
parent 3e5c2d3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

	/*