[systemd-devel] [PATCH 0/3] Add DHCPv6 Elapsed Time option

Patrik Flykt patrik.flykt at linux.intel.com
Mon Sep 1 03:21:32 PDT 2014


	Hi,

This patch implements the DHCPv6 Elapsed Time option. RFC 3315 says
that this option is a MUST, so it'd be better to have it implemented.

The patch is quite straight forward, the time at transaction start is
recorded and the elapsed time calculated when the message is sent. In
order to work in a situation where the main loop is not yet running,
the start time in the stopped state is read directly from the clock.
All other states are entered via callbacks attached to the main loop,
which means they can request the current time from the sd_event itself.

The test case for this option verifies that the option is present and
has a proper length.


Cheers,

	Patrik


Patrik Flykt (3):
  sd-dhcp6-client: Implement Elapsed Time option
  test-dhcp6-client: Add checks for Elapsed Time option
  TODO: Remove Elapsed Time DHCPv6 option as it is done

 TODO                                       |  1 -
 src/libsystemd-network/sd-dhcp6-client.c   | 40 ++++++++++++++++++++++--------
 src/libsystemd-network/test-dhcp6-client.c | 32 +++++++++++++++++++++---
 3 files changed, 58 insertions(+), 15 deletions(-)

-- 
1.9.1



More information about the systemd-devel mailing list