64-bit time_t safe lease time
j at ida.interface-business.de
Mon Jun 28 07:09:38 PDT 2004
As Dag-Erling Smørgrav wrote:
> The attached patch addresses these inconsistencies, but I have not
> verified that it corrects the 64-bit time_t problem.
It seems to work, too. I backed out Martin Blapp's previous + my
GET_TIME() patch, and applied your one. I get a few compilation
cc -O -pipe -DCLIENT_PATH='"PATH=/sbin:/bin:/usr/sbin:/usr/bin"' -Dwarn=dhcp_warn -g -I/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/includes -DENABLE_POLLING_MODE -DNOMINUM -c /usr/src/contrib/isc-dhcp/client/dhclient.c
/usr/src/contrib/isc-dhcp/client/dhclient.c: In function `write_client_lease':
/usr/src/contrib/isc-dhcp/client/dhclient.c:2458: warning: passing arg 1 of `gmtime' from incompatible pointer type
/usr/src/contrib/isc-dhcp/client/dhclient.c:2468: warning: passing arg 1 of `gmtime' from incompatible pointer type
/usr/src/contrib/isc-dhcp/client/dhclient.c:2478: warning: passing arg 1 of `gmtime' from incompatible pointer type
but the resulting client appears to work fine:
# dhclient -v gem0
Internet Systems Consortium DHCP Client V3.0.1rc14
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Listening on BPF/gem0/08:00:20:fe:a2:6e
Sending on BPF/gem0/08:00:20:fe:a2:6e
Sending on Socket/fallback
DHCPDISCOVER on gem0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 18.104.22.168
DHCPREQUEST on gem0 to 255.255.255.255 port 67
DHCPACK from 22.214.171.124
bound to 126.96.36.199 -- renewal in 39365 seconds.
That looks reasonable.
J"org Wunsch Unix support engineer
joerg_wunsch at interface-systems.de http://www.interface-systems.de/~j/
More information about the freebsd-sparc64