~ubuntu-branches/ubuntu/oneiric/isc-dhcp/oneiric-security

« back to all changes in this revision

Viewing changes to includes/site.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Pollock
  • Date: 2009-09-02 22:34:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090902223425-nypo7bkftxffq41m
Tags: upstream-4.1.0
ImportĀ upstreamĀ versionĀ 4.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Site-specific definitions.
 
2
 
 
3
   For supported systems, you shouldn't need to make any changes here.
 
4
   However, you may want to, in order to deal with site-specific
 
5
   differences. */
 
6
 
 
7
/* Add any site-specific definitions and inclusions here... */
 
8
 
 
9
/* #include <site-foo-bar.h> */
 
10
/* #define SITE_FOOBAR */
 
11
 
 
12
/* Define this if you don't want dhcpd to run as a daemon and do want
 
13
   to see all its output printed to stdout instead of being logged via
 
14
   syslog().   This also makes dhcpd use the dhcpd.conf in its working
 
15
   directory and write the dhcpd.leases file there. */
 
16
 
 
17
/* #define DEBUG */
 
18
 
 
19
/* Define this to see what the parser is parsing.   You probably don't
 
20
   want to see this. */
 
21
 
 
22
/* #define DEBUG_TOKENS */
 
23
 
 
24
/* Define this to see dumps of incoming and outgoing packets.    This
 
25
   slows things down quite a bit... */
 
26
 
 
27
/* #define DEBUG_PACKET */
 
28
 
 
29
/* Define this if you want to see dumps of expression evaluation. */
 
30
 
 
31
/* #define DEBUG_EXPRESSIONS */
 
32
 
 
33
/* Define this if you want to see dumps of find_lease() in action. */
 
34
 
 
35
/* #define DEBUG_FIND_LEASE */
 
36
 
 
37
/* Define this if you want to see dumps of parsed expressions. */
 
38
 
 
39
/* #define DEBUG_EXPRESSION_PARSE */
 
40
 
 
41
/* Define this if you want to watch the class matching process. */
 
42
 
 
43
/* #define DEBUG_CLASS_MATCHING */
 
44
 
 
45
/* Define this if you want to track memory usage for the purpose of
 
46
   noticing memory leaks quickly. */
 
47
 
 
48
/* #define DEBUG_MEMORY_LEAKAGE */
 
49
 
 
50
/* Define this if you want exhaustive (and very slow) checking of the
 
51
   malloc pool for corruption. */
 
52
 
 
53
/* #define DEBUG_MALLOC_POOL */
 
54
 
 
55
/* Define this if you want to see a message every time a lease's state
 
56
   changes. */
 
57
/* #define DEBUG_LEASE_STATE_TRANSITIONS */
 
58
 
 
59
/* Define this if you want to maintain a history of the last N operations
 
60
   that changed reference counts on objects.   This can be used to debug
 
61
   cases where an object is dereferenced too often, or not often enough. */
 
62
 
 
63
/* #define DEBUG_RC_HISTORY */
 
64
 
 
65
/* Define this if you want to see the history every cycle. */
 
66
 
 
67
/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
 
68
 
 
69
/* This is the number of history entries to maintain - by default, 256. */
 
70
 
 
71
/* #define RC_HISTORY_MAX 10240 */
 
72
 
 
73
/* Define this if you want dhcpd to dump core when a non-fatal memory
 
74
   allocation error is detected (i.e., something that would cause a
 
75
   memory leak rather than a memory smash). */
 
76
 
 
77
/* #define POINTER_DEBUG */
 
78
 
 
79
/* Define this if you want debugging output for DHCP failover protocol
 
80
   messages. */
 
81
 
 
82
/* #define DEBUG_FAILOVER_MESSAGES */
 
83
 
 
84
/* Define this to include contact messages in failover message debugging.
 
85
   The contact messages are sent once per second, so this can generate a
 
86
   lot of log entries. */
 
87
 
 
88
/* #define DEBUG_FAILOVER_CONTACT_MESSAGES */
 
89
 
 
90
/* Define this if you want debugging output for DHCP failover protocol
 
91
   event timeout timing. */
 
92
 
 
93
/* #define DEBUG_FAILOVER_TIMING */
 
94
 
 
95
/* Define this if you want to include contact message timing, which is
 
96
   performed once per second and can generate a lot of log entries. */
 
97
 
 
98
/* #define DEBUG_FAILOVER_CONTACT_TIMING */
 
