summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp6-lease-internal.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2018-09-07 14:37:56 -0600
committerPatrik Flykt <patrik.flykt@linux.intel.com>2018-09-19 13:45:18 -0600
commit49228c7520b55edbeb6f8ccc469ae6309363d876 (patch)
tree6a37aa223b0a518c0223fa6f5242149d50cd9b72 /src/libsystemd-network/dhcp6-lease-internal.h
parent125f20b4de130a31ff9cf0cdcc579b99d7822a04 (diff)
downloadsystemd-49228c7520b55edbeb6f8ccc469ae6309363d876.tar.gz
dhcp6-lease: Add function to fetch the IAID for the prefix
Add function to fetch the IAID for the delegated IA_PD prefix. In order to keep things simple in the implemntation, the same IAID is used with IA_NA addresses and IA_PD prefixes. But the DHCPv6 server can choose to return only IA_PD prefixes, and the client can nowadays omit requesting of IA_NA addresses. Since the function fetching said IAID from the lease looks only for IA_NA ones, it will return an empty IAID, which of course does not match the one set for prefixes. Fix this by adding a function returning the IAID for the prefix.
Diffstat (limited to 'src/libsystemd-network/dhcp6-lease-internal.h')
-rw-r--r--src/libsystemd-network/dhcp6-lease-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp6-lease-internal.h b/src/libsystemd-network/dhcp6-lease-internal.h
index ff0b0f00ce..c05c32d5b1 100644
--- a/src/libsystemd-network/dhcp6-lease-internal.h
+++ b/src/libsystemd-network/dhcp6-lease-internal.h
@@ -50,6 +50,7 @@ int dhcp6_lease_set_rapid_commit(sd_dhcp6_lease *lease);
int dhcp6_lease_get_rapid_commit(sd_dhcp6_lease *lease, bool *rapid_commit);
int dhcp6_lease_get_iaid(sd_dhcp6_lease *lease, be32_t *iaid);
+int dhcp6_lease_get_pd_iaid(sd_dhcp6_lease *lease, be32_t *iaid);
int dhcp6_lease_set_dns(sd_dhcp6_lease *lease, uint8_t *optval, size_t optlen);
int dhcp6_lease_set_domains(sd_dhcp6_lease *lease, uint8_t *optval,