chiark / gitweb /
sd-dhcp6-lease: Add helper function to compute remaining expiry time
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 25 Jun 2014 12:37:58 +0000 (15:37 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 26 Jun 2014 13:10:21 +0000 (16:10 +0300)
commit709d6710d047566c71f03e579a02c3d99fe15a3e
treea7d4386d9a0d2b20f15779f29d91e83a6eda287f
parentda6fe470e17fa02f3adedc779585caf8669252bd
sd-dhcp6-lease: Add helper function to compute remaining expiry time

Create a helper function to compute the remaining time in seconds from
time T2 to the IPv6 address with the longest lifetime. The computed
time is used as the Maximum Retransmission Duration in Rebinding state.
See RFC 3315, section 18.1.4. for details.
src/libsystemd-network/dhcp6-lease-internal.h
src/libsystemd-network/sd-dhcp6-lease.c