]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix declarations for database files.
authorTed Lemon <source@isc.org>
Tue, 23 Feb 1999 17:51:24 +0000 (17:51 +0000)
committerTed Lemon <source@isc.org>
Tue, 23 Feb 1999 17:51:24 +0000 (17:51 +0000)
includes/cf/linux.h

index 35bd55a4a350a048791bbdd34b8bc7dca79d7459..f4b48453b811950188b114dd9ded308ff2b91be4 100644 (file)
@@ -76,14 +76,19 @@ extern int h_errno;
 
 #include <sys/time.h>          /* 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... */