]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp6-client: Implement Elapsed Time option
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 1 Sep 2014 10:21:33 +0000 (13:21 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 10 Sep 2014 09:56:24 +0000 (12:56 +0300)
commit346e13a25dc6f76d3bc9d8decd40dc4782b02d2a
tree4ff635bda1d1e87469d55087aeb8b87d6ef9aea4
parent9d19a679f23c7a72c326cbbbf44e0c9f423dec5d
sd-dhcp6-client: Implement Elapsed Time option

Implement Elapsed Time option as it is defined as MUST in RFC 3315,
section 22.9. The elapsed time value is a 1/100th of a second with
a max value of 0xffff, i.e. 655.35 seconds.

As the main loop might not be running yet when sd_dhcp6_client_start() is
called, fetch the monotonic time directly and not from the event loop
while in state DHCP6_STATE_STOPPED.
src/libsystemd-network/sd-dhcp6-client.c