From: Ted Lemon Date: Thu, 6 Jul 2000 06:21:08 +0000 (+0000) Subject: Use compact leases by default. X-Git-Tag: V3-BETA-2-PATCH-1~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0efccee583e84e6eff2edbba4313634e60f99ea;p=thirdparty%2Fdhcp.git Use compact leases by default. --- diff --git a/includes/site.h b/includes/site.h index 8a6210b5e..d3c084b63 100644 --- a/includes/site.h +++ b/includes/site.h @@ -50,7 +50,7 @@ /* Define this if you want exhaustive (and very slow) checking of the malloc pool for corruption. */ -/* #define DEBUG_MALLOC_POOL */ +#define DEBUG_MALLOC_POOL /* Define this if you want to maintain a history of the last N operations that changed reference counts on objects. This can be used to debug @@ -70,17 +70,17 @@ allocation error is detected (i.e., something that would cause a memory leak rather than a memory smash). */ -/* #define POINTER_DEBUG */ +#define POINTER_DEBUG /* Define this if you want debugging output for DHCP failover protocol messages. */ -/* #define DEBUG_FAILOVER_MESSAGES */ +#define DEBUG_FAILOVER_MESSAGES /* Define this if you want debugging output for DHCP failover protocol lease assignment timing. */ -/* #define DEBUG_FAILOVER_TIMING */ +#define DEBUG_FAILOVER_TIMING /* Define this if you want DHCP failover protocol support in the DHCP server. */ @@ -157,3 +157,9 @@ /* Define this to change the logging facility used by dhcpd. */ /* #define DHCPD_LOG_FACILITY LOG_DAEMON */ + +/* Define this if you aren't debugging and you want to save memory + (potentially a _lot_ of memory) by allocating leases in chunks rather + than one at a time. */ + +#define COMPACT_LEASES