etherdevice.h (273246) | etherdevice.h (282513) |
---|---|
1/*- 2 * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2014 Mellanox Technologies, Ltd. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 75 unchanged lines hidden (view full) --- 84 **/ 85static inline bool is_valid_ether_addr(const u8 *addr) 86{ 87 /* FF:FF:FF:FF:FF:FF is a multicast address so we don't need to 88 ** explicitly check for it here. */ 89 return !is_multicast_ether_addr(addr) && !is_zero_ether_addr(addr); 90} 91 | 1/*- 2 * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2014 Mellanox Technologies, Ltd. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 75 unchanged lines hidden (view full) --- 84 **/ 85static inline bool is_valid_ether_addr(const u8 *addr) 86{ 87 /* FF:FF:FF:FF:FF:FF is a multicast address so we don't need to 88 ** explicitly check for it here. */ 89 return !is_multicast_ether_addr(addr) && !is_zero_ether_addr(addr); 90} 91 |
92static inline void ether_addr_copy(u8 *dst, const u8 *src) 93{ 94 memcpy(dst, src, 6); 95} |
|
92 | 96 |
93 | |
94#endif /* _LINUX_ETHERDEVICE */ | 97#endif /* _LINUX_ETHERDEVICE */ |