Explorar o código

[NET]: Fix reversed logic in eth_type_trans().

I got the second compare_eth_addr() test reversed, oops.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller %!s(int64=20) %!d(string=hai) anos
pai
achega
01d40f28b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/ethernet/eth.c

+ 1 - 1
net/ethernet/eth.c

@@ -191,7 +191,7 @@ __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev)
 	 */
 	 
 	else if(1 /*dev->flags&IFF_PROMISC*/) {
-		if (unlikely(!compare_eth_addr(eth->h_dest, dev->dev_addr)))
+		if (unlikely(compare_eth_addr(eth->h_dest, dev->dev_addr)))
 			skb->pkt_type = PACKET_OTHERHOST;
 	}