chiark / gitweb /
libsystemd-dhcp: Update secs field only when sending Discover
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 31 Jan 2014 09:31:25 +0000 (11:31 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 31 Jan 2014 11:04:51 +0000 (12:04 +0100)
commit40e39f628308683fda5f77b43afd245b62958641
treecc032063a837828c5146e20bc4d83c27a300b9e3
parentf8fdefe4f50c5b1b34cd018e649deddd7af2519f
libsystemd-dhcp: Update secs field only when sending Discover

Compute the 'secs' field as seconds since start of lease acquisition
procedure. Start off with a value of zero and increase it only for
each resent DHCP discover message. See the discussion before and
after http://www.ietf.org/mail-archive/web/dhcwg/current/msg05836.html
and Section 3.1 of RFC 2131.
src/libsystemd-dhcp/sd-dhcp-client.c