Home
last modified time | relevance | path

Searched refs:new_hw_addr (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/shared/
Dnetif-util.c132 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()
[all …]
Dnetif-util.h22 struct hw_addr_data *new_hw_addr);