dhcp6-lease: Add function to fetch the IAID for the prefix
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 7 Sep 2018 20:37:56 +0000 (14:37 -0600)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 19 Sep 2018 19:45:18 +0000 (13:45 -0600)
commit49228c7520b55edbeb6f8ccc469ae6309363d876
tree6a37aa223b0a518c0223fa6f5242149d50cd9b72
parent125f20b4de130a31ff9cf0cdcc579b99d7822a04
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.
src/libsystemd-network/dhcp6-lease-internal.h
src/libsystemd-network/sd-dhcp6-client.c
src/libsystemd-network/sd-dhcp6-lease.c