projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
735631a
)
[NET]: Fix reversed logic in eth_type_trans().
author
David S. Miller
<davem@sunset.davemloft.net>
Thu, 29 Sep 2005 05:37:53 +0000
(22:37 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 29 Sep 2005 05:37:53 +0000
(22:37 -0700)
I got the second compare_eth_addr() test reversed, oops.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethernet/eth.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ethernet/eth.c
b/net/ethernet/eth.c
index 8b299cc820608ff3ca860bd0bd524b4383e853f7..68a5ca866442c059c4d21359f5f7632fa971f8bd 100644
(file)
--- 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;
}