1996-05-22 07:37:16 +00:00
|
|
|
/* Site-specific definitions.
|
|
|
|
|
|
|
|
For supported systems, you shouldn't need to make any changes here.
|
|
|
|
However, you may want to, in order to deal with site-specific
|
|
|
|
differences. */
|
|
|
|
|
|
|
|
/* Add any site-specific definitions and inclusions here... */
|
|
|
|
|
|
|
|
/* #include <site-foo-bar.h> */
|
|
|
|
/* #define SITE_FOOBAR */
|
|
|
|
|
|
|
|
/* Define this if you don't want dhcpd to run as a daemon and do want
|
|
|
|
to see all its output printed to stdout instead of being logged via
|
|
|
|
syslog(). This also makes dhcpd use the dhcpd.conf in its working
|
|
|
|
directory and write the dhcpd.leases file there. */
|
|
|
|
|
|
|
|
/* #define DEBUG */
|
|
|
|
|
|
|
|
/* Define this to see what the parser is parsing. You probably don't
|
|
|
|
want to see this. */
|
|
|
|
|
|
|
|
/* #define DEBUG_TOKENS */
|
|
|
|
|
|
|
|
/* Define this to see dumps of incoming and outgoing packets. This
|
|
|
|
slows things down quite a bit... */
|
|
|
|
|
|
|
|
/* #define DEBUG_PACKET */
|
|
|
|
|
1998-11-05 18:48:24 +00:00
|
|
|
/* Define this if you want to see dumps of expression evaluation. */
|
1996-05-22 07:37:16 +00:00
|
|
|
|
1998-11-05 18:48:24 +00:00
|
|
|
/* #define DEBUG_EXPRESSIONS */
|
|
|
|
|
|
|
|
/* Define this if you want to see dumps of find_lease() in action. */
|
|
|
|
|
1999-03-11 01:36:23 +00:00
|
|
|
/* #define DEBUG_FIND_LEASE */
|
1998-11-05 18:48:24 +00:00
|
|
|
|
|
|
|
/* Define this if you want to see dumps of parsed expressions. */
|
|
|
|
|
|
|
|
/* #define DEBUG_EXPRESSION_PARSE */
|
1996-05-22 07:37:16 +00:00
|
|
|
|
1998-11-11 07:55:36 +00:00
|
|
|
/* Define this if you want to watch the class matching process. */
|
|
|
|
|
|
|
|
/* #define DEBUG_CLASS_MATCHING */
|
|
|
|
|
2000-01-25 01:18:47 +00:00
|
|
|
/* Define this if you want to track memory usage for the purpose of
|
|
|
|
noticing memory leaks quickly. */
|
|
|
|
|
2000-02-02 08:02:24 +00:00
|
|
|
/* #define DEBUG_MEMORY_LEAKAGE */
|
2009-04-07 19:55:52 +00:00
|
|
|
/* #define DEBUG_MEMORY_LEAKAGE_ON_EXIT */
|
2000-01-25 01:18:47 +00:00
|
|
|
|
|
|
|
/* Define this if you want exhaustive (and very slow) checking of the
|
|
|
|
malloc pool for corruption. */
|
|
|
|
|
2000-07-06 22:45:27 +00:00
|
|
|
/* #define DEBUG_MALLOC_POOL */
|
2000-01-25 01:18:47 +00:00
|
|
|
|
2001-04-16 22:17:58 +00:00
|
|
|
/* Define this if you want to see a message every time a lease's state
|
|
|
|
changes. */
|
|
|
|
/* #define DEBUG_LEASE_STATE_TRANSITIONS */
|
|
|
|
|
2000-01-25 01:18:47 +00:00
|
|
|
/* 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
|
|
|
|
cases where an object is dereferenced too often, or not often enough. */
|
|
|
|
|
2000-06-20 20:05:02 +00:00
|
|
|
/* #define DEBUG_RC_HISTORY */
|
2000-01-25 01:18:47 +00:00
|
|
|
|
2000-02-02 08:01:52 +00:00
|
|
|
/* Define this if you want to see the history every cycle. */
|
|
|
|
|
|
|
|
/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
|
2000-05-04 18:58:16 +00:00
|
|
|
|
2000-01-25 01:18:47 +00:00
|
|
|
/* This is the number of history entries to maintain - by default, 256. */
|
|
|
|
|
2001-02-13 17:48:51 +00:00
|
|
|
/* #define RC_HISTORY_MAX 10240 */
|
2000-01-25 01:18:47 +00:00
|
|
|
|
1999-10-25 15:48:45 +00:00
|
|
|
/* Define this if you want dhcpd to dump core when a non-fatal memory
|
|
|
|
allocation error is detected (i.e., something that would cause a
|
|
|
|
memory leak rather than a memory smash). */
|
|
|
|
|
2000-07-06 22:45:27 +00:00
|
|
|
/* #define POINTER_DEBUG */
|
1999-10-25 15:48:45 +00:00
|
|
|
|
1999-11-14 00:49:12 +00:00
|
|
|
/* Define this if you want debugging output for DHCP failover protocol
|
|
|
|
messages. */
|
|
|
|
|
2000-09-02 00:12:38 +00:00
|
|
|
/* #define DEBUG_FAILOVER_MESSAGES */
|
1999-11-14 00:49:12 +00:00
|
|
|
|
2008-09-24 16:18:56 +00:00
|
|
|
/* Define this to include contact messages in failover message debugging.
|
|
|
|
The contact messages are sent once per second, so this can generate a
|
|
|
|
lot of log entries. */
|
|
|
|
|
|
|
|
/* #define DEBUG_FAILOVER_CONTACT_MESSAGES */
|
|
|
|
|
1999-11-14 00:49:12 +00:00
|
|
|
/* Define this if you want debugging output for DHCP failover protocol
|
2008-09-24 16:18:56 +00:00
|
|
|
event timeout timing. */
|
1999-11-14 00:49:12 +00:00
|
|
|
|
2000-07-06 10:08:14 +00:00
|
|
|
/* #define DEBUG_FAILOVER_TIMING */
|
1999-11-14 00:49:12 +00:00
|
|
|
|
2008-09-24 16:18:56 +00:00
|
|
|
/* Define this if you want to include contact message timing, which is
|
|
|
|
performed once per second and can generate a lot of log entries. */
|
|
|
|
|
|
|
|
/* #define DEBUG_FAILOVER_CONTACT_TIMING */
|
|
|
|
|
2005-03-17 20:15:29 +00:00
|
|
|
/* Define this if you want all leases written to the lease file, even if
|
|
|
|
they are free leases that have never been used. */
|
|
|
|
|
|
|
|
/* #define DEBUG_DUMP_ALL_LEASES */
|
|
|
|
|
2010-05-26 22:25:10 +00:00
|
|
|
/* Define this if you want to see the requests and replies between the
|
|
|
|
DHCP code and the DNS library code. */
|
|
|
|
|
|
|
|
/* #define DEBUG_DNS_UPDATES */
|
|
|
|
|
1999-11-14 00:49:12 +00:00
|
|
|
/* Define this if you want DHCP failover protocol support in the DHCP
|
|
|
|
server. */
|
|
|
|
|
2008-02-28 21:21:56 +00:00
|
|
|
/* #define FAILOVER_PROTOCOL */
|
1999-11-14 00:49:12 +00:00
|
|
|
|
2000-06-20 20:05:02 +00:00
|
|
|
/* Define this if you want DNS update functionality to be available. */
|
|
|
|
|
|
|
|
#define NSUPDATE
|
|
|
|
|
1996-05-22 07:37:16 +00:00
|
|
|
/* Define this if you want the dhcpd.pid file to go somewhere other than
|
|
|
|
the default (which varies from system to system, but is usually either
|
|
|
|
/etc or /var/run. */
|
|
|
|
|
|
|
|
/* #define _PATH_DHCPD_PID "/var/run/dhcpd.pid" */
|
|
|
|
|
|
|
|
/* Define this if you want the dhcpd.leases file (the dynamic lease database)
|
|
|
|
to go somewhere other than the default location, which is normally
|
|
|
|
/etc/dhcpd.leases. */
|
|
|
|
|
|
|
|
/* #define _PATH_DHCPD_DB "/etc/dhcpd.leases" */
|
|
|
|
|
|
|
|
/* Define this if you want the dhcpd.conf file to go somewhere other than
|
|
|
|
the default location. By default, it goes in /etc/dhcpd.conf. */
|
|
|
|
|
|
|
|
/* #define _PATH_DHCPD_CONF "/etc/dhcpd.conf" */
|
|
|
|
|
|
|
|
/* Network API definitions. You do not need to choose one of these - if
|
|
|
|
you don't choose, one will be chosen for you in your system's config
|
1996-08-29 09:18:44 +00:00
|
|
|
header. DON'T MESS WITH THIS UNLESS YOU KNOW WHAT YOU'RE DOING!!! */
|
1996-05-22 07:37:16 +00:00
|
|
|
|
2009-04-30 18:42:52 +00:00
|
|
|
/* Define USE_SOCKETS to use the standard BSD socket API.
|
1996-05-22 07:37:16 +00:00
|
|
|
|
|
|
|
On many systems, the BSD socket API does not provide the ability to
|
|
|
|
send packets to the 255.255.255.255 broadcast address, which can
|
|
|
|
prevent some clients (e.g., Win95) from seeing replies. This is
|
|
|
|
not a problem on Solaris.
|
|
|
|
|
|
|
|
In addition, the BSD socket API will not work when more than one
|
|
|
|
network interface is configured on the server.
|
|
|
|
|
|
|
|
However, the BSD socket API is about as efficient as you can get, so if
|
|
|
|
the aforementioned problems do not matter to you, or if no other
|
|
|
|
API is supported for your system, you may want to go with it. */
|
|
|
|
|
2000-09-28 18:24:17 +00:00
|
|
|
/* #define USE_SOCKETS */
|
1996-05-22 07:37:16 +00:00
|
|
|
|
|
|
|
/* Define this to use the Sun Streams NIT API.
|
|
|
|
|
|
|
|
The Sun Streams NIT API is only supported on SunOS 4.x releases. */
|
|
|
|
|
|
|
|
/* #define USE_NIT */
|
|
|
|
|
|
|
|
/* Define this to use the Berkeley Packet Filter API.
|
|
|
|
|
|
|
|
The BPF API is available on all 4.4-BSD derivatives, including
|
|
|
|
NetBSD, FreeBSD and BSDI's BSD/OS. It's also available on
|
|
|
|
DEC Alpha OSF/1 in a compatibility mode supported by the Alpha OSF/1
|
|
|
|
packetfilter interface. */
|
|
|
|
|
|
|
|
/* #define USE_BPF */
|
|
|
|
|
|
|
|
/* Define this to use the raw socket API.
|
|
|
|
|
|
|
|
The raw socket API is provided on many BSD derivatives, and provides
|
|
|
|
a way to send out raw IP packets. It is only supported for sending
|
|
|
|
packets - packets must be received with the regular socket API.
|
|
|
|
This code is experimental - I've never gotten it to actually transmit
|
|
|
|
a packet to the 255.255.255.255 broadcast address - so use it at your
|
|
|
|
own risk. */
|
|
|
|
|
|
|
|
/* #define USE_RAW_SOCKETS */
|
1996-08-27 09:54:27 +00:00
|
|
|
|
|
|
|
/* Define this to change the logging facility used by dhcpd. */
|
|
|
|
|
|
|
|
/* #define DHCPD_LOG_FACILITY LOG_DAEMON */
|
2000-07-06 06:21:08 +00:00
|
|
|
|
2006-07-31 22:19:51 +00:00
|
|
|
|
|
|
|
/* Define this if you want to be able to execute external commands
|
|
|
|
during conditional evaluation. */
|
|
|
|
|
2008-02-28 21:21:56 +00:00
|
|
|
/* #define ENABLE_EXECUTE */
|
2006-07-31 22:19:51 +00:00
|
|
|
|
2000-07-06 06:21:08 +00:00
|
|
|
/* 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
|
2001-02-13 17:48:51 +00:00
|
|
|
|
|
|
|
/* Define this if you want to be able to save and playback server operational
|
|
|
|
traces. */
|
|
|
|
|
2008-02-28 21:21:56 +00:00
|
|
|
/* #define TRACING */
|
2010-05-27 17:19:26 +00:00
|
|
|
|
|
|
|
/* Define this if you want the server to use the previous behavior
|
|
|
|
when determining the DDNS TTL. If the user has specified a ddns-ttl
|
|
|
|
option that is used to detemine the ttl. (If the user specifies
|
|
|
|
an option that references the lease structure it is only usable
|
|
|
|
for v4. In that case v6 will use the default.) Otherwise when
|
|
|
|
defined the defaults are: v4 - 1/2 the lease time,
|
|
|
|
v6 - DEFAULT_DDNS_TTL. When undefined the defaults are 1/2 the
|
|
|
|
(preferred) lease time for both but with a cap on the maximum. */
|
|
|
|
|
|
|
|
/* #define USE_OLD_DDNS_TTL */
|
|
|
|
|
2011-05-11 00:38:56 +00:00
|
|
|
/* Define this if you want a DHCPv6 server to send replies to the
|
|
|
|
source port of the message it received. This is useful for testing
|
|
|
|
but is only included for backwards compatibility. */
|
|
|
|
/* #define REPLY_TO_SOURCE_PORT */
|
2011-07-01 12:07:09 +00:00
|
|
|
|
|
|
|
/* Define this if you want to allow domain list in domain-name option.
|
|
|
|
RFC2132 does not allow that behavior, but it is somewhat used due
|
|
|
|
to historic reasons. Note that it may be removed some time in the
|
|
|
|
future. */
|
|
|
|
|
|
|
|
#define ACCEPT_LIST_IN_DOMAIN_NAME
|