projects/linux·commit 01d40f28

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

01d40f28 · David S. Miller <[email protected]> · 2005-09-28 22:37:53 -07:00

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

Signed-off-by: David S. Miller <[email protected]>
Commit
01d40f28b125e0a9aa0ec24642be67fc4c5dfaff
Parents
735631a9

Changes

1 files changed · +1 −1

FileStatusAddDelContent
net/ethernet/eth.cmodified+1−1View file

net/ethernet/eth.c

View file
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index 8b299cc..68a5ca8 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;
}