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