diff options
Diffstat (limited to 'net/ethernet/eth.c')
-rw-r--r-- | net/ethernet/eth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 5889a6c38a10..36e58800a9e3 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c | |||
@@ -164,7 +164,7 @@ __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
164 | eth = eth_hdr(skb); | 164 | eth = eth_hdr(skb); |
165 | 165 | ||
166 | if (unlikely(is_multicast_ether_addr(eth->h_dest))) { | 166 | if (unlikely(is_multicast_ether_addr(eth->h_dest))) { |
167 | if (!compare_ether_addr_64bits(eth->h_dest, dev->broadcast)) | 167 | if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) |
168 | skb->pkt_type = PACKET_BROADCAST; | 168 | skb->pkt_type = PACKET_BROADCAST; |
169 | else | 169 | else |
170 | skb->pkt_type = PACKET_MULTICAST; | 170 | skb->pkt_type = PACKET_MULTICAST; |
@@ -179,7 +179,8 @@ __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
179 | */ | 179 | */ |
180 | 180 | ||
181 | else if (1 /*dev->flags&IFF_PROMISC */ ) { | 181 | else if (1 /*dev->flags&IFF_PROMISC */ ) { |
182 | if (unlikely(compare_ether_addr_64bits(eth->h_dest, dev->dev_addr))) | 182 | if (unlikely(!ether_addr_equal_64bits(eth->h_dest, |
183 | dev->dev_addr))) | ||
183 | skb->pkt_type = PACKET_OTHERHOST; | 184 | skb->pkt_type = PACKET_OTHERHOST; |
184 | } | 185 | } |
185 | 186 | ||