Lines Matching refs:addr

54 	uint8_t addr[NET_ETH_ADDR_LEN]; /**< Buffer storing the address */  member
750 static inline bool net_eth_is_addr_broadcast(struct net_eth_addr *addr) in net_eth_is_addr_broadcast() argument
752 if (addr->addr[0] == 0xff && in net_eth_is_addr_broadcast()
753 addr->addr[1] == 0xff && in net_eth_is_addr_broadcast()
754 addr->addr[2] == 0xff && in net_eth_is_addr_broadcast()
755 addr->addr[3] == 0xff && in net_eth_is_addr_broadcast()
756 addr->addr[4] == 0xff && in net_eth_is_addr_broadcast()
757 addr->addr[5] == 0xff) { in net_eth_is_addr_broadcast()
771 static inline bool net_eth_is_addr_all_zeroes(struct net_eth_addr *addr) in net_eth_is_addr_all_zeroes() argument
773 if (addr->addr[0] == 0x00 && in net_eth_is_addr_all_zeroes()
774 addr->addr[1] == 0x00 && in net_eth_is_addr_all_zeroes()
775 addr->addr[2] == 0x00 && in net_eth_is_addr_all_zeroes()
776 addr->addr[3] == 0x00 && in net_eth_is_addr_all_zeroes()
777 addr->addr[4] == 0x00 && in net_eth_is_addr_all_zeroes()
778 addr->addr[5] == 0x00) { in net_eth_is_addr_all_zeroes()
792 static inline bool net_eth_is_addr_unspecified(struct net_eth_addr *addr) in net_eth_is_addr_unspecified() argument
794 if (addr->addr[0] == 0x00 && in net_eth_is_addr_unspecified()
795 addr->addr[1] == 0x00 && in net_eth_is_addr_unspecified()
796 addr->addr[2] == 0x00 && in net_eth_is_addr_unspecified()
797 addr->addr[3] == 0x00 && in net_eth_is_addr_unspecified()
798 addr->addr[4] == 0x00 && in net_eth_is_addr_unspecified()
799 addr->addr[5] == 0x00) { in net_eth_is_addr_unspecified()
813 static inline bool net_eth_is_addr_multicast(struct net_eth_addr *addr) in net_eth_is_addr_multicast() argument
816 if (addr->addr[0] == 0x33 && in net_eth_is_addr_multicast()
817 addr->addr[1] == 0x33) { in net_eth_is_addr_multicast()
823 if (addr->addr[0] == 0x01 && in net_eth_is_addr_multicast()
824 addr->addr[1] == 0x00 && in net_eth_is_addr_multicast()
825 addr->addr[2] == 0x5e) { in net_eth_is_addr_multicast()
840 static inline bool net_eth_is_addr_group(struct net_eth_addr *addr) in net_eth_is_addr_group() argument
842 return addr->addr[0] & 0x01; in net_eth_is_addr_group()
852 static inline bool net_eth_is_addr_valid(struct net_eth_addr *addr) in net_eth_is_addr_valid() argument
854 return !net_eth_is_addr_unspecified(addr) && !net_eth_is_addr_group(addr); in net_eth_is_addr_valid()
864 static inline bool net_eth_is_addr_lldp_multicast(struct net_eth_addr *addr) in net_eth_is_addr_lldp_multicast() argument
867 if (addr->addr[0] == 0x01 && in net_eth_is_addr_lldp_multicast()
868 addr->addr[1] == 0x80 && in net_eth_is_addr_lldp_multicast()
869 addr->addr[2] == 0xc2 && in net_eth_is_addr_lldp_multicast()
870 addr->addr[3] == 0x00 && in net_eth_is_addr_lldp_multicast()
871 addr->addr[4] == 0x00 && in net_eth_is_addr_lldp_multicast()
872 addr->addr[5] == 0x0e) { in net_eth_is_addr_lldp_multicast()
876 ARG_UNUSED(addr); in net_eth_is_addr_lldp_multicast()
889 static inline bool net_eth_is_addr_ptp_multicast(struct net_eth_addr *addr) in net_eth_is_addr_ptp_multicast() argument
892 if (addr->addr[0] == 0x01 && in net_eth_is_addr_ptp_multicast()
893 addr->addr[1] == 0x1b && in net_eth_is_addr_ptp_multicast()
894 addr->addr[2] == 0x19 && in net_eth_is_addr_ptp_multicast()
895 addr->addr[3] == 0x00 && in net_eth_is_addr_ptp_multicast()
896 addr->addr[4] == 0x00 && in net_eth_is_addr_ptp_multicast()
897 addr->addr[5] == 0x00) { in net_eth_is_addr_ptp_multicast()
901 ARG_UNUSED(addr); in net_eth_is_addr_ptp_multicast()