Address label is for IPv6.
if (r < 0)
return log_link_error_errno(link, r, "Could not append IFAL_LABEL attribute: %m");
- r = sd_netlink_message_append_in6_addr(req, IFA_ADDRESS, &label->in_addr.in6);
+ r = sd_netlink_message_append_in6_addr(req, IFA_ADDRESS, &label->in_addr);
if (r < 0)
return log_link_error_errno(link, r, "Could not append IFA_ADDRESS attribute: %m");
return 0;
}
- n->in_addr = a;
+ n->in_addr = a.in6;
n->prefixlen = prefixlen;
TAKE_PTR(n);
unsigned char prefixlen;
uint32_t label;
- union in_addr_union in_addr;
+ struct in6_addr in_addr;
} AddressLabel;
AddressLabel *address_label_free(AddressLabel *label);