99
 
 
100
/* Define this if you want all leases written to the lease file, even if
 
101
   they are free leases that have never been used. */
 
102
 
 
103
/* #define DEBUG_DUMP_ALL_LEASES */
 
104
 
 
105
/* Define this if you want DHCP failover protocol support in the DHCP
 
106
   server. */
 
107
 
 
108
/* #define FAILOVER_PROTOCOL */
 
109
 
 
110
/* Define this if you want DNS update functionality to be available. */
 
111
 
 
112
#define NSUPDATE
 
113
 
 
114
/* Define this if you want the dhcpd.pid file to go somewhere other than
 
115
   the default (which varies from system to system, but is usually either
 
116
   /etc or /var/run. */
 
117
 
 
118
/* #define _PATH_DHCPD_PID      "/var/run/dhcpd.pid" */
 
119
 
 
120
/* Define this if you want the dhcpd.leases file (the dynamic lease database)
 
121
   to go somewhere other than the default location, which is normally
 
122
   /etc/dhcpd.leases. */
 
123
 
 
124
/* #define _PATH_DHCPD_DB       "/etc/dhcpd.leases" */
 
125
 
 
126
/* Define this if you want the dhcpd.conf file to go somewhere other than
 
127
   the default location.   By default, it goes in /etc/dhcpd.conf. */
 
128
 
 
129
/* #define _PATH_DHCPD_CONF     "/etc/dhcpd.conf" */
 
130
 
 
131
/* Network API definitions.   You do not need to choose one of these - if
 
132
   you don't choose, one will be chosen for you in your system's config
 
133
   header.    DON'T MESS WITH THIS UNLESS YOU KNOW WHAT YOU'RE DOING!!! */
 
134
 
 
135
/* Define this to use the standard BSD socket API.
 
136
 
 
137
   On many systems, the BSD socket API does not provide the ability to
 
138
   send packets to the 255.255.255.255 broadcast address, which can
 
139
   prevent some clients (e.g., Win95) from seeing replies.   This is
 
140
   not a problem on Solaris.
 
141
 
 
142
   In addition, the BSD socket API will not work when more than one
 
143
   network interface is configured on the server.
 
144
 
 
145
   However, the BSD socket API is about as efficient as you can get, so if
 
146
   the aforementioned problems do not matter to you, or if no other
 
147
   API is supported for your system, you may want to go with it. */
 
148
 
 
149
/* #define USE_SOCKETS */
 
150
 
 
151
/* Define this to use the Sun Streams NIT API.
 
152
 
 
153
   The Sun Streams NIT API is only supported on SunOS 4.x releases. */
 
154
 
 
155
/* #define USE_NIT */
 
156
 
 
157
/* Define this to use the Berkeley Packet Filter API.
 
158
 
 
159
   The BPF API is available on all 4.4-BSD derivatives, including
 
160
   NetBSD, FreeBSD and BSDI's BSD/OS.   It's also available on
 
161
   DEC Alpha OSF/1 in a compatibility mode supported by the Alpha OSF/1
 
162
   packetfilter interface. */
 
163
 
 
164
/* #define USE_BPF */
 
165
 
 
166
/* Define this to use the raw socket API.
 
167
 
 
168
   The raw socket API is provided on many BSD derivatives, and provides
 
169
   a way to send out raw IP packets.   It is only supported for sending
 
170
   packets - packets must be received with the regular socket API.
 
171
   This code is experimental - I've never gotten it to actually transmit
 
172
   a packet to the 255.255.255.255 broadcast address - so use it at your
 
173
   own risk. */
 
174
 
 
175
/* #define USE_RAW_SOCKETS */
 
176
 
 
177
/* Define this to change the logging facility used by dhcpd. */
 
178
 
 
179
/* #define DHCPD_LOG_FACILITY LOG_DAEMON */
 
180
 
 
181
 
 
182
/* Define this if you want to be able to execute external commands
 
183
   during conditional evaluation. */
 
184
 
 
185
/* #define ENABLE_EXECUTE */
 
186
 
 
187
/* Define this if you aren't debugging and you want to save memory
 
188
   (potentially a _lot_ of memory) by allocating leases in chunks rather
 
189
   than one at a time. */
 
190
 
 
191
#define COMPACT_LEASES
 
192
 
 
193
/* Define this if you want to be able to save and playback server operational
 
194
   traces. */
 
195
 
 
196
/* #define TRACING */