diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2018-01-04 14:11:40 +0100 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2018-01-04 14:22:43 +0100 |
commit | e0026dcbd21b172d51ac05e476044ac9504c1f71 (patch) | |
tree | 184af9cf42b7725b1686e3c715501381a250389d /src/libsystemd-network/sd-dhcp6-lease.c | |
parent | networkd: Add DHCPv6 as a configuration option to radv prefixes (diff) | |
download | systemd-e0026dcbd21b172d51ac05e476044ac9504c1f71.tar.xz systemd-e0026dcbd21b172d51ac05e476044ac9504c1f71.zip |
dhcp6: Name structs in DHCP6IA
Name structs containing IA NA with ID and T1 and T2 lifetimes and
IA TA containing only the ID so that the structs can be expressed
properly.
Diffstat (limited to 'src/libsystemd-network/sd-dhcp6-lease.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp6-lease.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-lease.c b/src/libsystemd-network/sd-dhcp6-lease.c index 6f604e072f..c0819b7383 100644 --- a/src/libsystemd-network/sd-dhcp6-lease.c +++ b/src/libsystemd-network/sd-dhcp6-lease.c @@ -49,7 +49,7 @@ int dhcp6_lease_ia_rebind_expire(const DHCP6IA *ia, uint32_t *expire) { valid = t; } - t = be32toh(ia->lifetime_t2); + t = be32toh(ia->ia_na.lifetime_t2); if (t > valid) return -EINVAL; @@ -144,7 +144,7 @@ int dhcp6_lease_get_iaid(sd_dhcp6_lease *lease, be32_t *iaid) { assert_return(lease, -EINVAL); assert_return(iaid, -EINVAL); - *iaid = lease->ia.id; + *iaid = lease->ia.ia_na.id; return 0; } |