Lines Matching full:else
155 # else
162 #else
334 #else
515 else if(strcmp(opt, "statistics-interval:") == 0) {
518 else if(atoi(val) == 0)
520 else cfg->stat_interval = atoi(val);
521 } else if(strcmp(opt, "num-threads:") == 0) {
524 } else if(strcmp(opt, "outgoing-port-permit:") == 0) {
527 } else if(strcmp(opt, "outgoing-port-avoid:") == 0) {
530 } else if(strcmp(opt, "local-zone:") == 0) {
532 } else if(strcmp(opt, "val-override-date:") == 0) {
535 } else if(strlen(val) == 14) {
538 } else {
542 } else if(strcmp(opt, "local-data-ptr:") == 0) {
545 } else if(strcmp(opt, "logfile:") == 0) {
550 else if(strcmp(opt, "log-time-ascii:") == 0)
553 else if(strcmp(opt, "log-time-iso:") == 0)
556 else S_SIZET_NONZERO("max-udp-size:", max_udp_size)
557 else S_YNO("use-syslog:", use_syslog)
558 else S_STR("log-identity:", log_identity)
559 else S_YNO("extended-statistics:", stat_extended)
560 else S_YNO("statistics-inhibit-zero:", stat_inhibit_zero)
561 else S_YNO("statistics-cumulative:", stat_cumulative)
562 else S_YNO("shm-enable:", shm_enable)
563 else S_NUMBER_OR_ZERO("shm-key:", shm_key)
564 else S_YNO("do-ip4:", do_ip4)
565 else S_YNO("do-ip6:", do_ip6)
566 else S_YNO("do-udp:", do_udp)
567 else S_YNO("do-tcp:", do_tcp)
568 else S_YNO("prefer-ip4:", prefer_ip4)
569 else S_YNO("prefer-ip6:", prefer_ip6)
570 else S_YNO("tcp-upstream:", tcp_upstream)
571 else S_YNO("udp-upstream-without-downstream:",
573 else S_NUMBER_NONZERO("tcp-mss:", tcp_mss)
574 else S_NUMBER_NONZERO("outgoing-tcp-mss:", outgoing_tcp_mss)
575 else S_NUMBER_NONZERO("tcp-auth-query-timeout:", tcp_auth_query_timeout)
576 else S_NUMBER_NONZERO("tcp-idle-timeout:", tcp_idle_timeout)
577 else S_NUMBER_NONZERO("max-reuse-tcp-queries:", max_reuse_tcp_queries)
578 else S_NUMBER_NONZERO("tcp-reuse-timeout:", tcp_reuse_timeout)
579 else S_YNO("edns-tcp-keepalive:", do_tcp_keepalive)
580 else S_NUMBER_NONZERO("edns-tcp-keepalive-timeout:", tcp_keepalive_timeout)
581 else S_NUMBER_OR_ZERO("sock-queue-timeout:", sock_queue_timeout)
582 else S_YNO("ssl-upstream:", ssl_upstream)
583 else S_YNO("tls-upstream:", ssl_upstream)
584 else S_STR("ssl-service-key:", ssl_service_key)
585 else S_STR("tls-service-key:", ssl_service_key)
586 else S_STR("ssl-service-pem:", ssl_service_pem)
587 else S_STR("tls-service-pem:", ssl_service_pem)
588 else S_NUMBER_NONZERO("ssl-port:", ssl_port)
589 else S_NUMBER_NONZERO("tls-port:", ssl_port)
590 else S_STR("ssl-cert-bundle:", tls_cert_bundle)
591 else S_STR("tls-cert-bundle:", tls_cert_bundle)
592 else S_YNO("tls-win-cert:", tls_win_cert)
593 else S_YNO("tls-system-cert:", tls_win_cert)
594 else S_STRLIST("additional-ssl-port:", tls_additional_port)
595 else S_STRLIST("additional-tls-port:", tls_additional_port)
596 else S_STRLIST("tls-additional-ports:", tls_additional_port)
597 else S_STRLIST("tls-additional-port:", tls_additional_port)
598 else S_STRLIST_APPEND("tls-session-ticket-keys:", tls_session_ticket_keys)
599 else S_STR("tls-ciphers:", tls_ciphers)
600 else S_STR("tls-ciphersuites:", tls_ciphersuites)
601 else S_YNO("tls-use-sni:", tls_use_sni)
602 else S_NUMBER_NONZERO("https-port:", https_port)
603 else S_STR("http-endpoint:", http_endpoint)
604 else S_NUMBER_NONZERO("http-max-streams:", http_max_streams)
605 else S_MEMSIZE("http-query-buffer-size:", http_query_buffer_size)
606 else S_MEMSIZE("http-response-buffer-size:", http_response_buffer_size)
607 else S_YNO("http-nodelay:", http_nodelay)
608 else S_YNO("http-notls-downstream:", http_notls_downstream)
609 else S_NUMBER_NONZERO("quic-port:", quic_port)
610 else S_MEMSIZE("quic-size:", quic_size)
611 else S_YNO("interface-automatic:", if_automatic)
612 else S_STR("interface-automatic-ports:", if_automatic_ports)
613 else S_YNO("use-systemd:", use_systemd)
614 else S_YNO("do-daemonize:", do_daemonize)
615 else S_NUMBER_NONZERO("port:", port)
616 else S_NUMBER_NONZERO("outgoing-range:", outgoing_num_ports)
617 else S_SIZET_OR_ZERO("outgoing-num-tcp:", outgoing_num_tcp)
618 else S_SIZET_OR_ZERO("incoming-num-tcp:", incoming_num_tcp)
619 else S_MEMSIZE("stream-wait-size:", stream_wait_size)
620 else S_SIZET_NONZERO("edns-buffer-size:", edns_buffer_size)
621 else S_SIZET_NONZERO("msg-buffer-size:", msg_buffer_size)
622 else S_MEMSIZE("msg-cache-size:", msg_cache_size)
623 else S_POW2("msg-cache-slabs:", msg_cache_slabs)
624 else S_SIZET_NONZERO("num-queries-per-thread:",num_queries_per_thread)
625 else S_SIZET_OR_ZERO("jostle-timeout:", jostle_time)
626 else S_MEMSIZE("so-rcvbuf:", so_rcvbuf)
627 else S_MEMSIZE("so-sndbuf:", so_sndbuf)
628 else S_YNO("so-reuseport:", so_reuseport)
629 else S_YNO("ip-transparent:", ip_transparent)
630 else S_YNO("ip-freebind:", ip_freebind)
631 else S_NUMBER_OR_ZERO("ip-dscp:", ip_dscp)
632 else S_MEMSIZE("rrset-cache-size:", rrset_cache_size)
633 else S_POW2("rrset-cache-slabs:", rrset_cache_slabs)
634 else S_YNO("prefetch:", prefetch)
635 else S_YNO("prefetch-key:", prefetch_key)
636 else S_YNO("deny-any:", deny_any)
637 else if(strcmp(opt, "cache-max-ttl:") == 0)
639 else if(strcmp(opt, "cache-max-negative-ttl:") == 0)
641 else if(strcmp(opt, "cache-min-negative-ttl:") == 0)
643 else if(strcmp(opt, "cache-min-ttl:") == 0)
645 else if(strcmp(opt, "infra-cache-min-rtt:") == 0) {
649 else if(strcmp(opt, "infra-cache-max-rtt:") == 0) {
655 else S_YNO("infra-keep-probing:", infra_keep_probing)
656 else S_NUMBER_OR_ZERO("infra-host-ttl:", host_ttl)
657 else S_POW2("infra-cache-slabs:", infra_cache_slabs)
658 else S_SIZET_NONZERO("infra-cache-numhosts:", infra_cache_numhosts)
659 else S_NUMBER_OR_ZERO("delay-close:", delay_close)
660 else S_YNO("udp-connect:", udp_connect)
661 else S_STR("chroot:", chrootdir)
662 else S_STR("username:", username)
663 else S_STR("directory:", directory)
664 else S_STR("pidfile:", pidfile)
665 else S_YNO("hide-identity:", hide_identity)
666 else S_YNO("hide-version:", hide_version)
667 else S_YNO("hide-trustanchor:", hide_trustanchor)
668 else S_YNO("hide-http-user-agent:", hide_http_user_agent)
669 else S_STR("identity:", identity)
670 else S_STR("version:", version)
671 else S_STR("http-user-agent:", http_user_agent)
672 else if(strcmp(opt, "nsid:") == 0) {
686 else S_STRLIST("root-hints:", root_hints)
687 else S_STR("target-fetch-policy:", target_fetch_policy)
688 else S_YNO("harden-glue:", harden_glue)
689 else S_YNO("harden-unverified-glue:", harden_unverified_glue)
690 else S_YNO("harden-short-bufsize:", harden_short_bufsize)
691 else S_YNO("harden-large-queries:", harden_large_queries)
692 else S_YNO("harden-dnssec-stripped:", harden_dnssec_stripped)
693 else S_YNO("harden-below-nxdomain:", harden_below_nxdomain)
694 else S_YNO("harden-referral-path:", harden_referral_path)
695 else S_YNO("harden-algo-downgrade:", harden_algo_downgrade)
696 else S_YNO("harden-unknown-additional:", harden_unknown_additional)
697 else S_YNO("use-caps-for-id:", use_caps_bits_for_id)
698 else S_STRLIST("caps-whitelist:", caps_whitelist)
699 else S_SIZET_OR_ZERO("unwanted-reply-threshold:", unwanted_threshold)
700 else S_STRLIST("private-address:", private_address)
701 else S_STRLIST("private-domain:", private_domain)
702 else S_YNO("do-not-query-localhost:", donotquery_localhost)
703 else S_STRLIST("do-not-query-address:", donotqueryaddrs)
704 else S_STRLIST("auto-trust-anchor-file:", auto_trust_anchor_file_list)
705 else S_STRLIST("trust-anchor-file:", trust_anchor_file_list)
706 else S_STRLIST("trust-anchor:", trust_anchor_list)
707 else S_STRLIST("trusted-keys-file:", trusted_keys_file_list)
708 else S_YNO("trust-anchor-signaling:", trust_anchor_signaling)
709 else S_YNO("root-key-sentinel:", root_key_sentinel)
710 else S_STRLIST("domain-insecure:", domain_insecure)
711 else S_NUMBER_OR_ZERO("val-bogus-ttl:", bogus_ttl)
712 else S_YNO("val-clean-additional:", val_clean_additional)
713 else S_NUMBER_OR_ZERO("val-log-level:", val_log_level)
714 else S_YNO("val-log-squelch:", val_log_squelch)
715 else S_YNO("log-queries:", log_queries)
716 else S_YNO("log-replies:", log_replies)
717 else S_YNO("log-tag-queryreply:", log_tag_queryreply)
718 else S_YNO("log-local-actions:", log_local_actions)
719 else S_YNO("log-servfail:", log_servfail)
720 else S_YNO("log-destaddr:", log_destaddr)
721 else S_YNO("val-permissive-mode:", val_permissive_mode)
722 else S_YNO("aggressive-nsec:", aggressive_nsec)
723 else S_YNO("ignore-cd-flag:", ignore_cd)
724 else S_YNO("disable-edns-do:", disable_edns_do)
725 else if(strcmp(opt, "serve-expired:") == 0)
728 else if(strcmp(opt, "serve-expired-ttl:") == 0)
730 else if(strcmp(opt, "serve-expired-ttl-reset:") == 0)
733 else if(strcmp(opt, "serve-expired-reply-ttl:") == 0)
735 else S_NUMBER_OR_ZERO("serve-expired-client-timeout:", serve_expired_client_timeout)
736 else S_YNO("ede:", ede)
737 else S_YNO("ede-serve-expired:", ede_serve_expired)
738 else S_NUMBER_OR_ZERO("iter-scrub-ns:", iter_scrub_ns)
739 else S_NUMBER_OR_ZERO("iter-scrub-cname:", iter_scrub_cname)
740 else S_NUMBER_OR_ZERO("max-global-quota:", max_global_quota)
741 else S_YNO("serve-original-ttl:", serve_original_ttl)
742 else S_STR("val-nsec3-keysize-iterations:", val_nsec3_key_iterations)
743 else S_YNO("zonemd-permissive-mode:", zonemd_permissive_mode)
744 else S_UNSIGNED_OR_ZERO("add-holddown:", add_holddown)
745 else S_UNSIGNED_OR_ZERO("del-holddown:", del_holddown)
746 else S_UNSIGNED_OR_ZERO("keep-missing:", keep_missing)
747 else if(strcmp(opt, "permit-small-holddown:") == 0)
750 else S_MEMSIZE("key-cache-size:", key_cache_size)
751 else S_POW2("key-cache-slabs:", key_cache_slabs)
752 else S_MEMSIZE("neg-cache-size:", neg_cache_size)
753 else S_YNO("minimal-responses:", minimal_responses)
754 else S_YNO("rrset-roundrobin:", rrset_roundrobin)
755 else S_NUMBER_OR_ZERO("unknown-server-time-limit:", unknown_server_time_limit)
756 else S_NUMBER_OR_ZERO("discard-timeout:", discard_timeout)
757 else S_NUMBER_OR_ZERO("wait-limit:", wait_limit)
758 else S_NUMBER_OR_ZERO("wait-limit-cookie:", wait_limit_cookie)
759 else S_STRLIST("local-data:", local_data)
760 else S_YNO("unblock-lan-zones:", unblock_lan_zones)
761 else S_YNO("insecure-lan-zones:", insecure_lan_zones)
762 else S_YNO("control-enable:", remote_control_enable)
763 else S_STRLIST_APPEND("control-interface:", control_ifs)
764 else S_NUMBER_NONZERO("control-port:", control_port)
765 else S_STR("server-key-file:", server_key_file)
766 else S_STR("server-cert-file:", server_cert_file)
767 else S_STR("control-key-file:", control_key_file)
768 else S_STR("control-cert-file:", control_cert_file)
769 else S_STR("module-config:", module_conf)
770 else S_STRLIST("python-script:", python_script)
771 else S_STRLIST("dynlib-file:", dynlib_file)
772 else S_YNO("disable-dnssec-lame-check:", disable_dnssec_lame_check)
780 else S_YNO("dnstap-enable:", dnstap)
781 else S_YNO("dnstap-bidirectional:", dnstap_bidirectional)
782 else S_STR("dnstap-socket-path:", dnstap_socket_path)
783 else S_STR("dnstap-ip:", dnstap_ip)
784 else S_YNO("dnstap-tls:", dnstap_tls)
785 else S_STR("dnstap-tls-server-name:", dnstap_tls_server_name)
786 else S_STR("dnstap-tls-cert-bundle:", dnstap_tls_cert_bundle)
787 else S_STR("dnstap-tls-client-key-file:", dnstap_tls_client_key_file)
788 else S_STR("dnstap-tls-client-cert-file:",
790 else S_YNO("dnstap-send-identity:", dnstap_send_identity)
791 else S_YNO("dnstap-send-version:", dnstap_send_version)
792 else S_STR("dnstap-identity:", dnstap_identity)
793 else S_STR("dnstap-version:", dnstap_version)
794 else S_NUMBER_OR_ZERO("dnstap-sample-rate:", dnstap_sample_rate)
795 else S_YNO("dnstap-log-resolver-query-messages:",
797 else S_YNO("dnstap-log-resolver-response-messages:",
799 else S_YNO("dnstap-log-client-query-messages:",
801 else S_YNO("dnstap-log-client-response-messages:",
803 else S_YNO("dnstap-log-forwarder-query-messages:",
805 else S_YNO("dnstap-log-forwarder-response-messages:",
809 else S_YNO("dnscrypt-enable:", dnscrypt)
810 else S_NUMBER_NONZERO("dnscrypt-port:", dnscrypt_port)
811 else S_STR("dnscrypt-provider:", dnscrypt_provider)
812 else S_STRLIST_UNIQ("dnscrypt-provider-cert:", dnscrypt_provider_cert)
813 else S_STRLIST("dnscrypt-provider-cert-rotated:", dnscrypt_provider_cert_rotated)
814 else S_STRLIST_UNIQ("dnscrypt-secret-key:", dnscrypt_secret_key)
815 else S_MEMSIZE("dnscrypt-shared-secret-cache-size:",
817 else S_POW2("dnscrypt-shared-secret-cache-slabs:",
819 else S_MEMSIZE("dnscrypt-nonce-cache-size:",
821 else S_POW2("dnscrypt-nonce-cache-slabs:",
824 else if(strcmp(opt, "ip-ratelimit-cookie:") == 0) {
828 else if(strcmp(opt, "ip-ratelimit:") == 0) {
832 else if(strcmp(opt, "ratelimit:") == 0) {
836 else S_MEMSIZE("ip-ratelimit-size:", ip_ratelimit_size)
837 else S_MEMSIZE("ratelimit-size:", ratelimit_size)
838 else S_POW2("ip-ratelimit-slabs:", ip_ratelimit_slabs)
839 else S_POW2("ratelimit-slabs:", ratelimit_slabs)
840 else S_NUMBER_OR_ZERO("ip-ratelimit-factor:", ip_ratelimit_factor)
841 else S_NUMBER_OR_ZERO("ratelimit-factor:", ratelimit_factor)
842 else S_YNO("ip-ratelimit-backoff:", ip_ratelimit_backoff)
843 else S_YNO("ratelimit-backoff:", ratelimit_backoff)
844 else S_NUMBER_NONZERO("outbound-msg-retry:", outbound_msg_retry)
845 else S_NUMBER_NONZERO("max-sent-count:", max_sent_count)
846 else S_NUMBER_NONZERO("max-query-restarts:", max_query_restarts)
847 else S_SIZET_NONZERO("fast-server-num:", fast_server_num)
848 else S_NUMBER_OR_ZERO("fast-server-permil:", fast_server_permil)
849 else S_YNO("qname-minimisation:", qname_minimisation)
850 else S_YNO("qname-minimisation-strict:", qname_minimisation_strict)
851 else S_YNO("pad-responses:", pad_responses)
852 else S_SIZET_NONZERO("pad-responses-block-size:", pad_responses_block_size)
853 else S_YNO("pad-queries:", pad_queries)
854 else S_SIZET_NONZERO("pad-queries-block-size:", pad_queries_block_size)
855 else S_STRLIST("proxy-protocol-port:", proxy_protocol_port)
857 else S_YNO("ipsecmod-enabled:", ipsecmod_enabled)
858 else S_YNO("ipsecmod-ignore-bogus:", ipsecmod_ignore_bogus)
859 else if(strcmp(opt, "ipsecmod-max-ttl:") == 0)
861 else S_YNO("ipsecmod-strict:", ipsecmod_strict)
863 else S_YNO("answer-cookie:", do_answer_cookie)
864 else S_STR("cookie-secret-file:", cookie_secret_file)
866 else S_YNO("cachedb-no-store:", cachedb_no_store)
867 else S_YNO("cachedb-check-when-serve-expired:", cachedb_check_when_serve_expired)
869 else if(strcmp(opt, "define-tag:") ==0) {
873 } else if(strcmp(opt, "val-sig-skew-min:") == 0)
875 else if(strcmp(opt, "val-sig-skew-max:") == 0)
877 else if(strcmp(opt, "val-max-restart:") == 0)
879 else if (strcmp(opt, "outgoing-interface:") == 0) {
890 } else {
1016 } else snprintf(buf, len, "%u", (unsigned)cfg->var); \
1068 else O_DEC(opt, "statistics-interval", stat_interval)
1069 else O_YNO(opt, "statistics-cumulative", stat_cumulative)
1070 else O_YNO(opt, "extended-statistics", stat_extended)
1071 else O_YNO(opt, "statistics-inhibit-zero", stat_inhibit_zero)
1072 else O_YNO(opt, "shm-enable", shm_enable)
1073 else O_DEC(opt, "shm-key", shm_key)
1074 else O_YNO(opt, "use-syslog", use_syslog)
1075 else O_STR(opt, "log-identity", log_identity)
1076 else O_YNO(opt, "log-time-ascii", log_time_ascii)
1077 else O_YNO(opt, "log-time-iso", log_time_iso)
1078 else O_DEC(opt, "num-threads", num_threads)
1079 else O_IFC(opt, "interface", num_ifs, ifs)
1080 else O_IFC(opt, "outgoing-interface", num_out_ifs, out_ifs)
1081 else O_YNO(opt, "interface-automatic", if_automatic)
1082 else O_STR(opt, "interface-automatic-ports", if_automatic_ports)
1083 else O_DEC(opt, "port", port)
1084 else O_DEC(opt, "outgoing-range", outgoing_num_ports)
1085 else O_DEC(opt, "outgoing-num-tcp", outgoing_num_tcp)
1086 else O_DEC(opt, "incoming-num-tcp", incoming_num_tcp)
1087 else O_MEM(opt, "stream-wait-size", stream_wait_size)
1088 else O_DEC(opt, "edns-buffer-size", edns_buffer_size)
1089 else O_DEC(opt, "msg-buffer-size", msg_buffer_size)
1090 else O_MEM(opt, "msg-cache-size", msg_cache_size)
1091 else O_DEC(opt, "msg-cache-slabs", msg_cache_slabs)
1092 else O_DEC(opt, "num-queries-per-thread", num_queries_per_thread)
1093 else O_UNS(opt, "jostle-timeout", jostle_time)
1094 else O_MEM(opt, "so-rcvbuf", so_rcvbuf)
1095 else O_MEM(opt, "so-sndbuf", so_sndbuf)
1096 else O_YNO(opt, "so-reuseport", so_reuseport)
1097 else O_YNO(opt, "ip-transparent", ip_transparent)
1098 else O_YNO(opt, "ip-freebind", ip_freebind)
1099 else O_DEC(opt, "ip-dscp", ip_dscp)
1100 else O_MEM(opt, "rrset-cache-size", rrset_cache_size)
1101 else O_DEC(opt, "rrset-cache-slabs", rrset_cache_slabs)
1102 else O_YNO(opt, "prefetch-key", prefetch_key)
1103 else O_YNO(opt, "prefetch", prefetch)
1104 else O_YNO(opt, "deny-any", deny_any)
1105 else O_DEC(opt, "cache-max-ttl", max_ttl)
1106 else O_DEC(opt, "cache-max-negative-ttl", max_negative_ttl)
1107 else O_DEC(opt, "cache-min-negative-ttl", min_negative_ttl)
1108 else O_DEC(opt, "cache-min-ttl", min_ttl)
1109 else O_DEC(opt, "infra-host-ttl", host_ttl)
1110 else O_DEC(opt, "infra-cache-slabs", infra_cache_slabs)
1111 else O_DEC(opt, "infra-cache-min-rtt", infra_cache_min_rtt)
1112 else O_UNS(opt, "infra-cache-max-rtt", infra_cache_max_rtt)
1113 else O_YNO(opt, "infra-keep-probing", infra_keep_probing)
1114 else O_MEM(opt, "infra-cache-numhosts", infra_cache_numhosts)
1115 else O_UNS(opt, "delay-close", delay_close)
1116 else O_YNO(opt, "udp-connect", udp_connect)
1117 else O_YNO(opt, "do-ip4", do_ip4)
1118 else O_YNO(opt, "do-ip6", do_ip6)
1119 else O_YNO(opt, "do-udp", do_udp)
1120 else O_YNO(opt, "do-tcp", do_tcp)
1121 else O_YNO(opt, "prefer-ip4", prefer_ip4)
1122 else O_YNO(opt, "prefer-ip6", prefer_ip6)
1123 else O_YNO(opt, "tcp-upstream", tcp_upstream)
1124 else O_YNO(opt, "udp-upstream-without-downstream", udp_upstream_without_downstream)
1125 else O_DEC(opt, "tcp-mss", tcp_mss)
1126 else O_DEC(opt, "outgoing-tcp-mss", outgoing_tcp_mss)
1127 else O_DEC(opt, "tcp-auth-query-timeout", tcp_auth_query_timeout)
1128 else O_DEC(opt, "tcp-idle-timeout", tcp_idle_timeout)
1129 else O_DEC(opt, "max-reuse-tcp-queries", max_reuse_tcp_queries)
1130 else O_DEC(opt, "tcp-reuse-timeout", tcp_reuse_timeout)
1131 else O_YNO(opt, "edns-tcp-keepalive", do_tcp_keepalive)
1132 else O_DEC(opt, "edns-tcp-keepalive-timeout", tcp_keepalive_timeout)
1133 else O_DEC(opt, "sock-queue-timeout", sock_queue_timeout)
1134 else O_YNO(opt, "ssl-upstream", ssl_upstream)
1135 else O_YNO(opt, "tls-upstream", ssl_upstream)
1136 else O_STR(opt, "ssl-service-key", ssl_service_key)
1137 else O_STR(opt, "tls-service-key", ssl_service_key)
1138 else O_STR(opt, "ssl-service-pem", ssl_service_pem)
1139 else O_STR(opt, "tls-service-pem", ssl_service_pem)
1140 else O_DEC(opt, "ssl-port", ssl_port)
1141 else O_DEC(opt, "tls-port", ssl_port)
1142 else O_STR(opt, "ssl-cert-bundle", tls_cert_bundle)
1143 else O_STR(opt, "tls-cert-bundle", tls_cert_bundle)
1144 else O_YNO(opt, "tls-win-cert", tls_win_cert)
1145 else O_YNO(opt, "tls-system-cert", tls_win_cert)
1146 else O_LST(opt, "additional-ssl-port", tls_additional_port)
1147 else O_LST(opt, "additional-tls-port", tls_additional_port)
1148 else O_LST(opt, "tls-additional-ports", tls_additional_port)
1149 else O_LST(opt, "tls-additional-port", tls_additional_port)
1150 else O_LST(opt, "tls-session-ticket-keys", tls_session_ticket_keys.first)
1151 else O_STR(opt, "tls-ciphers", tls_ciphers)
1152 else O_STR(opt, "tls-ciphersuites", tls_ciphersuites)
1153 else O_YNO(opt, "tls-use-sni", tls_use_sni)
1154 else O_DEC(opt, "https-port", https_port)
1155 else O_STR(opt, "http-endpoint", http_endpoint)
1156 else O_UNS(opt, "http-max-streams", http_max_streams)
1157 else O_MEM(opt, "http-query-buffer-size", http_query_buffer_size)
1158 else O_MEM(opt, "http-response-buffer-size", http_response_buffer_size)
1159 else O_YNO(opt, "http-nodelay", http_nodelay)
1160 else O_YNO(opt, "http-notls-downstream", http_notls_downstream)
1161 else O_DEC(opt, "quic-port", quic_port)
1162 else O_MEM(opt, "quic-size", quic_size)
1163 else O_YNO(opt, "use-systemd", use_systemd)
1164 else O_YNO(opt, "do-daemonize", do_daemonize)
1165 else O_STR(opt, "chroot", chrootdir)
1166 else O_STR(opt, "username", username)
1167 else O_STR(opt, "directory", directory)
1168 else O_STR(opt, "logfile", logfile)
1169 else O_YNO(opt, "log-queries", log_queries)
1170 else O_YNO(opt, "log-replies", log_replies)
1171 else O_YNO(opt, "log-tag-queryreply", log_tag_queryreply)
1172 else O_YNO(opt, "log-local-actions", log_local_actions)
1173 else O_YNO(opt, "log-servfail", log_servfail)
1174 else O_YNO(opt, "log-destaddr", log_destaddr)
1175 else O_STR(opt, "pidfile", pidfile)
1176 else O_YNO(opt, "hide-identity", hide_identity)
1177 else O_YNO(opt, "hide-version", hide_version)
1178 else O_YNO(opt, "hide-trustanchor", hide_trustanchor)
1179 else O_YNO(opt, "hide-http-user-agent", hide_http_user_agent)
1180 else O_STR(opt, "identity", identity)
1181 else O_STR(opt, "version", version)
1182 else O_STR(opt, "http-user-agent", http_user_agent)
1183 else O_STR(opt, "nsid", nsid_cfg_str)
1184 else O_STR(opt, "target-fetch-policy", target_fetch_policy)
1185 else O_YNO(opt, "harden-short-bufsize", harden_short_bufsize)
1186 else O_YNO(opt, "harden-large-queries", harden_large_queries)
1187 else O_YNO(opt, "harden-glue", harden_glue)
1188 else O_YNO(opt, "harden-unverified-glue", harden_unverified_glue)
1189 else O_YNO(opt, "harden-dnssec-stripped", harden_dnssec_stripped)
1190 else O_YNO(opt, "harden-below-nxdomain", harden_below_nxdomain)
1191 else O_YNO(opt, "harden-referral-path", harden_referral_path)
1192 else O_YNO(opt, "harden-algo-downgrade", harden_algo_downgrade)
1193 else O_YNO(opt, "harden-unknown-additional", harden_unknown_additional)
1194 else O_YNO(opt, "use-caps-for-id", use_caps_bits_for_id)
1195 else O_LST(opt, "caps-whitelist", caps_whitelist)
1196 else O_DEC(opt, "unwanted-reply-threshold", unwanted_threshold)
1197 else O_YNO(opt, "do-not-query-localhost", donotquery_localhost)
1198 else O_STR(opt, "module-config", module_conf)
1199 else O_DEC(opt, "val-bogus-ttl", bogus_ttl)
1200 else O_YNO(opt, "val-clean-additional", val_clean_additional)
1201 else O_DEC(opt, "val-log-level", val_log_level)
1202 else O_YNO(opt, "val-permissive-mode", val_permissive_mode)
1203 else O_YNO(opt, "aggressive-nsec", aggressive_nsec)
1204 else O_YNO(opt, "ignore-cd-flag", ignore_cd)
1205 else O_YNO(opt, "disable-edns-do", disable_edns_do)
1206 else O_YNO(opt, "serve-expired", serve_expired)
1207 else O_DEC(opt, "serve-expired-ttl", serve_expired_ttl)
1208 else O_YNO(opt, "serve-expired-ttl-reset", serve_expired_ttl_reset)
1209 else O_DEC(opt, "serve-expired-reply-ttl", serve_expired_reply_ttl)
1210 else O_DEC(opt, "serve-expired-client-timeout", serve_expired_client_timeout)
1211 else O_YNO(opt, "ede", ede)
1212 else O_YNO(opt, "ede-serve-expired", ede_serve_expired)
1213 else O_DEC(opt, "iter-scrub-ns", iter_scrub_ns)
1214 else O_DEC(opt, "iter-scrub-cname", iter_scrub_cname)
1215 else O_DEC(opt, "max-global-quota", max_global_quota)
1216 else O_YNO(opt, "serve-original-ttl", serve_original_ttl)
1217 else O_STR(opt, "val-nsec3-keysize-iterations",val_nsec3_key_iterations)
1218 else O_YNO(opt, "zonemd-permissive-mode", zonemd_permissive_mode)
1219 else O_UNS(opt, "add-holddown", add_holddown)
1220 else O_UNS(opt, "del-holddown", del_holddown)
1221 else O_UNS(opt, "keep-missing", keep_missing)
1222 else O_YNO(opt, "permit-small-holddown", permit_small_holddown)
1223 else O_MEM(opt, "key-cache-size", key_cache_size)
1224 else O_DEC(opt, "key-cache-slabs", key_cache_slabs)
1225 else O_MEM(opt, "neg-cache-size", neg_cache_size)
1226 else O_YNO(opt, "control-enable", remote_control_enable)
1227 else O_DEC(opt, "control-port", control_port)
1228 else O_STR(opt, "server-key-file", server_key_file)
1229 else O_STR(opt, "server-cert-file", server_cert_file)
1230 else O_STR(opt, "control-key-file", control_key_file)
1231 else O_STR(opt, "control-cert-file", control_cert_file)
1232 else O_LST(opt, "root-hints", root_hints)
1233 else O_LS2(opt, "access-control", acls)
1234 else O_LS2(opt, "tcp-connection-limit", tcp_connection_limits)
1235 else O_LST(opt, "do-not-query-address", donotqueryaddrs)
1236 else O_LST(opt, "private-address", private_address)
1237 else O_LST(opt, "private-domain", private_domain)
1238 else O_LST(opt, "auto-trust-anchor-file", auto_trust_anchor_file_list)
1239 else O_LST(opt, "trust-anchor-file", trust_anchor_file_list)
1240 else O_LST(opt, "trust-anchor", trust_anchor_list)
1241 else O_LST(opt, "trusted-keys-file", trusted_keys_file_list)
1242 else O_YNO(opt, "trust-anchor-signaling", trust_anchor_signaling)
1243 else O_YNO(opt, "root-key-sentinel", root_key_sentinel)
1244 else O_LST(opt, "control-interface", control_ifs.first)
1245 else O_LST(opt, "domain-insecure", domain_insecure)
1246 else O_UNS(opt, "val-override-date", val_date_override)
1247 else O_YNO(opt, "minimal-responses", minimal_responses)
1248 else O_YNO(opt, "rrset-roundrobin", rrset_roundrobin)
1249 else O_DEC(opt, "unknown-server-time-limit", unknown_server_time_limit)
1250 else O_DEC(opt, "discard-timeout", discard_timeout)
1251 else O_DEC(opt, "wait-limit", wait_limit)
1252 else O_DEC(opt, "wait-limit-cookie", wait_limit_cookie)
1253 else O_LS2(opt, "wait-limit-netblock", wait_limit_netblock)
1254 else O_LS2(opt, "wait-limit-cookie-netblock", wait_limit_cookie_netblock)
1256 else O_LST(opt, "send-client-subnet", client_subnet)
1257 else O_LST(opt, "client-subnet-zone", client_subnet_zone)
1258 else O_DEC(opt, "max-client-subnet-ipv4", max_client_subnet_ipv4)
1259 else O_DEC(opt, "max-client-subnet-ipv6", max_client_subnet_ipv6)
1260 else O_DEC(opt, "min-client-subnet-ipv4", min_client_subnet_ipv4)
1261 else O_DEC(opt, "min-client-subnet-ipv6", min_client_subnet_ipv6)
1262 else O_DEC(opt, "max-ecs-tree-size-ipv4", max_ecs_tree_size_ipv4)
1263 else O_DEC(opt, "max-ecs-tree-size-ipv6", max_ecs_tree_size_ipv6)
1264 else O_YNO(opt, "client-subnet-always-forward:",
1268 else O_YNO(opt, "dnstap-enable", dnstap)
1269 else O_YNO(opt, "dnstap-bidirectional", dnstap_bidirectional)
1270 else O_STR(opt, "dnstap-socket-path", dnstap_socket_path)
1271 else O_STR(opt, "dnstap-ip", dnstap_ip)
1272 else O_YNO(opt, "dnstap-tls", dnstap_tls)
1273 else O_STR(opt, "dnstap-tls-server-name", dnstap_tls_server_name)
1274 else O_STR(opt, "dnstap-tls-cert-bundle", dnstap_tls_cert_bundle)
1275 else O_STR(opt, "dnstap-tls-client-key-file",
1277 else O_STR(opt, "dnstap-tls-client-cert-file",
1279 else O_YNO(opt, "dnstap-send-identity", dnstap_send_identity)
1280 else O_YNO(opt, "dnstap-send-version", dnstap_send_version)
1281 else O_STR(opt, "dnstap-identity", dnstap_identity)
1282 else O_STR(opt, "dnstap-version", dnstap_version)
1283 else O_UNS(opt, "dnstap-sample-rate", dnstap_sample_rate)
1284 else O_YNO(opt, "dnstap-log-resolver-query-messages",
1286 else O_YNO(opt, "dnstap-log-resolver-response-messages",
1288 else O_YNO(opt, "dnstap-log-client-query-messages",
1290 else O_YNO(opt, "dnstap-log-client-response-messages",
1292 else O_YNO(opt, "dnstap-log-forwarder-query-messages",
1294 else O_YNO(opt, "dnstap-log-forwarder-response-messages",
1298 else O_YNO(opt, "dnscrypt-enable", dnscrypt)
1299 else O_DEC(opt, "dnscrypt-port", dnscrypt_port)
1300 else O_STR(opt, "dnscrypt-provider", dnscrypt_provider)
1301 else O_LST(opt, "dnscrypt-provider-cert", dnscrypt_provider_cert)
1302 else O_LST(opt, "dnscrypt-provider-cert-rotated", dnscrypt_provider_cert_rotated)
1303 else O_LST(opt, "dnscrypt-secret-key", dnscrypt_secret_key)
1304 else O_MEM(opt, "dnscrypt-shared-secret-cache-size",
1306 else O_DEC(opt, "dnscrypt-shared-secret-cache-slabs",
1308 else O_MEM(opt, "dnscrypt-nonce-cache-size",
1310 else O_DEC(opt, "dnscrypt-nonce-cache-slabs",
1313 else O_YNO(opt, "unblock-lan-zones", unblock_lan_zones)
1314 else O_YNO(opt, "insecure-lan-zones", insecure_lan_zones)
1315 else O_DEC(opt, "max-udp-size", max_udp_size)
1316 else O_LST(opt, "python-script", python_script)
1317 else O_LST(opt, "dynlib-file", dynlib_file)
1318 else O_YNO(opt, "disable-dnssec-lame-check", disable_dnssec_lame_check)
1319 else O_DEC(opt, "ip-ratelimit-cookie", ip_ratelimit_cookie)
1320 else O_DEC(opt, "ip-ratelimit", ip_ratelimit)
1321 else O_DEC(opt, "ratelimit", ratelimit)
1322 else O_MEM(opt, "ip-ratelimit-size", ip_ratelimit_size)
1323 else O_MEM(opt, "ratelimit-size", ratelimit_size)
1324 else O_DEC(opt, "ip-ratelimit-slabs", ip_ratelimit_slabs)
1325 else O_DEC(opt, "ratelimit-slabs", ratelimit_slabs)
1326 else O_LS2(opt, "ratelimit-for-domain", ratelimit_for_domain)
1327 else O_LS2(opt, "ratelimit-below-domain", ratelimit_below_domain)
1328 else O_DEC(opt, "ip-ratelimit-factor", ip_ratelimit_factor)
1329 else O_DEC(opt, "ratelimit-factor", ratelimit_factor)
1330 else O_YNO(opt, "ip-ratelimit-backoff", ip_ratelimit_backoff)
1331 else O_YNO(opt, "ratelimit-backoff", ratelimit_backoff)
1332 else O_UNS(opt, "outbound-msg-retry", outbound_msg_retry)
1333 else O_UNS(opt, "max-sent-count", max_sent_count)
1334 else O_UNS(opt, "max-query-restarts", max_query_restarts)
1335 else O_DEC(opt, "fast-server-num", fast_server_num)
1336 else O_DEC(opt, "fast-server-permil", fast_server_permil)
1337 else O_DEC(opt, "val-sig-skew-min", val_sig_skew_min)
1338 else O_DEC(opt, "val-sig-skew-max", val_sig_skew_max)
1339 else O_DEC(opt, "val-max-restart", val_max_restart)
1340 else O_YNO(opt, "qname-minimisation", qname_minimisation)
1341 else O_YNO(opt, "qname-minimisation-strict", qname_minimisation_strict)
1342 else O_IFC(opt, "define-tag", num_tags, tagname)
1343 else O_LTG(opt, "local-zone-tag", local_zone_tags)
1344 else O_LTG(opt, "access-control-tag", acl_tags)
1345 else O_LTG(opt, "response-ip-tag", respip_tags)
1346 else O_LS3(opt, "local-zone-override", local_zone_overrides)
1347 else O_LS3(opt, "access-control-tag-action", acl_tag_actions)
1348 else O_LS3(opt, "access-control-tag-data", acl_tag_datas)
1349 else O_LS2(opt, "access-control-view", acl_view)
1350 else O_LS2(opt, "interface-action", interface_actions)
1351 else O_LTG(opt, "interface-tag", interface_tags)
1352 else O_LS3(opt, "interface-tag-action", interface_tag_actions)
1353 else O_LS3(opt, "interface-tag-data", interface_tag_datas)
1354 else O_LS2(opt, "interface-view", interface_view)
1355 else O_YNO(opt, "pad-responses", pad_responses)
1356 else O_DEC(opt, "pad-responses-block-size", pad_responses_block_size)
1357 else O_YNO(opt, "pad-queries", pad_queries)
1358 else O_DEC(opt, "pad-queries-block-size", pad_queries_block_size)
1359 else O_LS2(opt, "edns-client-strings", edns_client_strings)
1360 else O_LST(opt, "proxy-protocol-port", proxy_protocol_port)
1362 else O_YNO(opt, "ipsecmod-enabled", ipsecmod_enabled)
1363 else O_YNO(opt, "ipsecmod-ignore-bogus", ipsecmod_ignore_bogus)
1364 else O_STR(opt, "ipsecmod-hook", ipsecmod_hook)
1365 else O_DEC(opt, "ipsecmod-max-ttl", ipsecmod_max_ttl)
1366 else O_LST(opt, "ipsecmod-whitelist", ipsecmod_whitelist)
1367 else O_YNO(opt, "ipsecmod-strict", ipsecmod_strict)
1369 else O_YNO(opt, "answer-cookie", do_answer_cookie)
1370 else O_STR(opt, "cookie-secret-file", cookie_secret_file)
1372 else O_STR(opt, "backend", cachedb_backend)
1373 else O_STR(opt, "secret-seed", cachedb_secret)
1374 else O_YNO(opt, "cachedb-no-store", cachedb_no_store)
1375 else O_YNO(opt, "cachedb-check-when-serve-expired", cachedb_check_when_serve_expired)
1377 else O_STR(opt, "redis-server-host", redis_server_host)
1378 else O_DEC(opt, "redis-server-port", redis_server_port)
1379 else O_STR(opt, "redis-server-path", redis_server_path)
1380 else O_STR(opt, "redis-server-password", redis_server_password)
1381 else O_DEC(opt, "redis-timeout", redis_timeout)
1382 else O_DEC(opt, "redis-command-timeout", redis_command_timeout)
1383 else O_DEC(opt, "redis-connect-timeout", redis_connect_timeout)
1384 else O_YNO(opt, "redis-expire-records", redis_expire_records)
1385 else O_DEC(opt, "redis-logical-db", redis_logical_db)
1389 else O_STR(opt, "name-v4", ipset_name_v4)
1390 else O_STR(opt, "name-v6", ipset_name_v6)
1400 else return 0;
1460 } else if(r == GLOB_NOSPACE) {
1463 } else if(r == GLOB_ABORTED) {
1466 } else {
1863 } else {
1946 } else {
1951 } else {
2010 else
2082 } else {
2229 else if(len > 1 && str[len-1] == 'B')
2234 else if(len > 1 && tolower((unsigned char)str[len-1]) == 'm')
2236 else if(len > 1 && tolower((unsigned char)str[len-1]) == 'k')
2238 else if(len > 0 && isdigit((unsigned char)str[len-1]))
2240 else {
2346 } else if (strlen(str) % 2) {
2350 else if (*str && (nsid = calloc(1, strlen(str) / 2))) {
2363 } else
2445 #else
2479 } else
2483 } else if(cfg->directory && cfg->directory[0]) {
2491 else len += strlen(cfg->directory);
2527 } else
2532 } else if(cfg->directory && cfg->directory[0]) {
2542 else (void)strlcat(buf, cfg->directory, len);
2615 } else if(strcmp(type, "ipset")==0) {
2619 } else {
2681 } else {
2720 else if(ret != ERROR_SUCCESS) {
2729 else if(ret != ERROR_SUCCESS) {
2754 } else log_err("GetModuleFileName had no path");
2823 #else
2840 #else