Skip to content

Commit

Permalink
[NET]: Fix reversed logic in eth_type_trans().
Browse files Browse the repository at this point in the history
I got the second compare_eth_addr() test reversed, oops.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 29, 2005
1 parent 735631a commit 01d40f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ethernet/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 01d40f2

Please sign in to comment.