Home
last modified time | relevance | path

Searched refs:iaaddr (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/libsystemd-network/
Ddhcp6-option.c279 static int option_append_ia_address(uint8_t **buf, size_t *buflen, const struct iaaddr *address) { in option_append_ia_address()
280 struct iaaddr a; in option_append_ia_address()
289 a = (struct iaaddr) { in option_append_ia_address()
293 r = option_append_hdr(buf, buflen, SD_DHCP6_OPTION_IAADDR, sizeof(struct iaaddr)); in option_append_ia_address()
297 *buf = mempcpy(*buf, &a, sizeof(struct iaaddr)); in option_append_ia_address()
298 *buflen -= sizeof(struct iaaddr); in option_append_ia_address()
300 return offsetof(DHCP6Option, data) + sizeof(struct iaaddr); in option_append_ia_address()
382 r = option_append_ia_address(buf, buflen, &addr->iaaddr); in dhcp6_option_append_ia()
600 if (len < sizeof(struct iaaddr)) in dhcp6_option_parse_ia_address()
607 memcpy(&a->iaaddr, data, sizeof(struct iaaddr)); in dhcp6_option_parse_ia_address()
[all …]
Ddhcp6-option.h31 struct iaaddr { struct
51 struct iaaddr iaaddr; argument
Dsd-dhcp6-lease.c53 min_valid_lt = MIN(min_valid_lt, be32toh(a->iaaddr.lifetime_valid)); in dhcp6_lease_set_lifetime()
231 *ret_addr = lease->addr_iter->iaaddr.address; in sd_dhcp6_lease_get_address()
233 *ret_lifetime_preferred = be32toh(lease->addr_iter->iaaddr.lifetime_preferred); in sd_dhcp6_lease_get_address()
235 *ret_lifetime_valid = be32toh(lease->addr_iter->iaaddr.lifetime_valid); in sd_dhcp6_lease_get_address()