diff options
author | Kris Katterjohn <kjak@users.sourceforge.net> | 2006-01-09 19:01:43 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-10 15:54:28 -0500 |
commit | d3f4a687f683f536506d0aa6b22e6cb3e79639ce (patch) | |
tree | d1f5fb7177d1dd254e63189cb89e51a86a24f171 /net/atm/br2684.c | |
parent | 770cfbcffdf0011ecf3a12435ecb5604c4c97a19 (diff) |
[NET]: Change memcmp(,,ETH_ALEN) to compare_ether_addr()
This changes some memcmp(one,two,ETH_ALEN) to compare_ether_addr(one,two).
Signed-off-by: Kris Katterjohn <kjak@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/br2684.c')
-rw-r--r-- | net/atm/br2684.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index bdb4d89730d2..1dafa9c108a7 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
@@ -296,13 +296,13 @@ static inline __be16 br_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
296 | eth = eth_hdr(skb); | 296 | eth = eth_hdr(skb); |
297 | 297 | ||
298 | if (is_multicast_ether_addr(eth->h_dest)) { | 298 | if (is_multicast_ether_addr(eth->h_dest)) { |
299 | if (memcmp(eth->h_dest, dev->broadcast, ETH_ALEN) == 0) | 299 | if (!compare_ether_addr(eth->h_dest, dev->broadcast)) |
300 | skb->pkt_type = PACKET_BROADCAST; | 300 | skb->pkt_type = PACKET_BROADCAST; |
301 | else | 301 | else |
302 | skb->pkt_type = PACKET_MULTICAST; | 302 | skb->pkt_type = PACKET_MULTICAST; |
303 | } | 303 | } |
304 | 304 | ||
305 | else if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN)) | 305 | else if (compare_ether_addr(eth->h_dest, dev->dev_addr)) |
306 | skb->pkt_type = PACKET_OTHERHOST; | 306 | skb->pkt_type = PACKET_OTHERHOST; |
307 | 307 | ||
308 | if (ntohs(eth->h_proto) >= 1536) | 308 | if (ntohs(eth->h_proto) >= 1536) |