mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[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>
This commit is contained in:
parent
735631a919
commit
01d40f28b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue