diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2005-09-29 01:37:53 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-09-29 01:37:53 -0400 |
commit | 01d40f28b125e0a9aa0ec24642be67fc4c5dfaff (patch) | |
tree | 9e449cedf8332cc2c37cc96151af5080831e9b0c /net/ethernet | |
parent | 735631a9196db42631b8817892605ee72e13a58b (diff) |
[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>
Diffstat (limited to 'net/ethernet')
-rw-r--r-- | net/ethernet/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 8b299cc82060..68a5ca866442 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) | |||
191 | */ | 191 | */ |
192 | 192 | ||
193 | else if(1 /*dev->flags&IFF_PROMISC*/) { | 193 | else if(1 /*dev->flags&IFF_PROMISC*/) { |
194 | if (unlikely(!compare_eth_addr(eth->h_dest, dev->dev_addr))) | 194 | if (unlikely(compare_eth_addr(eth->h_dest, dev->dev_addr))) |
195 | skb->pkt_type = PACKET_OTHERHOST; | 195 | skb->pkt_type = PACKET_OTHERHOST; |
196 | } | 196 | } |
197 | 197 | ||