From: David S. Miller Date: Thu, 29 Sep 2005 05:37:53 +0000 (-0700) Subject: [NET]: Fix reversed logic in eth_type_trans(). X-Git-Tag: v2.6.14-rc3~53^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=01d40f28b125e0a9aa0ec24642be67fc4c5dfaff;p=linux-2.6-omap-h63xx.git [NET]: Fix reversed logic in eth_type_trans(). I got the second compare_eth_addr() test reversed, oops. Signed-off-by: David S. Miller --- diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 8b299cc8206..68a5ca86644 100644 --- a/net/ethernet/eth.c +++ b/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; }