From: Ted Lemon Date: Tue, 23 Feb 1999 17:51:24 +0000 (+0000) Subject: Fix declarations for database files. X-Git-Tag: V2-BETA-1-PATCH-15~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=412e2c40ede00ee3da5bb8b55085c6833fe3003d;p=thirdparty%2Fdhcp.git Fix declarations for database files. --- diff --git a/includes/cf/linux.h b/includes/cf/linux.h index 35bd55a4a..f4b48453b 100644 --- a/includes/cf/linux.h +++ b/includes/cf/linux.h @@ -76,14 +76,19 @@ extern int h_errno; #include /* gettimeofday()*/ -#ifndef _PATH_DHCPD_PID -#define _PATH_DHCPD_PID "/var/run/dhcpd.pid" -#endif -#ifndef _PATH_DHCLIENT_PID -#define _PATH_DHCLIENT_PID "/var/run/dhclient.pid" +/* Databases go in /var/state/dhcp. It would also be valid to put them + in /var/state/misc - indeed, given that there's only one lease file, it + would probably be better. However, I have some ideas for optimizing + the lease database that may result in a _lot_ of smaller files being + created, so in that context it makes more sense to have a seperate + directory. */ + +#ifndef _PATH_DHCPD_DB +#define _PATH_DHCPD_DB "/var/state/dhcp/dhcpd.leases" #endif + #ifndef _PATH_DHCLIENT_DB -#define _PATH_DHCLIENT_DB "/var/db/dhclient.leases" +#define _PATH_DHCLIENT_DB "/var/state/dhcp/dhclient.leases" #endif /* Varargs stuff... */