64-bit time_t safe lease time

Joerg Wunsch j at ida.interface-business.de
Sun Jun 27 07:06:42 UTC 2004


As Martin Blapp wrote:

> Dag-Erling Smørgrav <des at des.no> has reported that the following patch
> is neccessary for dhclient to work on platforms with a 64-bit time_t.

I can not yet confirm that it helps in any way.  I tried it, but I
still get the erroneous message, and more importantly, dhclient
seemingly hangs most of the time (it only works in maybe 5 % of all
instances).  I compiled it with -g, and so far my analysis shows it
hangs in a select() timeout for OMAPI that became about as
nonsensically large as the lease time printout I recently reported (so
the select() never times out).  When this happens, it never even sends
a DHCP request, it probably waits for the link on the interface to
come up still.

Also, even with Dag-Erling's patch, in cases where dhclient succeeds,
it still starts that ``DHCP storm'' afterwards, i. e. in spite of
being granted the lease, it re-requests the lease over and over again
ad infinitum.

Right now, my impression is that ISC DHCP client is completely broken
for 64-bit time_t machines.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch at interface-systems.de        http://www.interface-systems.de/~j/


More information about the dhcp-hackers mailing list