summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-lease-internal.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2014-11-04 11:20:43 -0600
committerTom Gundersen <teg@jklm.no>2014-11-18 18:25:43 +0100
commitd8d74ef06fa0ccf39084a6177e70e4c2297cca57 (patch)
tree4b76a54f0c2db48bf5aadbd56085621744fc47ce /src/libsystemd-network/dhcp-lease-internal.h
parentb77acbcf7d9070ac01333a1b98c6222bee599550 (diff)
sd-dhcp-client: fix REBOOT state handling
client->secs wasn't getting set in the REBOOT state, causing an assertion. REBOOT should work the same way as INIT, per RFC 2131: secs 2 Filled in by client, seconds elapsed since client began address acquisition or renewal process. REBOOT is necessary because some DHCP servers (eg on home routers) do not hand back the same IP address unless the 'ciaddr' field is filled with that address, which DISCOVER cannot do per the RFCs. This leads to multiple leases on machine reboot or DHCP client restart.
Diffstat (limited to 'src/libsystemd-network/dhcp-lease-internal.h')
0 files changed, 0 insertions, 0 deletions