Lines Matching refs:addr
64 * @addr: Pointer to a six-byte array containing the Ethernet address
68 static inline bool is_zero_ether_addr(const u8 *addr)
70 return !(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]);
77 * @addr: Pointer to a six-byte array containing the Ethernet address
82 static inline bool is_multicast_ether_addr(const u8 *addr)
84 return (0x01 & addr[0]);
89 * @addr: Pointer to a six-byte array containing the Ethernet address
93 static inline bool is_broadcast_ether_addr(const u8 *addr)
95 return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == 0xff;
100 * @addr: Pointer to a six-byte array containing the Ethernet address
107 static inline bool is_valid_ether_addr(const u8 *addr)
111 return !is_multicast_ether_addr(addr) && !is_zero_ether_addr(addr);