64-bit time_t safe lease time

Martin Blapp mb at imp.ch
Sun Jun 27 08:20:14 UTC 2004


Hi,

> 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.

Does it help if you define TIME as int32_t ?

--- ./includes/cf/freebsd.h.orig        Sun Jun 27 10:19:07 2004
+++ ./includes/cf/freebsd.h     Sun Jun 27 10:19:28 2004
@@ -79,7 +79,7 @@

 /* Time stuff... */
 #include <sys/time.h>
-#define TIME time_t
+#define TIME int32_t
 #define GET_TIME(x)    time ((x))

 #define HAVE_SA_LEN

Martin


More information about the dhcp-hackers mailing list