DHCPREQUEST not working with gettimeofday() after system time jumps

Jiri Popelka jpopelka at redhat.com
Mon Sep 15 10:17:17 UTC 2014


On 09/04/2014 08:32 AM, Bertram Stemer wrote:
> When using the isc-dhcp client we observed
> a problem when the system time performs a jump.
>
> The isc-dhcp client (4.2.3) uses the gettimeofday() function which,
> IMHO, shall not
> be used for timeout or interval calculation. You have to use a monotonic
> clock
> instead. A time jump can lead to the problem that the client does not
> send out
> the DHCPREQUEST message within the offered lease time.

We've seen this problem too:
https://bugzilla.redhat.com/show_bug.cgi?id=916116
https://bugzilla.redhat.com/show_bug.cgi?id=1093803

--
Jiri



More information about the dhcp-users mailing list