Lines Matching defs:address
39 log_link_error_errno(link, r, "Could not set NDisc route or address: %m");
53 _cleanup_address_free_ Address *address = NULL;
65 r = address_new(&address);
67 log_link_error_errno(link, r, "Could not allocate address: %m");
73 address->family = AF_INET6;
74 address->in_addr.in6 = *prefix;
76 memcpy(((char *)&address->in_addr.in6) + 8, ((char *)&link->network->ipv6_token) + 8, 8);
79 address->in_addr.in6.__in6_u.__u6_addr8[8] = link->mac.ether_addr_octet[0];
80 address->in_addr.in6.__in6_u.__u6_addr8[8] ^= 1 << 1;
81 address->in_addr.in6.__in6_u.__u6_addr8[9] = link->mac.ether_addr_octet[1];
82 address->in_addr.in6.__in6_u.__u6_addr8[10] = link->mac.ether_addr_octet[2];
83 address->in_addr.in6.__in6_u.__u6_addr8[11] = 0xff;
84 address->in_addr.in6.__in6_u.__u6_addr8[12] = 0xfe;
85 address->in_addr.in6.__in6_u.__u6_addr8[13] = link->mac.ether_addr_octet[3];
86 address->in_addr.in6.__in6_u.__u6_addr8[14] = link->mac.ether_addr_octet[4];
87 address->in_addr.in6.__in6_u.__u6_addr8[15] = link->mac.ether_addr_octet[5];
89 address->prefixlen = prefixlen;
90 address->flags = IFA_F_NOPREFIXROUTE|IFA_F_MANAGETEMPADDR;
91 address->cinfo.ifa_prefered = lifetime_preferred;
92 address->cinfo.ifa_valid = lifetime_valid;
94 r = address_configure(address, link, ndisc_netlink_handler, true);
96 log_link_warning_errno(link, r, "Could not set SLAAC address: %m");