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