]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp6-client: rework IA_NA or IA_PD getters
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Sep 2023 18:12:46 +0000 (03:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 Sep 2023 18:59:00 +0000 (03:59 +0900)
commitd8ec95c7ff0029b56492008ce3268542ff02a977
tree01c3b5d0796a2d69aa47c541616061eb39950f9c
parentfb70992d3973cf09f421260780c4ac96b99467e7
sd-dhcp6-client: rework IA_NA or IA_PD getters

This splits sd_dhcp6_lease_get_address() into small pieces,
and introduce FOREACH_DHCP6_ADDRESS() macro.
Also, the lifetimes provided by _get_address_lifetime() are now in usec,
and _get_address_lifetime_timestamp() provides timestamp.

The same change is also applied for IA_PD.
src/libsystemd-network/dhcp6-lease-internal.h
src/libsystemd-network/sd-dhcp6-lease.c
src/libsystemd-network/test-dhcp6-client.c
src/network/networkd-dhcp-prefix-delegation.c
src/network/networkd-dhcp6.c
src/network/networkd-json.c
src/systemd/sd-dhcp6-lease.h