···5959 *6060 * Return true if the address is all zeroes.6161 */6262-static inline int is_zero_ether_addr(const u8 *addr)6262+static inline bool is_zero_ether_addr(const u8 *addr)6363{6464 return !(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]);6565}···7171 * Return true if the address is a multicast address.7272 * By definition the broadcast address is also a multicast address.7373 */7474-static inline int is_multicast_ether_addr(const u8 *addr)7474+static inline bool is_multicast_ether_addr(const u8 *addr)7575{7676 return 0x01 & addr[0];7777}···8282 *8383 * Return true if the address is a local address.8484 */8585-static inline int is_local_ether_addr(const u8 *addr)8585+static inline bool is_local_ether_addr(const u8 *addr)8686{8787 return 0x02 & addr[0];8888}···9393 *9494 * Return true if the address is the broadcast address.9595 */9696-static inline int is_broadcast_ether_addr(const u8 *addr)9696+static inline bool is_broadcast_ether_addr(const u8 *addr)9797{9898 return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == 0xff;9999}···104104 *105105 * Return true if the address is a unicast address.106106 */107107-static inline int is_unicast_ether_addr(const u8 *addr)107107+static inline bool is_unicast_ether_addr(const u8 *addr)108108{109109 return !is_multicast_ether_addr(addr);110110}···118118 *119119 * Return true if the address is valid.120120 */121121-static inline int is_valid_ether_addr(const u8 *addr)121121+static inline bool is_valid_ether_addr(const u8 *addr)122122{123123 /* FF:FF:FF:FF:FF:FF is a multicast address so we don't need to124124 * explicitly check for it here. */