Lines Matching refs:new_hw_addr
132 struct hw_addr_data *new_hw_addr) { in net_verify_hardware_address() argument
136 assert(new_hw_addr); in net_verify_hardware_address()
138 if (new_hw_addr->length == 0) in net_verify_hardware_address()
141 if (new_hw_addr->length != arphrd_to_hw_addr_len(iftype)) { in net_verify_hardware_address()
145 new_hw_addr->length, arphrd_to_hw_addr_len(iftype)); in net_verify_hardware_address()
153 if (ether_addr_is_null(&new_hw_addr->ether)) { in net_verify_hardware_address()
159 if (ether_addr_is_broadcast(&new_hw_addr->ether)) { in net_verify_hardware_address()
165 if (ether_addr_is_multicast(&new_hw_addr->ether)) { in net_verify_hardware_address()
169 new_hw_addr->bytes[0] &= 0xfe; in net_verify_hardware_address()
172 if (!is_static && !ether_addr_is_local(&new_hw_addr->ether)) in net_verify_hardware_address()
174 new_hw_addr->bytes[0] |= 0x02; in net_verify_hardware_address()
185 (!memeqzero(new_hw_addr->bytes, INFINIBAND_ALEN - 8) || in net_verify_hardware_address()
186 memcmp(new_hw_addr->bytes, ib_hw_addr->bytes, INFINIBAND_ALEN - 8) != 0)) in net_verify_hardware_address()
189 if (memeqzero(new_hw_addr->bytes + INFINIBAND_ALEN - 8, 8)) { in net_verify_hardware_address()
195 memcpy(new_hw_addr->bytes, ib_hw_addr->bytes, INFINIBAND_ALEN - 8); in net_verify_hardware_address()