diffs for aging of leases files
HIBBS, BARR (PB)
RBHIBBS at msg.pacbell.com
Thu Sep 9 19:17:09 UTC 1999
Ted et al.--
attached is a diff file that covers 2 proposed modifications:
1. "aging" of the leases files;
2. compilation on HP-UX systems.
The first proposed modification changes the way in which leases files are
created and renamed so that the server will have the following behavior:
* when the server starts, the most recently created leases file will
be renamed to <leases-file-name>.<number>, where <leases-file-name> is given
by the variable 'path_dhcpd_db' and <number> is derived from the system
clock by converting the value returned by the GET_TIME() macro to an
integer.
* a new leases file is then created with the name given by the
variable 'path_dhcpd_db.'
* the result of this change is that a serialized set of files will be
preserved until removed that captures the history of the leases file each
time the server is started.
My operations staff requested this change nearly two years ago and we have
been running it very successfully since beta version 5-16. When someone
requested similar behavior last week on the mailing list it occurred to me
that it would be a generally useful change.
The second proposed change consists of four inter-related parts:
1. specific configuration statements for HP-UX rather than default or
generic values;
2. provision for the GNUC compiler;
3. minor code changes to errwarn.c to compile correctly;
4. minor change to icmp.c to include 'ip.h' and 'ip_icmp.h' from
'includes/netinet' rather than 'netinet' (which implies
'/usr/include/netinet' for HP-UX.)
--Barr
<<leasename.diff>>
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: leasename.diff
More information about the dhcp-hackers
mailing list