Lines Matching refs:addr
142 int sd_ipv4ll_set_mac(sd_ipv4ll *ll, const struct ether_addr *addr) { in sd_ipv4ll_set_mac() argument
146 assert_return(addr, -EINVAL); in sd_ipv4ll_set_mac()
147 assert_return(!ether_addr_is_null(addr), -EINVAL); in sd_ipv4ll_set_mac()
149 r = sd_ipv4acd_set_mac(ll->acd, addr); in sd_ipv4ll_set_mac()
153 ll->mac = *addr; in sd_ipv4ll_set_mac()
244 be32_t addr; in ipv4ll_pick_address() local
256 addr = htobe32((h & UINT32_C(0x0000FFFF)) | IPV4LL_NETWORK); in ipv4ll_pick_address()
257 } while (addr == ll->address || in ipv4ll_pick_address()
258 IN_SET(be32toh(addr) & 0x0000FF00U, 0x0000U, 0xFF00U)); in ipv4ll_pick_address()
260 (void) in_addr_to_string(AF_INET, &(union in_addr_union) { .in.s_addr = addr }, &address); in ipv4ll_pick_address()
263 return sd_ipv4ll_set_address(ll, &(struct in_addr) { addr }); in ipv4ll_pick_address()