提交 01d40f28 编写于 作者: D David S. Miller

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

I got the second compare_eth_addr() test reversed, oops.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 735631a9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册