]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/unbound/config.h
Fix IPv6 socket option race condition and use after free.
[FreeBSD/FreeBSD.git] / contrib / unbound / config.h
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 /* Directory to chroot to */
11 #define CHROOT_DIR "/var/unbound"
12
13 /* Define this to enable client subnet option. */
14 /* #undef CLIENT_SUBNET */
15
16 /* Do sha512 definitions in config.h */
17 /* #undef COMPAT_SHA512 */
18
19 /* Pathname to the Unbound configuration file */
20 #define CONFIGFILE "/var/unbound/unbound.conf"
21
22 /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
23    */
24 /* #undef DARWIN_BROKEN_SETREUID */
25
26 /* Whether daemon is deprecated */
27 /* #undef DEPRECATED_DAEMON */
28
29 /* default dnstap socket path */
30 /* #undef DNSTAP_SOCKET_PATH */
31
32 /* Define if you want to use debug lock checking (slow). */
33 /* #undef ENABLE_LOCK_CHECKS */
34
35 /* Define this if you enabled-allsymbols from libunbound to link binaries to
36    it for smaller install size, but the libunbound export table is polluted by
37    internal symbols */
38 /* #undef EXPORT_ALL_SYMBOLS */
39
40 /* Define to 1 if you have the `accept4' function. */
41 #define HAVE_ACCEPT4 1
42
43 /* Define to 1 if you have the `arc4random' function. */
44 #define HAVE_ARC4RANDOM 1
45
46 /* Define to 1 if you have the `arc4random_uniform' function. */
47 #define HAVE_ARC4RANDOM_UNIFORM 1
48
49 /* Define to 1 if you have the <arpa/inet.h> header file. */
50 #define HAVE_ARPA_INET_H 1
51
52 /* Whether the C compiler accepts the "format" attribute */
53 #define HAVE_ATTR_FORMAT 1
54
55 /* Whether the C compiler accepts the "noreturn" attribute */
56 #define HAVE_ATTR_NORETURN 1
57
58 /* Whether the C compiler accepts the "unused" attribute */
59 #define HAVE_ATTR_UNUSED 1
60
61 /* Whether the C compiler accepts the "weak" attribute */
62 #define HAVE_ATTR_WEAK 1
63
64 /* Define to 1 if you have the `chown' function. */
65 #define HAVE_CHOWN 1
66
67 /* Define to 1 if you have the `chroot' function. */
68 #define HAVE_CHROOT 1
69
70 /* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
71 /* #undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA */
72
73 /* Define to 1 if you have the `ctime_r' function. */
74 #define HAVE_CTIME_R 1
75
76 /* Define to 1 if you have the `daemon' function. */
77 #define HAVE_DAEMON 1
78
79 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you
80    don't. */
81 /* #undef HAVE_DECL_ARC4RANDOM */
82
83 /* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
84    if you don't. */
85 /* #undef HAVE_DECL_ARC4RANDOM_UNIFORM */
86
87 /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
88    don't. */
89 #define HAVE_DECL_INET_NTOP 1
90
91 /* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
92    don't. */
93 #define HAVE_DECL_INET_PTON 1
94
95 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
96    don't. */
97 #define HAVE_DECL_NID_ED25519 1
98
99 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
100    don't. */
101 #define HAVE_DECL_NID_ED448 1
102
103 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
104    don't. */
105 #define HAVE_DECL_NID_SECP384R1 1
106
107 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
108    if you don't. */
109 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
110
111 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
112    don't. */
113 /* #undef HAVE_DECL_REALLOCARRAY */
114
115 /* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
116    don't. */
117 /* #undef HAVE_DECL_REDISCONNECT */
118
119 /* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
120    if you don't. */
121 #define HAVE_DECL_SK_SSL_COMP_POP_FREE 1
122
123 /* Define to 1 if you have the declaration of
124    `SSL_COMP_get_compression_methods', and to 0 if you don't. */
125 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 1
126
127 /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
128    0 if you don't. */
129 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 1
130
131 /* Define to 1 if you have the declaration of `strlcat', and to 0 if you
132    don't. */
133 /* #undef HAVE_DECL_STRLCAT */
134
135 /* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
136    don't. */
137 /* #undef HAVE_DECL_STRLCPY */
138
139 /* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
140    you don't. */
141 #define HAVE_DECL_XML_STOPPARSER 1
142
143 /* Define to 1 if you have the <dlfcn.h> header file. */
144 #define HAVE_DLFCN_H 1
145
146 /* Define to 1 if you have the `DSA_SIG_set0' function. */
147 #define HAVE_DSA_SIG_SET0 1
148
149 /* Define to 1 if you have the <endian.h> header file. */
150 /* #undef HAVE_ENDIAN_H */
151
152 /* Define to 1 if you have the `endprotoent' function. */
153 #define HAVE_ENDPROTOENT 1
154
155 /* Define to 1 if you have the `endpwent' function. */
156 #define HAVE_ENDPWENT 1
157
158 /* Define to 1 if you have the `endservent' function. */
159 #define HAVE_ENDSERVENT 1
160
161 /* Define to 1 if you have the `ERR_free_strings' function. */
162 /* #undef HAVE_ERR_FREE_STRINGS */
163
164 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
165 /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */
166
167 /* Define to 1 if you have the `event_base_free' function. */
168 /* #undef HAVE_EVENT_BASE_FREE */
169
170 /* Define to 1 if you have the `event_base_get_method' function. */
171 /* #undef HAVE_EVENT_BASE_GET_METHOD */
172
173 /* Define to 1 if you have the `event_base_new' function. */
174 /* #undef HAVE_EVENT_BASE_NEW */
175
176 /* Define to 1 if you have the `event_base_once' function. */
177 /* #undef HAVE_EVENT_BASE_ONCE */
178
179 /* Define to 1 if you have the <event.h> header file. */
180 /* #undef HAVE_EVENT_H */
181
182 /* Define to 1 if you have the `EVP_cleanup' function. */
183 /* #undef HAVE_EVP_CLEANUP */
184
185 /* Define to 1 if you have the `EVP_DigestVerify' function. */
186 #define HAVE_EVP_DIGESTVERIFY 1
187
188 /* Define to 1 if you have the `EVP_dss1' function. */
189 /* #undef HAVE_EVP_DSS1 */
190
191 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */
192 #define HAVE_EVP_MD_CTX_NEW 1
193
194 /* Define to 1 if you have the `EVP_sha1' function. */
195 #define HAVE_EVP_SHA1 1
196
197 /* Define to 1 if you have the `EVP_sha256' function. */
198 #define HAVE_EVP_SHA256 1
199
200 /* Define to 1 if you have the `EVP_sha512' function. */
201 #define HAVE_EVP_SHA512 1
202
203 /* Define to 1 if you have the `ev_default_loop' function. */
204 /* #undef HAVE_EV_DEFAULT_LOOP */
205
206 /* Define to 1 if you have the `ev_loop' function. */
207 /* #undef HAVE_EV_LOOP */
208
209 /* Define to 1 if you have the <expat.h> header file. */
210 #define HAVE_EXPAT_H 1
211
212 /* Define to 1 if you have the `explicit_bzero' function. */
213 #define HAVE_EXPLICIT_BZERO 1
214
215 /* Define to 1 if you have the `fcntl' function. */
216 #define HAVE_FCNTL 1
217
218 /* Define to 1 if you have the `FIPS_mode' function. */
219 #define HAVE_FIPS_MODE 1
220
221 /* Define to 1 if you have the `fork' function. */
222 #define HAVE_FORK 1
223
224 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
225 #define HAVE_FSEEKO 1
226
227 /* Define to 1 if you have the `fsync' function. */
228 #define HAVE_FSYNC 1
229
230 /* Whether getaddrinfo is available */
231 #define HAVE_GETADDRINFO 1
232
233 /* Define to 1 if you have the `getauxval' function. */
234 /* #undef HAVE_GETAUXVAL */
235
236 /* Define to 1 if you have the `getentropy' function. */
237 /* #undef HAVE_GETENTROPY */
238
239 /* Define to 1 if you have the <getopt.h> header file. */
240 #define HAVE_GETOPT_H 1
241
242 /* Define to 1 if you have the `getpwnam' function. */
243 #define HAVE_GETPWNAM 1
244
245 /* Define to 1 if you have the `getrlimit' function. */
246 #define HAVE_GETRLIMIT 1
247
248 /* Define to 1 if you have the `glob' function. */
249 #define HAVE_GLOB 1
250
251 /* Define to 1 if you have the <glob.h> header file. */
252 #define HAVE_GLOB_H 1
253
254 /* Define to 1 if you have the `gmtime_r' function. */
255 #define HAVE_GMTIME_R 1
256
257 /* Define to 1 if you have the <grp.h> header file. */
258 #define HAVE_GRP_H 1
259
260 /* Define to 1 if you have the <hiredis/hiredis.h> header file. */
261 /* #undef HAVE_HIREDIS_HIREDIS_H */
262
263 /* If you have HMAC_Update */
264 #define HAVE_HMAC_UPDATE 1
265
266 /* Define to 1 if you have the `inet_aton' function. */
267 #define HAVE_INET_ATON 1
268
269 /* Define to 1 if you have the `inet_ntop' function. */
270 #define HAVE_INET_NTOP 1
271
272 /* Define to 1 if you have the `inet_pton' function. */
273 #define HAVE_INET_PTON 1
274
275 /* Define to 1 if you have the `initgroups' function. */
276 #define HAVE_INITGROUPS 1
277
278 /* Define to 1 if you have the <inttypes.h> header file. */
279 #define HAVE_INTTYPES_H 1
280
281 /* if the function 'ioctlsocket' is available */
282 /* #undef HAVE_IOCTLSOCKET */
283
284 /* Define to 1 if you have the <iphlpapi.h> header file. */
285 /* #undef HAVE_IPHLPAPI_H */
286
287 /* Define to 1 if you have the `isblank' function. */
288 #define HAVE_ISBLANK 1
289
290 /* Define to 1 if you have the `kill' function. */
291 #define HAVE_KILL 1
292
293 /* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
294 /* #undef HAVE_LIBKERN_OSBYTEORDER_H */
295
296 /* Define if we have LibreSSL */
297 /* #undef HAVE_LIBRESSL */
298
299 /* Define to 1 if you have the `localtime_r' function. */
300 #define HAVE_LOCALTIME_R 1
301
302 /* Define to 1 if you have the <login_cap.h> header file. */
303 #define HAVE_LOGIN_CAP_H 1
304
305 /* If have GNU libc compatible malloc */
306 #define HAVE_MALLOC 1
307
308 /* Define to 1 if you have the `memmove' function. */
309 #define HAVE_MEMMOVE 1
310
311 /* Define to 1 if you have the <memory.h> header file. */
312 #define HAVE_MEMORY_H 1
313
314 /* Define to 1 if you have the <netdb.h> header file. */
315 #define HAVE_NETDB_H 1
316
317 /* Define to 1 if you have the <netinet/in.h> header file. */
318 #define HAVE_NETINET_IN_H 1
319
320 /* Define to 1 if you have the <netinet/tcp.h> header file. */
321 #define HAVE_NETINET_TCP_H 1
322
323 /* Use libnettle for crypto */
324 /* #undef HAVE_NETTLE */
325
326 /* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
327 /* #undef HAVE_NETTLE_DSA_COMPAT_H */
328
329 /* Define to 1 if you have the <nettle/eddsa.h> header file. */
330 /* #undef HAVE_NETTLE_EDDSA_H */
331
332 /* Use libnss for crypto */
333 /* #undef HAVE_NSS */
334
335 /* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
336 /* #undef HAVE_OPENSSL_ADD_ALL_DIGESTS */
337
338 /* Define to 1 if you have the <openssl/bn.h> header file. */
339 #define HAVE_OPENSSL_BN_H 1
340
341 /* Define to 1 if you have the `OPENSSL_config' function. */
342 #define HAVE_OPENSSL_CONFIG 1
343
344 /* Define to 1 if you have the <openssl/conf.h> header file. */
345 #define HAVE_OPENSSL_CONF_H 1
346
347 /* Define to 1 if you have the <openssl/dh.h> header file. */
348 #define HAVE_OPENSSL_DH_H 1
349
350 /* Define to 1 if you have the <openssl/dsa.h> header file. */
351 #define HAVE_OPENSSL_DSA_H 1
352
353 /* Define to 1 if you have the <openssl/engine.h> header file. */
354 #define HAVE_OPENSSL_ENGINE_H 1
355
356 /* Define to 1 if you have the <openssl/err.h> header file. */
357 #define HAVE_OPENSSL_ERR_H 1
358
359 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
360 #define HAVE_OPENSSL_INIT_CRYPTO 1
361
362 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
363 #define HAVE_OPENSSL_INIT_SSL 1
364
365 /* Define to 1 if you have the <openssl/rand.h> header file. */
366 #define HAVE_OPENSSL_RAND_H 1
367
368 /* Define to 1 if you have the <openssl/rsa.h> header file. */
369 #define HAVE_OPENSSL_RSA_H 1
370
371 /* Define to 1 if you have the <openssl/ssl.h> header file. */
372 #define HAVE_OPENSSL_SSL_H 1
373
374 /* Define if you have POSIX threads libraries and header files. */
375 #define HAVE_PTHREAD 1
376
377 /* Have PTHREAD_PRIO_INHERIT. */
378 #define HAVE_PTHREAD_PRIO_INHERIT 1
379
380 /* Define to 1 if the system has the type `pthread_rwlock_t'. */
381 #define HAVE_PTHREAD_RWLOCK_T 1
382
383 /* Define to 1 if the system has the type `pthread_spinlock_t'. */
384 #define HAVE_PTHREAD_SPINLOCK_T 1
385
386 /* Define to 1 if you have the <pwd.h> header file. */
387 #define HAVE_PWD_H 1
388
389 /* Define if you have Python libraries and header files. */
390 /* #undef HAVE_PYTHON */
391
392 /* Define to 1 if you have the `random' function. */
393 #define HAVE_RANDOM 1
394
395 /* Define to 1 if you have the `RAND_cleanup' function. */
396 /* #undef HAVE_RAND_CLEANUP */
397
398 /* Define to 1 if you have the `reallocarray' function. */
399 #define HAVE_REALLOCARRAY 1
400
401 /* Define to 1 if you have the `recvmsg' function. */
402 #define HAVE_RECVMSG 1
403
404 /* Define to 1 if you have the `sendmsg' function. */
405 #define HAVE_SENDMSG 1
406
407 /* Define to 1 if you have the `setregid' function. */
408 /* #undef HAVE_SETREGID */
409
410 /* Define to 1 if you have the `setresgid' function. */
411 #define HAVE_SETRESGID 1
412
413 /* Define to 1 if you have the `setresuid' function. */
414 #define HAVE_SETRESUID 1
415
416 /* Define to 1 if you have the `setreuid' function. */
417 /* #undef HAVE_SETREUID */
418
419 /* Define to 1 if you have the `setrlimit' function. */
420 #define HAVE_SETRLIMIT 1
421
422 /* Define to 1 if you have the `setsid' function. */
423 #define HAVE_SETSID 1
424
425 /* Define to 1 if you have the `setusercontext' function. */
426 #define HAVE_SETUSERCONTEXT 1
427
428 /* Define to 1 if you have the `SHA512_Update' function. */
429 /* #undef HAVE_SHA512_UPDATE */
430
431 /* Define to 1 if you have the `shmget' function. */
432 #define HAVE_SHMGET 1
433
434 /* Define to 1 if you have the `sigprocmask' function. */
435 #define HAVE_SIGPROCMASK 1
436
437 /* Define to 1 if you have the `sleep' function. */
438 #define HAVE_SLEEP 1
439
440 /* Define to 1 if you have the `snprintf' function. */
441 #define HAVE_SNPRINTF 1
442
443 /* Define to 1 if you have the `socketpair' function. */
444 #define HAVE_SOCKETPAIR 1
445
446 /* Using Solaris threads */
447 /* #undef HAVE_SOLARIS_THREADS */
448
449 /* Define to 1 if you have the `srandom' function. */
450 #define HAVE_SRANDOM 1
451
452 /* Define if you have the SSL libraries installed. */
453 #define HAVE_SSL /**/
454
455 /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
456 #define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1
457
458 /* Define to 1 if you have the `SSL_get0_peername' function. */
459 #define HAVE_SSL_GET0_PEERNAME 1
460
461 /* Define to 1 if you have the `SSL_set1_host' function. */
462 #define HAVE_SSL_SET1_HOST 1
463
464 /* Define to 1 if you have the <stdarg.h> header file. */
465 #define HAVE_STDARG_H 1
466
467 /* Define to 1 if you have the <stdbool.h> header file. */
468 #define HAVE_STDBOOL_H 1
469
470 /* Define to 1 if you have the <stdint.h> header file. */
471 #define HAVE_STDINT_H 1
472
473 /* Define to 1 if you have the <stdlib.h> header file. */
474 #define HAVE_STDLIB_H 1
475
476 /* Define to 1 if you have the `strftime' function. */
477 #define HAVE_STRFTIME 1
478
479 /* Define to 1 if you have the <strings.h> header file. */
480 #define HAVE_STRINGS_H 1
481
482 /* Define to 1 if you have the <string.h> header file. */
483 #define HAVE_STRING_H 1
484
485 /* Define to 1 if you have the `strlcat' function. */
486 #define HAVE_STRLCAT 1
487
488 /* Define to 1 if you have the `strlcpy' function. */
489 #define HAVE_STRLCPY 1
490
491 /* Define to 1 if you have the `strptime' function. */
492 #define HAVE_STRPTIME 1
493
494 /* Define to 1 if you have the `strsep' function. */
495 #define HAVE_STRSEP 1
496
497 /* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
498 /* #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST */
499
500 /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
501 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
502
503 /* Define if you have Swig libraries and header files. */
504 /* #undef HAVE_SWIG */
505
506 /* Define to 1 if you have the <syslog.h> header file. */
507 #define HAVE_SYSLOG_H 1
508
509 /* Define to 1 if systemd should be used */
510 /* #undef HAVE_SYSTEMD */
511
512 /* Define to 1 if you have the <sys/endian.h> header file. */
513 #define HAVE_SYS_ENDIAN_H 1
514
515 /* Define to 1 if you have the <sys/ipc.h> header file. */
516 #define HAVE_SYS_IPC_H 1
517
518 /* Define to 1 if you have the <sys/param.h> header file. */
519 #define HAVE_SYS_PARAM_H 1
520
521 /* Define to 1 if you have the <sys/resource.h> header file. */
522 #define HAVE_SYS_RESOURCE_H 1
523
524 /* Define to 1 if you have the <sys/sha2.h> header file. */
525 /* #undef HAVE_SYS_SHA2_H */
526
527 /* Define to 1 if you have the <sys/shm.h> header file. */
528 #define HAVE_SYS_SHM_H 1
529
530 /* Define to 1 if you have the <sys/socket.h> header file. */
531 #define HAVE_SYS_SOCKET_H 1
532
533 /* Define to 1 if you have the <sys/stat.h> header file. */
534 #define HAVE_SYS_STAT_H 1
535
536 /* Define to 1 if you have the <sys/sysctl.h> header file. */
537 /* #undef HAVE_SYS_SYSCTL_H */
538
539 /* Define to 1 if you have the <sys/types.h> header file. */
540 #define HAVE_SYS_TYPES_H 1
541
542 /* Define to 1 if you have the <sys/uio.h> header file. */
543 #define HAVE_SYS_UIO_H 1
544
545 /* Define to 1 if you have the <sys/un.h> header file. */
546 #define HAVE_SYS_UN_H 1
547
548 /* Define to 1 if you have the <sys/wait.h> header file. */
549 #define HAVE_SYS_WAIT_H 1
550
551 /* Define to 1 if you have the <time.h> header file. */
552 #define HAVE_TIME_H 1
553
554 /* Define to 1 if you have the `tzset' function. */
555 #define HAVE_TZSET 1
556
557 /* Define to 1 if you have the <unistd.h> header file. */
558 #define HAVE_UNISTD_H 1
559
560 /* Define to 1 if you have the `usleep' function. */
561 #define HAVE_USLEEP 1
562
563 /* Define to 1 if you have the `vfork' function. */
564 #define HAVE_VFORK 1
565
566 /* Define to 1 if you have the <vfork.h> header file. */
567 /* #undef HAVE_VFORK_H */
568
569 /* Define to 1 if you have the <windows.h> header file. */
570 /* #undef HAVE_WINDOWS_H */
571
572 /* Using Windows threads */
573 /* #undef HAVE_WINDOWS_THREADS */
574
575 /* Define to 1 if you have the <winsock2.h> header file. */
576 /* #undef HAVE_WINSOCK2_H */
577
578 /* Define to 1 if `fork' works. */
579 #define HAVE_WORKING_FORK 1
580
581 /* Define to 1 if `vfork' works. */
582 #define HAVE_WORKING_VFORK 1
583
584 /* Define to 1 if you have the `writev' function. */
585 #define HAVE_WRITEV 1
586
587 /* Define to 1 if you have the <ws2tcpip.h> header file. */
588 /* #undef HAVE_WS2TCPIP_H */
589
590 /* Define to 1 if you have the `_beginthreadex' function. */
591 /* #undef HAVE__BEGINTHREADEX */
592
593 /* if lex has yylex_destroy */
594 #define LEX_HAS_YYLEX_DESTROY 1
595
596 /* Define to the sub-directory where libtool stores uninstalled libraries. */
597 #define LT_OBJDIR ".libs/"
598
599 /* Define to the maximum message length to pass to syslog. */
600 #define MAXSYSLOGMSGLEN 10240
601
602 /* Define if memcmp() does not compare unsigned bytes */
603 /* #undef MEMCMP_IS_BROKEN */
604
605 /* Define if mkdir has one argument. */
606 /* #undef MKDIR_HAS_ONE_ARG */
607
608 /* Define if the network stack does not fully support nonblocking io (causes
609    lower performance). */
610 /* #undef NONBLOCKING_IS_BROKEN */
611
612 /* Put -D_ALL_SOURCE define in config.h */
613 /* #undef OMITTED__D_ALL_SOURCE */
614
615 /* Put -D_BSD_SOURCE define in config.h */
616 /* #undef OMITTED__D_BSD_SOURCE */
617
618 /* Put -D_DEFAULT_SOURCE define in config.h */
619 /* #undef OMITTED__D_DEFAULT_SOURCE */
620
621 /* Put -D_GNU_SOURCE define in config.h */
622 /* #undef OMITTED__D_GNU_SOURCE */
623
624 /* Put -D_LARGEFILE_SOURCE=1 define in config.h */
625 /* #undef OMITTED__D_LARGEFILE_SOURCE_1 */
626
627 /* Put -D_POSIX_C_SOURCE=200112 define in config.h */
628 /* #undef OMITTED__D_POSIX_C_SOURCE_200112 */
629
630 /* Put -D_XOPEN_SOURCE=600 define in config.h */
631 /* #undef OMITTED__D_XOPEN_SOURCE_600 */
632
633 /* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
634 /* #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 */
635
636 /* Put -D__EXTENSIONS__ define in config.h */
637 /* #undef OMITTED__D__EXTENSIONS__ */
638
639 /* Define to the address where bug reports for this package should be sent. */
640 #define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl"
641
642 /* Define to the full name of this package. */
643 #define PACKAGE_NAME "unbound"
644
645 /* Define to the full name and version of this package. */
646 #define PACKAGE_STRING "unbound 1.8.1"
647
648 /* Define to the one symbol short name of this package. */
649 #define PACKAGE_TARNAME "unbound"
650
651 /* Define to the home page for this package. */
652 #define PACKAGE_URL ""
653
654 /* Define to the version of this package. */
655 #define PACKAGE_VERSION "1.8.1"
656
657 /* default pidfile location */
658 #define PIDFILE "/var/unbound/unbound.pid"
659
660 /* Define to necessary symbol if this constant uses a non-standard name on
661    your system. */
662 /* #undef PTHREAD_CREATE_JOINABLE */
663
664 /* Define as the return type of signal handlers (`int' or `void'). */
665 #define RETSIGTYPE void
666
667 /* if REUSEPORT is enabled by default */
668 #define REUSEPORT_DEFAULT 0
669
670 /* default rootkey location */
671 #define ROOT_ANCHOR_FILE "/var/unbound/root.key"
672
673 /* default rootcert location */
674 #define ROOT_CERT_FILE "/var/unbound/icannbundle.pem"
675
676 /* version number for resource files */
677 #define RSRC_PACKAGE_VERSION 1,8,1,0
678
679 /* Directory to chdir to */
680 #define RUN_DIR "/var/unbound"
681
682 /* Shared data */
683 #define SHARE_DIR "/var/unbound"
684
685 /* The size of `time_t', as computed by sizeof. */
686 #define SIZEOF_TIME_T 8
687
688 /* define if (v)snprintf does not return length needed, (but length used) */
689 /* #undef SNPRINTF_RET_BROKEN */
690
691 /* Define to 1 if libsodium supports sodium_set_misuse_handler */
692 /* #undef SODIUM_MISUSE_HANDLER */
693
694 /* Define to 1 if you have the ANSI C header files. */
695 #define STDC_HEADERS 1
696
697 /* use default strptime. */
698 #define STRPTIME_WORKS 1
699
700 /* Use win32 resources and API */
701 /* #undef UB_ON_WINDOWS */
702
703 /* default username */
704 #define UB_USERNAME "unbound"
705
706 /* use to enable lightweight alloc assertions, for debug use */
707 /* #undef UNBOUND_ALLOC_LITE */
708
709 /* use malloc not regions, for debug use */
710 /* #undef UNBOUND_ALLOC_NONREGIONAL */
711
712 /* use statistics for allocs and frees, for debug use */
713 /* #undef UNBOUND_ALLOC_STATS */
714
715 /* define this to enable debug checks. */
716 /* #undef UNBOUND_DEBUG */
717
718 /* Define to 1 to use cachedb support */
719 /* #undef USE_CACHEDB */
720
721 /* Define to 1 to enable dnscrypt support */
722 /* #undef USE_DNSCRYPT */
723
724 /* Define to 1 to enable dnscrypt with xchacha20 support */
725 /* #undef USE_DNSCRYPT_XCHACHA20 */
726
727 /* Define to 1 to enable dnstap support */
728 /* #undef USE_DNSTAP */
729
730 /* Define this to enable DSA support. */
731 #define USE_DSA 1
732
733 /* Define this to enable ECDSA support. */
734 #define USE_ECDSA 1
735
736 /* Define this to enable an EVP workaround for older openssl */
737 /* #undef USE_ECDSA_EVP_WORKAROUND */
738
739 /* Define this to enable ED25519 support. */
740 #define USE_ED25519 1
741
742 /* Define this to enable ED448 support. */
743 #define USE_ED448 1
744
745 /* Define this to enable GOST support. */
746 /* #undef USE_GOST */
747
748 /* Define to 1 to use ipsecmod support. */
749 /* #undef USE_IPSECMOD */
750
751 /* Define if you want to use internal select based events */
752 #define USE_MINI_EVENT 1
753
754 /* Define this to enable client TCP Fast Open. */
755 /* #undef USE_MSG_FASTOPEN */
756
757 /* Define this to enable client TCP Fast Open. */
758 /* #undef USE_OSX_MSG_FASTOPEN */
759
760 /* Define this to use hiredis client. */
761 /* #undef USE_REDIS */
762
763 /* Define this to enable SHA1 support. */
764 #define USE_SHA1 1
765
766 /* Define this to enable SHA256 and SHA512 support. */
767 #define USE_SHA2 1
768
769 /* Enable extensions on AIX 3, Interix.  */
770 #ifndef _ALL_SOURCE
771 # define _ALL_SOURCE 1
772 #endif
773 /* Enable GNU extensions on systems that have them.  */
774 #ifndef _GNU_SOURCE
775 # define _GNU_SOURCE 1
776 #endif
777 /* Enable threading extensions on Solaris.  */
778 #ifndef _POSIX_PTHREAD_SEMANTICS
779 # define _POSIX_PTHREAD_SEMANTICS 1
780 #endif
781 /* Enable extensions on HP NonStop.  */
782 #ifndef _TANDEM_SOURCE
783 # define _TANDEM_SOURCE 1
784 #endif
785 /* Enable general extensions on Solaris.  */
786 #ifndef __EXTENSIONS__
787 # define __EXTENSIONS__ 1
788 #endif
789
790
791 /* Define this to enable server TCP Fast Open. */
792 /* #undef USE_TCP_FASTOPEN */
793
794 /* Whether the windows socket API is used */
795 /* #undef USE_WINSOCK */
796
797 /* the version of the windows API enabled */
798 #define WINVER 0x0502
799
800 /* Define if you want Python module. */
801 /* #undef WITH_PYTHONMODULE */
802
803 /* Define if you want PyUnbound. */
804 /* #undef WITH_PYUNBOUND */
805
806 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
807    `char[]'. */
808 #define YYTEXT_POINTER 1
809
810 /* Enable large inode numbers on Mac OS X 10.5.  */
811 #ifndef _DARWIN_USE_64_BIT_INODE
812 # define _DARWIN_USE_64_BIT_INODE 1
813 #endif
814
815 /* Number of bits in a file offset, on hosts where this is settable. */
816 /* #undef _FILE_OFFSET_BITS */
817
818 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
819 /* #undef _LARGEFILE_SOURCE */
820
821 /* Define for large files, on AIX-style hosts. */
822 /* #undef _LARGE_FILES */
823
824 /* Define to 1 if on MINIX. */
825 /* #undef _MINIX */
826
827 /* Enable for compile on Minix */
828 /* #undef _NETBSD_SOURCE */
829
830 /* Define to 2 if the system does not provide POSIX.1 features except with
831    this defined. */
832 /* #undef _POSIX_1_SOURCE */
833
834 /* Define to 1 if you need to in order for `stat' and other things to work. */
835 /* #undef _POSIX_SOURCE */
836
837 /* Define to empty if `const' does not conform to ANSI C. */
838 /* #undef const */
839
840 /* Define to `int' if <sys/types.h> doesn't define. */
841 /* #undef gid_t */
842
843 /* in_addr_t */
844 /* #undef in_addr_t */
845
846 /* in_port_t */
847 /* #undef in_port_t */
848
849 /* Define to `__inline__' or `__inline' if that's what the C compiler
850    calls it, or to nothing if 'inline' is not supported under any name.  */
851 #ifndef __cplusplus
852 /* #undef inline */
853 #endif
854
855 /* Define to `short' if <sys/types.h> does not define. */
856 /* #undef int16_t */
857
858 /* Define to `int' if <sys/types.h> does not define. */
859 /* #undef int32_t */
860
861 /* Define to `long long' if <sys/types.h> does not define. */
862 /* #undef int64_t */
863
864 /* Define to `signed char' if <sys/types.h> does not define. */
865 /* #undef int8_t */
866
867 /* Define if replacement function should be used. */
868 /* #undef malloc */
869
870 /* Define to `long int' if <sys/types.h> does not define. */
871 /* #undef off_t */
872
873 /* Define to `int' if <sys/types.h> does not define. */
874 /* #undef pid_t */
875
876 /* Define to 'int' if not defined */
877 /* #undef rlim_t */
878
879 /* Define to `unsigned int' if <sys/types.h> does not define. */
880 /* #undef size_t */
881
882 /* Define to 'int' if not defined */
883 /* #undef socklen_t */
884
885 /* Define to `int' if <sys/types.h> does not define. */
886 /* #undef ssize_t */
887
888 /* Define to 'unsigned char if not defined */
889 /* #undef u_char */
890
891 /* Define to `int' if <sys/types.h> doesn't define. */
892 /* #undef uid_t */
893
894 /* Define to `unsigned short' if <sys/types.h> does not define. */
895 /* #undef uint16_t */
896
897 /* Define to `unsigned int' if <sys/types.h> does not define. */
898 /* #undef uint32_t */
899
900 /* Define to `unsigned long long' if <sys/types.h> does not define. */
901 /* #undef uint64_t */
902
903 /* Define to `unsigned char' if <sys/types.h> does not define. */
904 /* #undef uint8_t */
905
906 /* Define as `fork' if `vfork' does not work. */
907 /* #undef vfork */
908
909 #if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
910 #define _GNU_SOURCE 1
911 #endif 
912
913 #if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
914 #define _BSD_SOURCE 1
915 #endif 
916
917 #if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
918 #define _DEFAULT_SOURCE 1
919 #endif 
920
921 #if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
922 #define __EXTENSIONS__ 1
923 #endif 
924
925 #if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
926 #define _POSIX_C_SOURCE 200112
927 #endif 
928
929 #if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
930 #define _XOPEN_SOURCE 600
931 #endif 
932
933 #if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
934 #define _XOPEN_SOURCE_EXTENDED 1
935 #endif 
936
937 #if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
938 #define _ALL_SOURCE 1
939 #endif 
940
941 #if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
942 #define _LARGEFILE_SOURCE 1
943 #endif 
944
945
946
947
948 #ifndef UNBOUND_DEBUG
949 #  define NDEBUG
950 #endif
951
952 /** Use small-ldns codebase */
953 #define USE_SLDNS 1
954 #ifdef HAVE_SSL
955 #  define LDNS_BUILD_CONFIG_HAVE_SSL 1
956 #endif
957
958 #include <stdio.h>
959 #include <string.h>
960 #include <unistd.h>
961 #include <assert.h>
962
963 #if STDC_HEADERS
964 #include <stdlib.h>
965 #include <stddef.h>
966 #endif
967
968 #ifdef HAVE_STDARG_H
969 #include <stdarg.h>
970 #endif
971
972 #ifdef HAVE_STDINT_H
973 #include <stdint.h>
974 #endif
975
976 #include <errno.h>
977
978 #if HAVE_SYS_PARAM_H
979 #include <sys/param.h>
980 #endif
981
982 #ifdef HAVE_SYS_SOCKET_H
983 #include <sys/socket.h>
984 #endif
985
986 #ifdef HAVE_SYS_UIO_H
987 #include <sys/uio.h>
988 #endif
989
990 #ifdef HAVE_NETINET_IN_H
991 #include <netinet/in.h>
992 #endif
993
994 #ifdef HAVE_NETINET_TCP_H
995 #include <netinet/tcp.h>
996 #endif
997
998 #ifdef HAVE_ARPA_INET_H
999 #include <arpa/inet.h>
1000 #endif
1001
1002 #ifdef HAVE_WINSOCK2_H
1003 #include <winsock2.h>
1004 #endif
1005
1006 #ifdef HAVE_WS2TCPIP_H
1007 #include <ws2tcpip.h>
1008 #endif
1009
1010 #ifndef USE_WINSOCK
1011 #define ARG_LL "%ll"
1012 #else
1013 #define ARG_LL "%I64"
1014 #endif
1015
1016 #ifndef AF_LOCAL
1017 #define AF_LOCAL AF_UNIX
1018 #endif
1019
1020
1021  
1022 #ifdef HAVE_ATTR_FORMAT
1023 #  define ATTR_FORMAT(archetype, string_index, first_to_check) \
1024     __attribute__ ((format (archetype, string_index, first_to_check)))
1025 #else /* !HAVE_ATTR_FORMAT */
1026 #  define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1027 #endif /* !HAVE_ATTR_FORMAT */
1028
1029
1030 #if defined(DOXYGEN)
1031 #  define ATTR_UNUSED(x)  x
1032 #elif defined(__cplusplus)
1033 #  define ATTR_UNUSED(x)
1034 #elif defined(HAVE_ATTR_UNUSED)
1035 #  define ATTR_UNUSED(x)  x __attribute__((unused))
1036 #else /* !HAVE_ATTR_UNUSED */
1037 #  define ATTR_UNUSED(x)  x
1038 #endif /* !HAVE_ATTR_UNUSED */
1039
1040
1041 #ifndef HAVE_FSEEKO
1042 #define fseeko fseek
1043 #define ftello ftell
1044 #endif /* HAVE_FSEEKO */
1045
1046
1047 #ifndef MAXHOSTNAMELEN
1048 #define MAXHOSTNAMELEN 256
1049 #endif
1050
1051 #if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1052 #define snprintf snprintf_unbound
1053 #define vsnprintf vsnprintf_unbound
1054 #include <stdarg.h>
1055 int snprintf (char *str, size_t count, const char *fmt, ...);
1056 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
1057 #endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1058
1059 #ifndef HAVE_INET_PTON
1060 #define inet_pton inet_pton_unbound
1061 int inet_pton(int af, const char* src, void* dst);
1062 #endif /* HAVE_INET_PTON */
1063
1064
1065 #ifndef HAVE_INET_NTOP
1066 #define inet_ntop inet_ntop_unbound
1067 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1068 #endif
1069
1070
1071 #ifndef HAVE_INET_ATON
1072 #define inet_aton inet_aton_unbound
1073 int inet_aton(const char *cp, struct in_addr *addr);
1074 #endif
1075
1076
1077 #ifndef HAVE_MEMMOVE
1078 #define memmove memmove_unbound
1079 void *memmove(void *dest, const void *src, size_t n);
1080 #endif
1081
1082
1083 #ifndef HAVE_STRLCAT
1084 #define strlcat strlcat_unbound
1085 size_t strlcat(char *dst, const char *src, size_t siz);
1086 #endif
1087
1088
1089 #ifndef HAVE_STRLCPY
1090 #define strlcpy strlcpy_unbound
1091 size_t strlcpy(char *dst, const char *src, size_t siz);
1092 #endif
1093
1094
1095 #ifndef HAVE_GMTIME_R
1096 #define gmtime_r gmtime_r_unbound
1097 struct tm *gmtime_r(const time_t *timep, struct tm *result);
1098 #endif
1099
1100
1101 #ifndef HAVE_REALLOCARRAY
1102 #define reallocarray reallocarrayunbound
1103 void* reallocarray(void *ptr, size_t nmemb, size_t size);
1104 #endif
1105
1106
1107 #if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1108 #define sleep(x) Sleep((x)*1000) /* on win32 */
1109 #endif /* HAVE_SLEEP */
1110
1111
1112 #ifndef HAVE_USLEEP
1113 #define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1114 #endif /* HAVE_USLEEP */
1115
1116
1117 #ifndef HAVE_RANDOM
1118 #define random rand /* on win32, for tests only (bad random) */
1119 #endif /* HAVE_RANDOM */
1120
1121
1122 #ifndef HAVE_SRANDOM
1123 #define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1124 #endif /* HAVE_SRANDOM */
1125
1126
1127 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1128 #ifdef HAVE_WINSOCK2_H
1129 #define FD_SET_T (u_int)
1130 #else
1131 #define FD_SET_T 
1132 #endif
1133
1134
1135 #ifndef IPV6_MIN_MTU
1136 #define IPV6_MIN_MTU 1280
1137 #endif /* IPV6_MIN_MTU */
1138
1139
1140 #ifdef MEMCMP_IS_BROKEN
1141 #include "compat/memcmp.h"
1142 #define memcmp memcmp_unbound
1143 int memcmp(const void *x, const void *y, size_t n);
1144 #endif
1145
1146
1147
1148 #ifndef HAVE_CTIME_R
1149 #define ctime_r unbound_ctime_r
1150 char *ctime_r(const time_t *timep, char *buf);
1151 #endif
1152
1153 #ifndef HAVE_STRSEP
1154 #define strsep unbound_strsep
1155 char *strsep(char **stringp, const char *delim);
1156 #endif
1157
1158 #ifndef HAVE_ISBLANK
1159 #define isblank unbound_isblank
1160 int isblank(int c);
1161 #endif
1162
1163 #ifndef HAVE_EXPLICIT_BZERO
1164 #define explicit_bzero unbound_explicit_bzero
1165 void explicit_bzero(void* buf, size_t len);
1166 #endif
1167
1168 #if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
1169 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1170 #endif
1171
1172 #if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
1173 int inet_pton(int af, const char* src, void* dst);
1174 #endif
1175
1176 #if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1177 #define strptime unbound_strptime
1178 struct tm;
1179 char *strptime(const char *s, const char *format, struct tm *tm);
1180 #endif
1181
1182 #ifdef HAVE_LIBRESSL
1183 #  if !HAVE_DECL_STRLCPY
1184 size_t strlcpy(char *dst, const char *src, size_t siz);
1185 #  endif
1186 #  if !HAVE_DECL_STRLCAT
1187 size_t strlcat(char *dst, const char *src, size_t siz);
1188 #  endif
1189 #  if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
1190 uint32_t arc4random(void);
1191 #  endif
1192 #  if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
1193 uint32_t arc4random_uniform(uint32_t upper_bound);
1194 #  endif
1195 #  if !HAVE_DECL_REALLOCARRAY
1196 void *reallocarray(void *ptr, size_t nmemb, size_t size);
1197 #  endif
1198 #endif /* HAVE_LIBRESSL */
1199 #ifndef HAVE_ARC4RANDOM
1200 int getentropy(void* buf, size_t len);
1201 uint32_t arc4random(void);
1202 void arc4random_buf(void* buf, size_t n);
1203 void _ARC4_LOCK(void);
1204 void _ARC4_UNLOCK(void);
1205 void _ARC4_LOCK_DESTROY(void);
1206 #endif
1207 #ifndef HAVE_ARC4RANDOM_UNIFORM
1208 uint32_t arc4random_uniform(uint32_t upper_bound);
1209 #endif
1210 #ifdef COMPAT_SHA512
1211 #ifndef SHA512_DIGEST_LENGTH
1212 #define SHA512_BLOCK_LENGTH             128
1213 #define SHA512_DIGEST_LENGTH            64
1214 #define SHA512_DIGEST_STRING_LENGTH     (SHA512_DIGEST_LENGTH * 2 + 1)
1215 typedef struct _SHA512_CTX {
1216         uint64_t        state[8];
1217         uint64_t        bitcount[2];
1218         uint8_t buffer[SHA512_BLOCK_LENGTH];
1219 } SHA512_CTX;
1220 #endif /* SHA512_DIGEST_LENGTH */
1221 void SHA512_Init(SHA512_CTX*);
1222 void SHA512_Update(SHA512_CTX*, void*, size_t);
1223 void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
1224 unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
1225 #endif /* COMPAT_SHA512 */
1226
1227
1228
1229 #if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS))
1230    /* using version of libevent that is not threadsafe. */
1231 #  define LIBEVENT_SIGNAL_PROBLEM 1
1232 #endif
1233
1234 #ifndef CHECKED_INET6
1235 #  define CHECKED_INET6
1236 #  ifdef AF_INET6
1237 #    define INET6
1238 #  else
1239 #    define AF_INET6        28
1240 #  endif
1241 #endif /* CHECKED_INET6 */
1242
1243 #ifndef HAVE_GETADDRINFO
1244 struct sockaddr_storage;
1245 #include "compat/fake-rfc2553.h"
1246 #endif
1247
1248 #ifdef UNBOUND_ALLOC_STATS
1249 #  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1250 #  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1251 #  define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1252 #  define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1253 void *unbound_stat_malloc(size_t size);
1254 void *unbound_stat_calloc(size_t nmemb, size_t size);
1255 void unbound_stat_free(void *ptr);
1256 void *unbound_stat_realloc(void *ptr, size_t size);
1257 void *unbound_stat_malloc_log(size_t size, const char* file, int line,
1258         const char* func);
1259 void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1260         int line, const char* func);
1261 void unbound_stat_free_log(void *ptr, const char* file, int line,
1262         const char* func);
1263 void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1264         int line, const char* func);
1265 #elif defined(UNBOUND_ALLOC_LITE)
1266 #  include "util/alloc.h"
1267 #endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1268
1269 /** default port for DNS traffic. */
1270 #define UNBOUND_DNS_PORT 53
1271 /** default port for DNS over TLS traffic. */
1272 #define UNBOUND_DNS_OVER_TLS_PORT 853
1273 /** default port for unbound control traffic, registered port with IANA,
1274     ub-dns-control  8953/tcp    unbound dns nameserver control */
1275 #define UNBOUND_CONTROL_PORT 8953
1276 /** the version of unbound-control that this software implements */
1277 #define UNBOUND_CONTROL_VERSION 1
1278
1279