xref: /netbsd/external/bsd/nsd/include/config.h (revision cb958623)
1 /* config.h.  Generated from config.h.in by configure.  */
2 /* config.h.in.  Generated from configure.ac by autoheader.  */
3 
4 /* apply the noreturn attribute to a function that exits the program */
5 #define ATTR_NORETURN __attribute__((__noreturn__))
6 
7 /* apply the weak attribute to a symbol */
8 #define ATTR_WEAK __attribute__((__weak__))
9 
10 /* Define this to enable BIND8 like NSTATS & XSTATS. */
11 #define BIND8_STATS /**/
12 
13 /* NSD default chroot directory */
14 #define CHROOTDIR "/var/chroot/nsd"
15 
16 /* Command line arguments used with configure */
17 #define CONFCMDLINE ""
18 
19 /* NSD config dir */
20 #define CONFIGDIR CHROOTDIR "/etc/nsd"
21 
22 /* Pathname to the NSD configuration file */
23 #define CONFIGFILE CHROOTDIR "/etc/nsd/nsd.conf"
24 
25 /* number of arguments for CPU_OR is three */
26 /* #undef CPU_OR_THREE_ARGS */
27 
28 /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
29    */
30 /* #undef DARWIN_BROKEN_SETREUID */
31 
32 /* Pathname to the NSD database */
33 #define DBFILE CHROOTDIR "/var/db/nsd/nsd.db"
34 
35 /* Whether ERR_load_SSL_strings is deprecated */
36 /* #undef DEPRECATED_ERR_LOAD_SSL_STRINGS */
37 
38 /* Whether SHA1_Init is deprecated */
39 /* #undef DEPRECATED_SHA1_INIT */
40 
41 /* default dnstap socket path */
42 /* #undef DNSTAP_SOCKET_PATH */
43 
44 /* Define to the default maximum message length with EDNS. */
45 #define EDNS_MAX_MESSAGE_LEN 1232
46 
47 /* Define to the default facility for syslog. */
48 #define FACILITY LOG_DAEMON
49 
50 /* Define to 1 if you have the `accept4' function. */
51 #define HAVE_ACCEPT4 1
52 
53 /* Define to 1 if you have the `alarm' function. */
54 #define HAVE_ALARM 1
55 
56 /* Define to 1 if you have the `arc4random' function. */
57 #define HAVE_ARC4RANDOM 1
58 
59 /* Define to 1 if you have the `arc4random_uniform' function. */
60 #define HAVE_ARC4RANDOM_UNIFORM 1
61 
62 /* Define to 1 if you have the <arpa/inet.h> header file. */
63 #define HAVE_ARPA_INET_H 1
64 
65 /* Whether the C compiler accepts the "format" attribute */
66 #define HAVE_ATTR_FORMAT 1
67 
68 /* Whether the C compiler accepts the "noreturn" attribute */
69 #define HAVE_ATTR_NORETURN 1
70 
71 /* Whether the C compiler accepts the "unused" attribute */
72 #define HAVE_ATTR_UNUSED 1
73 
74 /* Whether the C compiler accepts the "weak" attribute */
75 #define HAVE_ATTR_WEAK 1
76 
77 /* Define to 1 if you have the `b64_ntop' function. */
78 /* #undef HAVE_B64_NTOP */
79 
80 /* Define to 1 if you have the `b64_pton' function. */
81 /* #undef HAVE_B64_PTON */
82 
83 /* Define to 1 if you have the `basename' function. */
84 #define HAVE_BASENAME 1
85 
86 /* Define to 1 if your system has a working `chown' function. */
87 #define HAVE_CHOWN 1
88 
89 /* Define to 1 if you have the `chroot' function. */
90 #define HAVE_CHROOT 1
91 
92 /* Define to 1 if you have the `clock_gettime' function. */
93 #define HAVE_CLOCK_GETTIME 1
94 
95 /* Define to 1 if the system has the type `cpuid_t'. */
96 #define HAVE_CPUID_T 1
97 
98 /* Define to 1 if the system has the type `cpuset_t'. */
99 /* #undef HAVE_CPUSET_T */
100 
101 /* Define to 1 if the system has the type `cpu_set_t'. */
102 /* #undef HAVE_CPU_SET_T */
103 
104 /* Define to 1 if you have the `CRYPTO_memcmp' function. */
105 #define HAVE_CRYPTO_MEMCMP 1
106 
107 /* if time.h provides ctime_r prototype */
108 #define HAVE_CTIME_R_PROTO 1
109 
110 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
111    don't. */
112 #define HAVE_DECL_REALLOCARRAY 0
113 
114 /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
115    0 if you don't. */
116 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 1
117 
118 /* Define to 1 if you have the declaration of `SSL_CTX_set_tmp_ecdh', and to 0
119    if you don't. */
120 #define HAVE_DECL_SSL_CTX_SET_TMP_ECDH 1
121 
122 /* Define to 1 if you have the `dup2' function. */
123 #define HAVE_DUP2 1
124 
125 /* Define to 1 if you have the `EC_KEY_new_by_curve_name' function. */
126 #define HAVE_EC_KEY_NEW_BY_CURVE_NAME 1
127 
128 /* Define to 1 if you have the <endian.h> header file. */
129 #define HAVE_ENDIAN_H 1
130 
131 /* Define to 1 if you have the `endpwent' function. */
132 #define HAVE_ENDPWENT 1
133 
134 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
135 /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */
136 
137 /* Define to 1 if you have the `ERR_load_SSL_strings' function. */
138 #define HAVE_ERR_LOAD_SSL_STRINGS 1
139 
140 /* Define to 1 if you have the `event_base_free' function. */
141 #define HAVE_EVENT_BASE_FREE 1
142 
143 /* Define to 1 if you have the `event_base_get_method' function. */
144 #define HAVE_EVENT_BASE_GET_METHOD 1
145 
146 /* Define to 1 if you have the `event_base_new' function. */
147 #define HAVE_EVENT_BASE_NEW 1
148 
149 /* Define to 1 if you have the `event_base_once' function. */
150 #define HAVE_EVENT_BASE_ONCE 1
151 
152 /* Define to 1 if you have the <event.h> header file. */
153 #define HAVE_EVENT_H 1
154 
155 /* Define to 1 if you have the `EVP_cleanup' function. */
156 /* #undef HAVE_EVP_CLEANUP */
157 
158 /* Define to 1 if you have the `EVP_MAC_CTX_get_mac_size' function. */
159 /* #undef HAVE_EVP_MAC_CTX_GET_MAC_SIZE */
160 
161 /* Define to 1 if you have the `EVP_MAC_CTX_new' function. */
162 /* #undef HAVE_EVP_MAC_CTX_NEW */
163 
164 /* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */
165 /* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */
166 
167 /* Define to 1 if you have the `ev_default_loop' function. */
168 /* #undef HAVE_EV_DEFAULT_LOOP */
169 
170 /* Define to 1 if you have the `ev_loop' function. */
171 /* #undef HAVE_EV_LOOP */
172 
173 /* Define to 1 if you have the `explicit_bzero' function. */
174 /* #undef HAVE_EXPLICIT_BZERO */
175 
176 /* Define to 1 if you have the <fcntl.h> header file. */
177 #define HAVE_FCNTL_H 1
178 
179 /* Define to 1 if you have the `fork' function. */
180 #define HAVE_FORK 1
181 
182 /* Define to 1 if you have the `freeaddrinfo' function. */
183 #define HAVE_FREEADDRINFO 1
184 
185 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
186 #define HAVE_FSEEKO 1
187 
188 /* Define to 1 if you have the `gai_strerror' function. */
189 #define HAVE_GAI_STRERROR 1
190 
191 /* Define to 1 if you have the `getaddrinfo' function. */
192 #define HAVE_GETADDRINFO 1
193 
194 /* Define to 1 if you have the `gethostname' function. */
195 #define HAVE_GETHOSTNAME 1
196 
197 /* Define to 1 if you have the `getifaddrs' function. */
198 #define HAVE_GETIFADDRS 1
199 
200 /* Define to 1 if you have the `getnameinfo' function. */
201 #define HAVE_GETNAMEINFO 1
202 
203 /* Define to 1 if you have the `getpwnam' function. */
204 #define HAVE_GETPWNAM 1
205 
206 /* Define to 1 if you have the `getrandom' function. */
207 #define HAVE_GETRANDOM 1
208 
209 /* Define to 1 if you have the `glob' function. */
210 #define HAVE_GLOB 1
211 
212 /* Define to 1 if you have the <glob.h> header file. */
213 #define HAVE_GLOB_H 1
214 
215 /* Define to 1 if you have the <grp.h> header file. */
216 #define HAVE_GRP_H 1
217 
218 /* Define to 1 if you have the `HMAC_CTX_new' function. */
219 #define HAVE_HMAC_CTX_NEW 1
220 
221 /* Define to 1 if you have the `HMAC_CTX_reset' function. */
222 #define HAVE_HMAC_CTX_RESET 1
223 
224 /* Define to 1 if you have the <ifaddrs.h> header file. */
225 #define HAVE_IFADDRS_H 1
226 
227 /* Define to 1 if you have the `inet_aton' function. */
228 #define HAVE_INET_ATON 1
229 
230 /* Define to 1 if you have the `inet_ntop' function. */
231 #define HAVE_INET_NTOP 1
232 
233 /* Define to 1 if you have the `inet_pton' function. */
234 #define HAVE_INET_PTON 1
235 
236 /* Define to 1 if you have the `initgroups' function. */
237 #define HAVE_INITGROUPS 1
238 
239 /* Define to 1 if you have the <inttypes.h> header file. */
240 #define HAVE_INTTYPES_H 1
241 
242 /* Define to 1 if you have the `crypto' library (-lcrypto). */
243 #define HAVE_LIBCRYPTO 1
244 
245 /* Define to 1 if you have the <limits.h> header file. */
246 #define HAVE_LIMITS_H 1
247 
248 /* Define to 1 if you have the `localtime_r' function. */
249 #define HAVE_LOCALTIME_R 1
250 
251 /* Define to 1 if you have the <login_cap.h> header file. */
252 #define HAVE_LOGIN_CAP_H 1
253 
254 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
255    to 0 otherwise. */
256 #define HAVE_MALLOC 1
257 
258 /* Define to 1 if you have the `memcpy' function. */
259 #define HAVE_MEMCPY 1
260 
261 /* Define to 1 if you have the `memmove' function. */
262 #define HAVE_MEMMOVE 1
263 
264 /* Define to 1 if you have the <memory.h> header file. */
265 #define HAVE_MEMORY_H 1
266 
267 /* Define to 1 if you have the `memset' function. */
268 #define HAVE_MEMSET 1
269 
270 /* Define to 1 if you have the `mmap' function. */
271 #define HAVE_MMAP 1
272 
273 /* If sys/socket.h has a struct mmsghdr. */
274 #define HAVE_MMSGHDR 1
275 
276 /* Define to 1 if you have the `munmap' function. */
277 /* #undef HAVE_MUNMAP */
278 
279 /* Define to 1 if you have the <netdb.h> header file. */
280 #define HAVE_NETDB_H 1
281 
282 /* Define to 1 if you have the <netinet/in.h> header file. */
283 #define HAVE_NETINET_IN_H 1
284 
285 /* Define to 1 if you have the <netinet/tcp.h> header file. */
286 #define HAVE_NETINET_TCP_H 1
287 
288 /* Define to 1 if you have the <openssl/core_names.h> header file. */
289 /* #undef HAVE_OPENSSL_CORE_NAMES_H */
290 
291 /* Define to 1 if you have the <openssl/err.h> header file. */
292 #define HAVE_OPENSSL_ERR_H 1
293 
294 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
295 #define HAVE_OPENSSL_INIT_CRYPTO 1
296 
297 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
298 #define HAVE_OPENSSL_INIT_SSL 1
299 
300 /* Define to 1 if you have the <openssl/ocsp.h> header file. */
301 #define HAVE_OPENSSL_OCSP_H 1
302 
303 /* Define to 1 if you have the <openssl/rand.h> header file. */
304 #define HAVE_OPENSSL_RAND_H 1
305 
306 /* Define to 1 if you have the <openssl/ssl.h> header file. */
307 #define HAVE_OPENSSL_SSL_H 1
308 
309 /* Define to 1 if you have the `ppoll' function. */
310 #define HAVE_PPOLL 1
311 
312 /* Define to 1 if you have the `pselect' function. */
313 #define HAVE_PSELECT 1
314 
315 /* if sys/select.h provides pselect prototype */
316 #define HAVE_PSELECT_PROTO 1
317 
318 /* Define to 1 if you have the `pwrite' function. */
319 #define HAVE_PWRITE 1
320 
321 /* If we have reallocarray(3) */
322 #define HAVE_REALLOCARRAY 1
323 
324 /* Define if recvmmsg is implemented */
325 #define HAVE_RECVMMSG 1
326 
327 /* Define to 1 if you have the <sched.h> header file. */
328 #define HAVE_SCHED_H 1
329 
330 /* Define this if sched_setaffinity is available */
331 #define HAVE_SCHED_SETAFFINITY 1
332 
333 /* Define if sendmmsg is implemented */
334 #define HAVE_SENDMMSG 1
335 
336 /* Define to 1 if you have the `setproctitle' function. */
337 #define HAVE_SETPROCTITLE 1
338 
339 /* Define to 1 if you have the `setregid' function. */
340 #define HAVE_SETREGID 1
341 
342 /* Define to 1 if you have the `setresgid' function. */
343 /* #undef HAVE_SETRESGID */
344 
345 /* Define to 1 if you have the `setresuid' function. */
346 /* #undef HAVE_SETRESUID */
347 
348 /* Define to 1 if you have the `setreuid' function. */
349 #define HAVE_SETREUID 1
350 
351 /* Define to 1 if you have the `setusercontext' function. */
352 #define HAVE_SETUSERCONTEXT 1
353 
354 /* Define to 1 if you have the `SHA1_Init' function. */
355 #define HAVE_SHA1_INIT 1
356 
357 /* Define to 1 if you have the `sigaction' function. */
358 #define HAVE_SIGACTION 1
359 
360 /* Define to 1 if you have the <signal.h> header file. */
361 #define HAVE_SIGNAL_H 1
362 
363 /* Define to 1 if you have the `sigprocmask' function. */
364 #define HAVE_SIGPROCMASK 1
365 
366 /* Define to 1 if you have the `snprintf' function. */
367 #define HAVE_SNPRINTF 1
368 
369 /* Define to 1 if you have the `socket' function. */
370 #define HAVE_SOCKET 1
371 
372 /* Define if you have the SSL libraries installed. */
373 #define HAVE_SSL /**/
374 
375 /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
376 #define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1
377 
378 /* Define to 1 if you have the `SSL_get1_peer_certificate' function. */
379 /* #undef HAVE_SSL_GET1_PEER_CERTIFICATE */
380 
381 /* Define to 1 if you have the <stdarg.h> header file. */
382 #define HAVE_STDARG_H 1
383 
384 /* Define to 1 if you have the <stddef.h> header file. */
385 #define HAVE_STDDEF_H 1
386 
387 /* Define to 1 if you have the <stdint.h> header file. */
388 #define HAVE_STDINT_H 1
389 
390 /* Define to 1 if you have the <stdlib.h> header file. */
391 #define HAVE_STDLIB_H 1
392 
393 /* Define to 1 if you have the `strcasecmp' function. */
394 #define HAVE_STRCASECMP 1
395 
396 /* Define to 1 if you have the `strchr' function. */
397 #define HAVE_STRCHR 1
398 
399 /* Define to 1 if you have the `strdup' function. */
400 #define HAVE_STRDUP 1
401 
402 /* Define to 1 if you have the `strerror' function. */
403 #define HAVE_STRERROR 1
404 
405 /* Define to 1 if you have the `strftime' function. */
406 #define HAVE_STRFTIME 1
407 
408 /* Define to 1 if you have the <strings.h> header file. */
409 #define HAVE_STRINGS_H 1
410 
411 /* Define to 1 if you have the <string.h> header file. */
412 #define HAVE_STRING_H 1
413 
414 /* Define to 1 if you have the `strlcat' function. */
415 #define HAVE_STRLCAT 1
416 
417 /* Define to 1 if you have the `strlcpy' function. */
418 #define HAVE_STRLCPY 1
419 
420 /* Define to 1 if you have the `strncasecmp' function. */
421 #define HAVE_STRNCASECMP 1
422 
423 /* Define to 1 if you have the `strptime' function. */
424 #define HAVE_STRPTIME 1
425 
426 /* Define to 1 if you have the `strtol' function. */
427 #define HAVE_STRTOL 1
428 
429 /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
430 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
431 
432 /* Define to 1 if `st_mtimensec' is a member of `struct stat'. */
433 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
434 
435 /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
436 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
437 
438 /* If time.h has a struct timespec (for pselect). */
439 #define HAVE_STRUCT_TIMESPEC 1
440 
441 /* Define to 1 if you have the `sysconf' function. */
442 /* #undef HAVE_SYSCONF */
443 
444 /* Define to 1 if you have the <syslog.h> header file. */
445 #define HAVE_SYSLOG_H 1
446 
447 /* Define to 1 if systemd should be used */
448 /* #undef HAVE_SYSTEMD */
449 
450 /* Define to 1 if you have the <sys/bitypes.h> header file. */
451 /* #undef HAVE_SYS_BITYPES_H */
452 
453 /* Define to 1 if you have the <sys/cpuset.h> header file. */
454 /* #undef HAVE_SYS_CPUSET_H */
455 
456 /* Define to 1 if you have the <sys/mman.h> header file. */
457 #define HAVE_SYS_MMAN_H 1
458 
459 /* Define to 1 if you have the <sys/param.h> header file. */
460 #define HAVE_SYS_PARAM_H 1
461 
462 /* Define to 1 if you have the <sys/random.h> header file. */
463 #define HAVE_SYS_RANDOM_H 1
464 
465 /* Define to 1 if you have the <sys/select.h> header file. */
466 #define HAVE_SYS_SELECT_H 1
467 
468 /* Define to 1 if you have the <sys/socket.h> header file. */
469 #define HAVE_SYS_SOCKET_H 1
470 
471 /* Define to 1 if you have the <sys/stat.h> header file. */
472 #define HAVE_SYS_STAT_H 1
473 
474 /* Define to 1 if you have the <sys/types.h> header file. */
475 #define HAVE_SYS_TYPES_H 1
476 
477 /* Define to 1 if you have the <sys/un.h> header file. */
478 #define HAVE_SYS_UN_H 1
479 
480 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
481 #define HAVE_SYS_WAIT_H 1
482 
483 /* Define to 1 if you have the <tcpd.h> header file. */
484 #define HAVE_TCPD_H 1
485 
486 /* Define to 1 if you have the <time.h> header file. */
487 #define HAVE_TIME_H 1
488 
489 /* Define if TLS 1.3 is supported by OpenSSL */
490 #define HAVE_TLS_1_3 1
491 
492 /* Define to 1 if you have the `tzset' function. */
493 #define HAVE_TZSET 1
494 
495 /* Define to 1 if you have the <unistd.h> header file. */
496 #define HAVE_UNISTD_H 1
497 
498 /* Define this if you have double va_list definitions. */
499 /* #undef HAVE_VA_LIST_DOUBLE_DEF */
500 
501 /* Define to 1 if you have the `vfork' function. */
502 #define HAVE_VFORK 1
503 
504 /* Define to 1 if you have the <vfork.h> header file. */
505 /* #undef HAVE_VFORK_H */
506 
507 /* Define to 1 if `fork' works. */
508 #define HAVE_WORKING_FORK 1
509 
510 /* Define to 1 if `vfork' works. */
511 #define HAVE_WORKING_VFORK 1
512 
513 /* Define to 1 if you have the `writev' function. */
514 #define HAVE_WRITEV 1
515 
516 /* Define to the default nsd identity. */
517 #define IDENTITY "NetBSD server"
518 
519 /* Define this to enable IPv6 support. */
520 /* #undef INET6 **/
521 
522 /* If flex defines yy_current_buffer as a macro */
523 /* #undef LEX_DEFINES_YY_CURRENT_BUFFER */
524 
525 /* Define to the maximum message length to pass to syslog. */
526 #define MAXSYSLOGMSGLEN 512
527 
528 /* Define this to cleanup memory at exit (eg. for valgrind, etc.) */
529 /* #undef MEMCLEAN */
530 
531 /* Define if memcmp() does not compare unsigned bytes */
532 /* #undef MEMCMP_IS_BROKEN */
533 
534 /* Define this to enable response minimalization to reduce truncation. */
535 #define MINIMAL_RESPONSES /**/
536 
537 /* Define if mkdir has one argument. */
538 /* #undef MKDIR_HAS_ONE_ARG */
539 
540 /* Undefine this to enable internal runtime checks. */
541 #define NDEBUG /**/
542 
543 /* Define if the network stack does not fully support nonblocking io (causes
544    lower performance). */
545 /* #undef NONBLOCKING_IS_BROKEN */
546 
547 /* Define to the default nsd-control port. */
548 #define NSD_CONTROL_PORT 8952
549 
550 /* Define to nsd-control proto version. */
551 #define NSD_CONTROL_VERSION 1
552 
553 /* Pathname to start nsd from nsd-control */
554 #define NSD_START_PATH "/usr/sbin/nsd"
555 
556 /* Define this to enable NSEC3 support. */
557 #define NSEC3 /**/
558 
559 /* Define to the address where bug reports for this package should be sent. */
560 #define PACKAGE_BUGREPORT "nsd-bugs@nlnetlabs.nl"
561 
562 /* Define to the full name of this package. */
563 #define PACKAGE_NAME "NSD"
564 
565 /* Define to the full name and version of this package. */
566 #define PACKAGE_STRING "NSD 4.6.0"
567 
568 /* Define to the one symbol short name of this package. */
569 #define PACKAGE_TARNAME "nsd"
570 
571 /* Define to the home page for this package. */
572 #define PACKAGE_URL ""
573 
574 /* Define to the version of this package. */
575 #define PACKAGE_VERSION "4.6.0"
576 
577 /* Define this to use packed structure alignment. */
578 /* #undef PACKED_STRUCTS */
579 
580 /* Pathname to the NSD pidfile */
581 #define PIDFILE CHROOTDIR "/var/run/nsd.pid"
582 
583 /* Define this to enable rate limiting. */
584 #define RATELIMIT 1
585 
586 /* Define this to set ratelimit to off by default. */
587 #define RATELIMIT_DEFAULT_OFF 1
588 
589 /* If reallocarray needs defines to appear in the headers */
590 #define REALLOCARRAY_NEEDS_DEFINES 1
591 
592 /* Return type of signal handlers, but autoconf 2.70 says 'your code may
593    safely assume C89 semantics that RETSIGTYPE is void.' */
594 #define RETSIGTYPE void
595 
596 /* Define this to configure as a root server. */
597 /* #undef ROOT_SERVER */
598 
599 /* The size of `off_t', as computed by sizeof. */
600 #define SIZEOF_OFF_T 8
601 
602 /* The size of `void*', as computed by sizeof. */
603 #define SIZEOF_VOIDP 8
604 
605 /* Define to 1 if you have the ANSI C header files. */
606 #define STDC_HEADERS 1
607 
608 /* strptime is available from time.h with some defines. */
609 /* #undef STRPTIME_NEEDS_DEFINES */
610 
611 /* use default strptime. */
612 #define STRPTIME_WORKS 1
613 
614 /* Define to the backlog to be used with listen. */
615 #define TCP_BACKLOG 256
616 
617 /* Define to the default maximum message length. */
618 #define TCP_MAX_MESSAGE_LEN 65535
619 
620 /* Define to the default tcp port. */
621 #define TCP_PORT "53"
622 
623 /* Define to the default tcp timeout. */
624 #define TCP_TIMEOUT 120
625 
626 /* Define to the default DNS over TLS port. */
627 #define TLS_PORT "853"
628 
629 /* Define to the default maximum udp message length. */
630 #define UDP_MAX_MESSAGE_LEN 512
631 
632 /* Define to the default udp port. */
633 #define UDP_PORT "53"
634 
635 /* the user name to drop privileges to */
636 #define USER "_nsd"
637 
638 /* Define to 1 to enable dnstap support */
639 /* #undef USE_DNSTAP */
640 
641 /* Define if you want to use internal select based events */
642 /* #undef USE_MINI_EVENT */
643 
644 /* Define this to enable mmap instead of malloc. Experimental. */
645 /* #undef USE_MMAP_ALLOC */
646 
647 /* Define this to configure to use the radix tree. */
648 #define USE_RADIX_TREE /**/
649 
650 /* Enable extensions on AIX 3, Interix.  */
651 #ifndef _ALL_SOURCE
652 # define _ALL_SOURCE 1
653 #endif
654 /* Enable GNU extensions on systems that have them.  */
655 #ifndef _GNU_SOURCE
656 # define _GNU_SOURCE 1
657 #endif
658 /* Enable threading extensions on Solaris.  */
659 #ifndef _POSIX_PTHREAD_SEMANTICS
660 # define _POSIX_PTHREAD_SEMANTICS 1
661 #endif
662 /* Enable extensions on HP NonStop.  */
663 #ifndef _TANDEM_SOURCE
664 # define _TANDEM_SOURCE 1
665 #endif
666 /* Enable general extensions on Solaris.  */
667 #ifndef __EXTENSIONS__
668 # define __EXTENSIONS__ 1
669 #endif
670 
671 
672 /* Define this to enable TCP fast open. */
673 /* #undef USE_TCP_FASTOPEN */
674 
675 /* Define this to enable per-zone statistics gathering. */
676 #define USE_ZONE_STATS 1
677 
678 /* Define to the default zone verification udp port. */
679 #define VERIFY_PORT "5347"
680 
681 /* Define to the NSD version to answer version.server query. */
682 #define VERSION PACKAGE_STRING
683 
684 /* Pathname to the NSD xfrd zone timer state file. */
685 #define XFRDFILE CHROOTDIR "/var/db/nsd/xfrd.state"
686 
687 /* Pathname to where the NSD transfer dir is created. */
688 #define XFRDIR CHROOTDIR "/var/tmp"
689 
690 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
691    `char[]'. */
692 #define YYTEXT_POINTER 1
693 
694 /* Pathname to the NSD zone list file. */
695 #define ZONELISTFILE CHROOTDIR "/var/db/nsd/zone.list"
696 
697 /* NSD default location for zone files. Empty string or NULL to disable. */
698 #define ZONESDIR CHROOTDIR "/etc/nsd"
699 
700 /* Enable large inode numbers on Mac OS X 10.5.  */
701 #ifndef _DARWIN_USE_64_BIT_INODE
702 # define _DARWIN_USE_64_BIT_INODE 1
703 #endif
704 
705 /* Number of bits in a file offset, on hosts where this is settable. */
706 /* #undef _FILE_OFFSET_BITS */
707 
708 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
709 /* #undef _LARGEFILE_SOURCE */
710 
711 /* Define for large files, on AIX-style hosts. */
712 /* #undef _LARGE_FILES */
713 
714 /* Define to 1 if on MINIX. */
715 /* #undef _MINIX */
716 
717 /* Enable for compile on Minix */
718 /* #undef _NETBSD_SOURCE */
719 
720 /* Define to 2 if the system does not provide POSIX.1 features except with
721    this defined. */
722 /* #undef _POSIX_1_SOURCE */
723 
724 /* Define to 1 if you need to in order for `stat' and other things to work. */
725 /* #undef _POSIX_SOURCE */
726 
727 /* Define to empty if `const' does not conform to ANSI C. */
728 /* #undef const */
729 
730 /* Define to `int' if <sys/types.h> doesn't define. */
731 /* #undef gid_t */
732 
733 /* in_addr_t */
734 /* #undef in_addr_t */
735 
736 /* Define to `__inline__' or `__inline' if that's what the C compiler
737    calls it, or to nothing if 'inline' is not supported under any name.  */
738 #ifndef __cplusplus
739 /* #undef inline */
740 #endif
741 
742 /* Define "int16_t" to "short" if "int16_t" is missing */
743 /* #undef int16_t */
744 
745 /* Define "int32_t" to "int" if "int32_t" is missing */
746 /* #undef int32_t */
747 
748 /* Define "int64_t" to "long long" if "int64_t" is missing */
749 /* #undef int64_t */
750 
751 /* Define "int8_t" to "char" if "int8_t" is missing */
752 /* #undef int8_t */
753 
754 /* Define to rpl_malloc if the replacement function should be used. */
755 /* #undef malloc */
756 
757 /* Define to `long int' if <sys/types.h> does not define. */
758 /* #undef off_t */
759 
760 /* Define to `int' if <sys/types.h> does not define. */
761 /* #undef pid_t */
762 
763 /* Define "sig_atomic_t" to "int" if "sig_atomic_t" is missing */
764 /* #undef sig_atomic_t */
765 
766 /* Define to `unsigned int' if <sys/types.h> does not define. */
767 /* #undef size_t */
768 
769 /* Define "socklen_t" to "int" if "socklen_t" is missing */
770 /* #undef socklen_t */
771 
772 /* Fallback member name for socket family in struct sockaddr_storage */
773 /* #undef ss_family */
774 
775 /* Define "ssize_t" to "int" if "ssize_t" is missing */
776 /* #undef ssize_t */
777 
778 /* Define "suseconds_t" to "time_t" if "suseconds_t" is missing */
779 /* #undef suseconds_t */
780 
781 /* Define to `int' if <sys/types.h> doesn't define. */
782 /* #undef uid_t */
783 
784 /* Define "uint16_t" to "unsigned short" if "uint16_t" is missing */
785 /* #undef uint16_t */
786 
787 /* Define "uint32_t" to "unsigned int" if "uint32_t" is missing */
788 /* #undef uint32_t */
789 
790 /* Define "uint64_t" to "unsigned long long" if "uint64_t" is missing */
791 /* #undef uint64_t */
792 
793 /* Define "uint8_t" to "unsigned char" if "uint8_t" is missing */
794 /* #undef uint8_t */
795 
796 /* Define "uintptr_t" to "void*" if "uintptr_t" is missing */
797 /* #undef uintptr_t */
798 
799 /* Define as `fork' if `vfork' does not work. */
800 /* #undef vfork */
801 
802 
803 /* define before includes as it specifies what standard to use. */
804 #if (defined(HAVE_PSELECT) && !defined (HAVE_PSELECT_PROTO)) \
805 	|| !defined (HAVE_CTIME_R_PROTO) \
806 	|| defined (STRPTIME_NEEDS_DEFINES) || defined(REALLOCARRAY_NEEDS_DEFINES)
807 #  ifndef _XOPEN_SOURCE
808 #    define _XOPEN_SOURCE 600
809 #  endif
810 #  ifndef _POSIX_C_SOURCE
811 #    define _POSIX_C_SOURCE 200112
812 #  endif
813 #  ifndef _BSD_SOURCE
814 #    define _BSD_SOURCE 1
815 #  endif
816 #  ifndef _OPENBSD_SOURCE
817 #    define _OPENBSD_SOURCE 1
818 #  endif
819 #  ifndef _DEFAULT_SOURCE
820 #    define _DEFAULT_SOURCE 1
821 #  endif
822 #  ifndef __EXTENSIONS__
823 #    define __EXTENSIONS__ 1
824 #  endif
825 #  ifndef _STDC_C99
826 #    define _STDC_C99 1
827 #  endif
828 #  ifndef _ALL_SOURCE
829 #    define _ALL_SOURCE 1
830 #  endif
831 #endif
832 
833 
834 
835 #ifdef HAVE_VA_LIST_DOUBLE_DEF
836 /* workaround double va_list definition on some platforms */
837 #  ifndef _VA_LIST_DEFINED
838 #    define _VA_LIST_DEFINED
839 #  endif
840 #endif
841 
842 
843 
844 #include <sys/types.h>
845 #include <stdlib.h>
846 #include <stddef.h>
847 
848 #ifdef HAVE_TIME_H
849 #include <time.h>
850 #endif
851 
852 #ifdef HAVE_STDINT_H
853 #include <stdint.h>
854 #endif
855 
856 #ifdef HAVE_SYS_SOCKET_H
857 #include <sys/socket.h>
858 #endif
859 
860 #ifdef HAVE_NETINET_IN_H
861 #include <netinet/in.h>
862 #endif
863 
864 #ifdef HAVE_NETINET_TCP_H
865 #include <netinet/tcp.h>
866 #endif
867 
868 #ifdef HAVE_ARPA_INET_H
869 #include <arpa/inet.h>
870 #endif
871 
872 /* For Tru64 */
873 #ifdef HAVE_SYS_BITYPES_H
874 #include <sys/bitypes.h>
875 #endif
876 
877 
878 
879 #ifdef HAVE_ATTR_FORMAT
880 #define ATTR_FORMAT(archetype, string_index, first_to_check) \
881     __attribute__ ((format (archetype, string_index, first_to_check)))
882 #else /* !HAVE_ATTR_FORMAT */
883 #define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
884 #endif /* !HAVE_ATTR_FORMAT */
885 #if defined(__cplusplus)
886 #define ATTR_UNUSED(x)
887 #elif defined(HAVE_ATTR_UNUSED)
888 #define ATTR_UNUSED(x)  x __attribute__((__unused__))
889 #else /* !HAVE_ATTR_UNUSED */
890 #define ATTR_UNUSED(x)  x
891 #endif /* !HAVE_ATTR_UNUSED */
892 
893 
894 
895 #ifndef IPV6_MIN_MTU
896 #define IPV6_MIN_MTU 1280
897 #endif /* IPV6_MIN_MTU */
898 
899 #ifndef AF_INET6
900 #define AF_INET6	28
901 #endif /* AF_INET6 */
902 
903 
904 
905 /* maximum nesting of included files */
906 #define MAXINCLUDES 10
907 
908 
909 
910 #ifndef HAVE_B64_NTOP
911 int b64_ntop(uint8_t const *src, size_t srclength,
912 	     char *target, size_t targsize);
913 #endif /* !HAVE_B64_NTOP */
914 #ifndef HAVE_B64_PTON
915 int b64_pton(char const *src, uint8_t *target, size_t targsize);
916 #endif /* !HAVE_B64_PTON */
917 #ifndef HAVE_FSEEKO
918 #define fseeko fseek
919 #define ftello ftell
920 #endif /* HAVE_FSEEKO */
921 #ifndef HAVE_SNPRINTF
922 #include <stdarg.h>
923 int snprintf (char *str, size_t count, const char *fmt, ...);
924 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
925 #endif /* HAVE_SNPRINTF */
926 #ifndef HAVE_INET_PTON
927 int inet_pton(int af, const char* src, void* dst);
928 #endif /* HAVE_INET_PTON */
929 #ifndef HAVE_INET_NTOP
930 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
931 #endif
932 #ifndef HAVE_INET_ATON
933 int inet_aton(const char *cp, struct in_addr *addr);
934 #endif
935 #ifndef HAVE_MEMMOVE
936 void *memmove(void *dest, const void *src, size_t n);
937 #endif
938 #ifndef HAVE_EXPLICIT_BZERO
939 #define explicit_bzero(a, b) explicit_memset((a), 0, (b))
940 #endif
941 #ifndef HAVE_STRLCAT
942 size_t strlcat(char *dst, const char *src, size_t siz);
943 #endif
944 #ifndef HAVE_STRLCPY
945 size_t strlcpy(char *dst, const char *src, size_t siz);
946 #endif
947 #ifndef HAVE_REALLOCARRAY
948 void* reallocarray(void *ptr, size_t nmemb, size_t size);
949 #endif
950 #ifndef HAVE_GETADDRINFO
951 #include "compat/fake-rfc2553.h"
952 #endif
953 #ifndef HAVE_STRPTIME
954 #define HAVE_STRPTIME 1
955 char *strptime(const char *s, const char *format, struct tm *tm);
956 #endif
957 #ifndef STRPTIME_WORKS
958 #define STRPTIME_WORKS 1
959 char *nsd_strptime(const char *s, const char *format, struct tm *tm);
960 #define strptime(a,b,c) nsd_strptime((a),(b),(c))
961 #endif
962 #if (HAVE_CPU_SET_T || HAVE_CPUSET_T)
963 #include "compat/cpuset.h"
964 #endif
965 #ifndef HAVE_SETPROCTITLE
966 #ifdef __linux__
967 #define HAVE_SETPROCTITLE 1
968 #include <stdarg.h>
969 void setproctitle(const char *fmt, ...);
970 #endif
971 #endif
972 
973 
974 
975 #ifdef MEMCMP_IS_BROKEN
976 #include "compat/memcmp.h"
977 #define memcmp memcmp_nsd
978 int memcmp(const void *x, const void *y, size_t n);
979 #endif
980 
981 
982 #ifndef MAXHOSTNAMELEN
983 #define MAXHOSTNAMELEN 256
984 #endif
985 
986 
987 
988 
989 
990 /* provide timespec def if not available */
991 #ifndef CONFIG_DEFINES
992 #define CONFIG_DEFINES
993 #ifndef HAVE_STRUCT_TIMESPEC
994 #ifndef __timespec_defined
995 #define __timespec_defined 1
996 	struct timespec {
997 		long    tv_sec;         /* seconds */
998 		long    tv_nsec;        /* nanoseconds */
999 	};
1000 #endif /* !__timespec_defined */
1001 #endif /* !HAVE_STRUCT_TIMESPEC */
1002 #endif /* !CONFIG_DEFINES */
1003 
1004 #ifdef PACKED_STRUCTS
1005 #define ATTR_PACKED __attribute__((__packed__))
1006 #else
1007 #define ATTR_PACKED
1008 #endif
1009 
1010