• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/unbound/util/

Lines Matching defs:opt

416 #define S_NUMBER_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
419 #define S_NUMBER_NONZERO(str, var) if(strcmp(opt, str) == 0) \
422 #define S_UNSIGNED_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
425 #define S_SIZET_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
428 #define S_SIZET_NONZERO(str, var) if(strcmp(opt, str) == 0) \
431 #define S_YNO(str, var) if(strcmp(opt, str) == 0) \
434 #define S_MEMSIZE(str, var) if(strcmp(opt, str)==0) \
437 #define S_POW2(str, var) if(strcmp(opt, str)==0) \
440 #define S_STR(str, var) if(strcmp(opt, str)==0) \
443 #define S_STRLIST(str, var) if(strcmp(opt, str)==0) \
446 #define S_STRLIST_UNIQ(str, var) if(strcmp(opt, str)==0) \
450 #define S_STRLIST_APPEND(str, var) if(strcmp(opt, str)==0) \
453 int config_set_option(struct config_file* cfg, const char* opt,
457 if(!opt) return 0;
458 if(opt[strlen(opt)-1] != ':' && strlen(opt)+2<sizeof(buf)) {
459 snprintf(buf, sizeof(buf), "%s:", opt);
460 opt = buf;
463 else if(strcmp(opt, "statistics-interval:") == 0) {
469 } else if(strcmp(opt, "num_threads:") == 0) {
472 } else if(strcmp(opt, "outgoing-port-permit:") == 0) {
475 } else if(strcmp(opt, "outgoing-port-avoid:") == 0) {
478 } else if(strcmp(opt, "local-zone:") == 0) {
480 } else if(strcmp(opt, "val-override-date:") == 0) {
490 } else if(strcmp(opt, "local-data-ptr:") == 0) {
491 char* ptr = cfg_ptr_reverse((char*)opt);
493 } else if(strcmp(opt, "logfile:") == 0) {
498 else if(strcmp(opt, "log-time-ascii:") == 0)
567 else if(strcmp(opt, "cache-max-ttl:") == 0)
569 else if(strcmp(opt, "cache-max-negative-ttl:") == 0)
571 else if(strcmp(opt, "cache-min-ttl:") == 0)
573 else if(strcmp(opt, "infra-cache-min-rtt:") == 0) {
592 else if(strcmp(opt, "nsid:") == 0) {
641 else if(strcmp(opt, "serve-expired:") == 0)
644 else if(strcmp(opt, "serve-expired-ttl:") == 0)
647 else if(strcmp(opt, "serve-expired-reply-ttl:") == 0)
655 else if(strcmp(opt, "permit-small-holddown:") == 0)
728 else if(strcmp(opt, "ip-ratelimit:") == 0) {
732 else if(strcmp(opt, "ratelimit:") == 0) {
753 else if(strcmp(opt, "ipsecmod-max-ttl:") == 0)
757 else if(strcmp(opt, "define-tag:") ==0) {
761 } else if(strcmp(opt, "val-sig-skew-min:") == 0)
763 else if(strcmp(opt, "val-sig-skew-max:") == 0)
765 else if (strcmp(opt, "outgoing-interface:") == 0) {
818 int config_get_option_list(struct config_file* cfg, const char* opt,
824 if(!config_get_option(cfg, opt, config_collate_func, &m))
835 config_get_option_collate(struct config_file* cfg, const char* opt, char** str)
840 if((r = config_get_option_list(cfg, opt, &list)) != 0)
881 #define O_DEC(opt, str, var) if(strcmp(opt, str)==0) \
885 #define O_UNS(opt, str, var) if(strcmp(opt, str)==0) \
889 #define O_YNO(opt, str, var) if(strcmp(opt, str)==0) \
892 #define O_STR(opt, str, var) if(strcmp(opt, str)==0) \
895 #define O_IFC(opt, str, num, arr) if(strcmp(opt, str)==0) \
898 #define O_MEM(opt, str, var) if(strcmp(opt, str)==0) { \
905 #define O_LST(opt, name, lst) if(strcmp(opt, name)==0) { \
911 #define O_LS2(opt, name, lst) if(strcmp(opt, name)==0) { \
919 #define O_LS3(opt, name, lst) if(strcmp(opt, name)==0) { \
927 #define O_LTG(opt, name, lst) if(strcmp(opt, name)==0) { \
941 config_get_option(struct config_file* cfg, const char* opt,
946 if(!opt) return 0;
947 if(opt && opt[strlen(opt)-1] == ':' && strlen(opt)<sizeof(nopt)) {
948 memmove(nopt, opt, strlen(opt));
949 nopt[strlen(opt)-1] = 0;
950 opt = nopt;
953 O_DEC(opt, "verbosity", verbosity)
954 else O_DEC(opt, "statistics-interval", stat_interval)
955 else O_YNO(opt, "statistics-cumulative", stat_cumulative)
956 else O_YNO(opt, "extended-statistics", stat_extended)
957 else O_YNO(opt, "shm-enable", shm_enable)
958 else O_DEC(opt, "shm-key", shm_key)
959 else O_YNO(opt, "use-syslog", use_syslog)
960 else O_STR(opt, "log-identity", log_identity)
961 else O_YNO(opt, "log-time-ascii", log_time_ascii)
962 else O_DEC(opt, "num-threads", num_threads)
963 else O_IFC(opt, "interface", num_ifs, ifs)
964 else O_IFC(opt, "outgoing-interface", num_out_ifs, out_ifs)
965 else O_YNO(opt, "interface-automatic", if_automatic)
966 else O_DEC(opt, "port", port)
967 else O_DEC(opt, "outgoing-range", outgoing_num_ports)
968 else O_DEC(opt, "outgoing-num-tcp", outgoing_num_tcp)
969 else O_DEC(opt, "incoming-num-tcp", incoming_num_tcp)
970 else O_MEM(opt, "stream-wait-size", stream_wait_size)
971 else O_DEC(opt, "edns-buffer-size", edns_buffer_size)
972 else O_DEC(opt, "msg-buffer-size", msg_buffer_size)
973 else O_MEM(opt, "msg-cache-size", msg_cache_size)
974 else O_DEC(opt, "msg-cache-slabs", msg_cache_slabs)
975 else O_DEC(opt, "num-queries-per-thread", num_queries_per_thread)
976 else O_UNS(opt, "jostle-timeout", jostle_time)
977 else O_MEM(opt, "so-rcvbuf", so_rcvbuf)
978 else O_MEM(opt, "so-sndbuf", so_sndbuf)
979 else O_YNO(opt, "so-reuseport", so_reuseport)
980 else O_YNO(opt, "ip-transparent", ip_transparent)
981 else O_YNO(opt, "ip-freebind", ip_freebind)
982 else O_DEC(opt, "ip-dscp", ip_dscp)
983 else O_MEM(opt, "rrset-cache-size", rrset_cache_size)
984 else O_DEC(opt, "rrset-cache-slabs", rrset_cache_slabs)
985 else O_YNO(opt, "prefetch-key", prefetch_key)
986 else O_YNO(opt, "prefetch", prefetch)
987 else O_YNO(opt, "deny-any", deny_any)
988 else O_DEC(opt, "cache-max-ttl", max_ttl)
989 else O_DEC(opt, "cache-max-negative-ttl", max_negative_ttl)
990 else O_DEC(opt, "cache-min-ttl", min_ttl)
991 else O_DEC(opt, "infra-host-ttl", host_ttl)
992 else O_DEC(opt, "infra-cache-slabs", infra_cache_slabs)
993 else O_DEC(opt, "infra-cache-min-rtt", infra_cache_min_rtt)
994 else O_YNO(opt, "infra-keep-probing", infra_keep_probing)
995 else O_MEM(opt, "infra-cache-numhosts", infra_cache_numhosts)
996 else O_UNS(opt, "delay-close", delay_close)
997 else O_YNO(opt, "udp-connect", udp_connect)
998 else O_YNO(opt, "do-ip4", do_ip4)
999 else O_YNO(opt, "do-ip6", do_ip6)
1000 else O_YNO(opt, "do-udp", do_udp)
1001 else O_YNO(opt, "do-tcp", do_tcp)
1002 else O_YNO(opt, "prefer-ip4", prefer_ip4)
1003 else O_YNO(opt, "prefer-ip6", prefer_ip6)
1004 else O_YNO(opt, "tcp-upstream", tcp_upstream)
1005 else O_YNO(opt, "udp-upstream-without-downstream", udp_upstream_without_downstream)
1006 else O_DEC(opt, "tcp-mss", tcp_mss)
1007 else O_DEC(opt, "outgoing-tcp-mss", outgoing_tcp_mss)
1008 else O_DEC(opt, "tcp-idle-timeout", tcp_idle_timeout)
1009 else O_YNO(opt, "edns-tcp-keepalive", do_tcp_keepalive)
1010 else O_DEC(opt, "edns-tcp-keepalive-timeout", tcp_keepalive_timeout)
1011 else O_YNO(opt, "ssl-upstream", ssl_upstream)
1012 else O_STR(opt, "ssl-service-key", ssl_service_key)
1013 else O_STR(opt, "ssl-service-pem", ssl_service_pem)
1014 else O_DEC(opt, "ssl-port", ssl_port)
1015 else O_STR(opt, "tls-cert-bundle", tls_cert_bundle)
1016 else O_YNO(opt, "tls-win-cert", tls_win_cert)
1017 else O_LST(opt, "tls-additional-port", tls_additional_port)
1018 else O_LST(opt, "tls-session-ticket-keys", tls_session_ticket_keys.first)
1019 else O_STR(opt, "tls-ciphers", tls_ciphers)
1020 else O_STR(opt, "tls-ciphersuites", tls_ciphersuites)
1021 else O_YNO(opt, "tls-use-sni", tls_use_sni)
1022 else O_DEC(opt, "https-port", https_port)
1023 else O_STR(opt, "http-endpoint", http_endpoint)
1024 else O_UNS(opt, "http-max-streams", http_max_streams)
1025 else O_MEM(opt, "http-query-buffer-size", http_query_buffer_size)
1026 else O_MEM(opt, "http-response-buffer-size", http_response_buffer_size)
1027 else O_YNO(opt, "http-nodelay", http_nodelay)
1028 else O_YNO(opt, "http-notls-downstream", http_notls_downstream)
1029 else O_YNO(opt, "use-systemd", use_systemd)
1030 else O_YNO(opt, "do-daemonize", do_daemonize)
1031 else O_STR(opt, "chroot", chrootdir)
1032 else O_STR(opt, "username", username)
1033 else O_STR(opt, "directory", directory)
1034 else O_STR(opt, "logfile", logfile)
1035 else O_YNO(opt, "log-queries", log_queries)
1036 else O_YNO(opt, "log-replies", log_replies)
1037 else O_YNO(opt, "log-tag-queryreply", log_tag_queryreply)
1038 else O_YNO(opt, "log-local-actions", log_local_actions)
1039 else O_YNO(opt, "log-servfail", log_servfail)
1040 else O_STR(opt, "pidfile", pidfile)
1041 else O_YNO(opt, "hide-identity", hide_identity)
1042 else O_YNO(opt, "hide-version", hide_version)
1043 else O_YNO(opt, "hide-trustanchor", hide_trustanchor)
1044 else O_STR(opt, "identity", identity)
1045 else O_STR(opt, "version", version)
1046 else O_STR(opt, "nsid", nsid_cfg_str)
1047 else O_STR(opt, "target-fetch-policy", target_fetch_policy)
1048 else O_YNO(opt, "harden-short-bufsize", harden_short_bufsize)
1049 else O_YNO(opt, "harden-large-queries", harden_large_queries)
1050 else O_YNO(opt, "harden-glue", harden_glue)
1051 else O_YNO(opt, "harden-dnssec-stripped", harden_dnssec_stripped)
1052 else O_YNO(opt, "harden-below-nxdomain", harden_below_nxdomain)
1053 else O_YNO(opt, "harden-referral-path", harden_referral_path)
1054 else O_YNO(opt, "harden-algo-downgrade", harden_algo_downgrade)
1055 else O_YNO(opt, "use-caps-for-id", use_caps_bits_for_id)
1056 else O_LST(opt, "caps-whitelist", caps_whitelist)
1057 else O_DEC(opt, "unwanted-reply-threshold", unwanted_threshold)
1058 else O_YNO(opt, "do-not-query-localhost", donotquery_localhost)
1059 else O_STR(opt, "module-config", module_conf)
1060 else O_DEC(opt, "val-bogus-ttl", bogus_ttl)
1061 else O_YNO(opt, "val-clean-additional", val_clean_additional)
1062 else O_DEC(opt, "val-log-level", val_log_level)
1063 else O_YNO(opt, "val-permissive-mode", val_permissive_mode)
1064 else O_YNO(opt, "aggressive-nsec", aggressive_nsec)
1065 else O_YNO(opt, "ignore-cd-flag", ignore_cd)
1066 else O_YNO(opt, "serve-expired", serve_expired)
1067 else O_DEC(opt, "serve-expired-ttl", serve_expired_ttl)
1068 else O_YNO(opt, "serve-expired-ttl-reset", serve_expired_ttl_reset)
1069 else O_DEC(opt, "serve-expired-reply-ttl", serve_expired_reply_ttl)
1070 else O_DEC(opt, "serve-expired-client-timeout", serve_expired_client_timeout)
1071 else O_YNO(opt, "serve-original-ttl", serve_original_ttl)
1072 else O_STR(opt, "val-nsec3-keysize-iterations",val_nsec3_key_iterations)
1073 else O_UNS(opt, "add-holddown", add_holddown)
1074 else O_UNS(opt, "del-holddown", del_holddown)
1075 else O_UNS(opt, "keep-missing", keep_missing)
1076 else O_YNO(opt, "permit-small-holddown", permit_small_holddown)
1077 else O_MEM(opt, "key-cache-size", key_cache_size)
1078 else O_DEC(opt, "key-cache-slabs", key_cache_slabs)
1079 else O_MEM(opt, "neg-cache-size", neg_cache_size)
1080 else O_YNO(opt, "control-enable", remote_control_enable)
1081 else O_DEC(opt, "control-port", control_port)
1082 else O_STR(opt, "server-key-file", server_key_file)
1083 else O_STR(opt, "server-cert-file", server_cert_file)
1084 else O_STR(opt, "control-key-file", control_key_file)
1085 else O_STR(opt, "control-cert-file", control_cert_file)
1086 else O_LST(opt, "root-hints", root_hints)
1087 else O_LS2(opt, "access-control", acls)
1088 else O_LS2(opt, "tcp-connection-limit", tcp_connection_limits)
1089 else O_LST(opt, "do-not-query-address", donotqueryaddrs)
1090 else O_LST(opt, "private-address", private_address)
1091 else O_LST(opt, "private-domain", private_domain)
1092 else O_LST(opt, "auto-trust-anchor-file", auto_trust_anchor_file_list)
1093 else O_LST(opt, "trust-anchor-file", trust_anchor_file_list)
1094 else O_LST(opt, "trust-anchor", trust_anchor_list)
1095 else O_LST(opt, "trusted-keys-file", trusted_keys_file_list)
1096 else O_YNO(opt, "trust-anchor-signaling", trust_anchor_signaling)
1097 else O_YNO(opt, "root-key-sentinel", root_key_sentinel)
1098 else O_LST(opt, "control-interface", control_ifs.first)
1099 else O_LST(opt, "domain-insecure", domain_insecure)
1100 else O_UNS(opt, "val-override-date", val_date_override)
1101 else O_YNO(opt, "minimal-responses", minimal_responses)
1102 else O_YNO(opt, "rrset-roundrobin", rrset_roundrobin)
1103 else O_DEC(opt, "unknown-server-time-limit", unknown_server_time_limit)
1105 else O_LST(opt, "send-client-subnet", client_subnet)
1106 else O_LST(opt, "client-subnet-zone", client_subnet_zone)
1107 else O_DEC(opt, "max-client-subnet-ipv4", max_client_subnet_ipv4)
1108 else O_DEC(opt, "max-client-subnet-ipv6", max_client_subnet_ipv6)
1109 else O_DEC(opt, "min-client-subnet-ipv4", min_client_subnet_ipv4)
1110 else O_DEC(opt, "min-client-subnet-ipv6", min_client_subnet_ipv6)
1111 else O_DEC(opt, "max-ecs-tree-size-ipv4", max_ecs_tree_size_ipv4)
1112 else O_DEC(opt, "max-ecs-tree-size-ipv6", max_ecs_tree_size_ipv6)
1113 else O_YNO(opt, "client-subnet-always-forward:",
1117 else O_YNO(opt, "dnstap-enable", dnstap)
1118 else O_YNO(opt, "dnstap-bidirectional", dnstap_bidirectional)
1119 else O_STR(opt, "dnstap-socket-path", dnstap_socket_path)
1120 else O_STR(opt, "dnstap-ip", dnstap_ip)
1121 else O_YNO(opt, "dnstap-tls", dnstap_tls)
1122 else O_STR(opt, "dnstap-tls-server-name", dnstap_tls_server_name)
1123 else O_STR(opt, "dnstap-tls-cert-bundle", dnstap_tls_cert_bundle)
1124 else O_STR(opt, "dnstap-tls-client-key-file",
1126 else O_STR(opt, "dnstap-tls-client-cert-file",
1128 else O_YNO(opt, "dnstap-send-identity", dnstap_send_identity)
1129 else O_YNO(opt, "dnstap-send-version", dnstap_send_version)
1130 else O_STR(opt, "dnstap-identity", dnstap_identity)
1131 else O_STR(opt, "dnstap-version", dnstap_version)
1132 else O_YNO(opt, "dnstap-log-resolver-query-messages",
1134 else O_YNO(opt, "dnstap-log-resolver-response-messages",
1136 else O_YNO(opt, "dnstap-log-client-query-messages",
1138 else O_YNO(opt, "dnstap-log-client-response-messages",
1140 else O_YNO(opt, "dnstap-log-forwarder-query-messages",
1142 else O_YNO(opt, "dnstap-log-forwarder-response-messages",
1146 else O_YNO(opt, "dnscrypt-enable", dnscrypt)
1147 else O_DEC(opt, "dnscrypt-port", dnscrypt_port)
1148 else O_STR(opt, "dnscrypt-provider", dnscrypt_provider)
1149 else O_LST(opt, "dnscrypt-provider-cert", dnscrypt_provider_cert)
1150 else O_LST(opt, "dnscrypt-provider-cert-rotated", dnscrypt_provider_cert_rotated)
1151 else O_LST(opt, "dnscrypt-secret-key", dnscrypt_secret_key)
1152 else O_MEM(opt, "dnscrypt-shared-secret-cache-size",
1154 else O_DEC(opt, "dnscrypt-shared-secret-cache-slabs",
1156 else O_MEM(opt, "dnscrypt-nonce-cache-size",
1158 else O_DEC(opt, "dnscrypt-nonce-cache-slabs",
1161 else O_YNO(opt, "unblock-lan-zones", unblock_lan_zones)
1162 else O_YNO(opt, "insecure-lan-zones", insecure_lan_zones)
1163 else O_DEC(opt, "max-udp-size", max_udp_size)
1164 else O_LST(opt, "python-script", python_script)
1165 else O_LST(opt, "dynlib-file", dynlib_file)
1166 else O_YNO(opt, "disable-dnssec-lame-check", disable_dnssec_lame_check)
1167 else O_DEC(opt, "ip-ratelimit", ip_ratelimit)
1168 else O_DEC(opt, "ratelimit", ratelimit)
1169 else O_MEM(opt, "ip-ratelimit-size", ip_ratelimit_size)
1170 else O_MEM(opt, "ratelimit-size", ratelimit_size)
1171 else O_DEC(opt, "ip-ratelimit-slabs", ip_ratelimit_slabs)
1172 else O_DEC(opt, "ratelimit-slabs", ratelimit_slabs)
1173 else O_LS2(opt, "ratelimit-for-domain", ratelimit_for_domain)
1174 else O_LS2(opt, "ratelimit-below-domain", ratelimit_below_domain)
1175 else O_DEC(opt, "ip-ratelimit-factor", ip_ratelimit_factor)
1176 else O_DEC(opt, "ratelimit-factor", ratelimit_factor)
1177 else O_DEC(opt, "fast-server-num", fast_server_num)
1178 else O_DEC(opt, "fast-server-permil", fast_server_permil)
1179 else O_DEC(opt, "val-sig-skew-min", val_sig_skew_min)
1180 else O_DEC(opt, "val-sig-skew-max", val_sig_skew_max)
1181 else O_YNO(opt, "qname-minimisation", qname_minimisation)
1182 else O_YNO(opt, "qname-minimisation-strict", qname_minimisation_strict)
1183 else O_IFC(opt, "define-tag", num_tags, tagname)
1184 else O_LTG(opt, "local-zone-tag", local_zone_tags)
1185 else O_LTG(opt, "access-control-tag", acl_tags)
1186 else O_LTG(opt, "response-ip-tag", respip_tags)
1187 else O_LS3(opt, "local-zone-override", local_zone_overrides)
1188 else O_LS3(opt, "access-control-tag-action", acl_tag_actions)
1189 else O_LS3(opt, "access-control-tag-data", acl_tag_datas)
1190 else O_LS2(opt, "access-control-view", acl_view)
1191 else O_YNO(opt, "pad-responses", pad_responses)
1192 else O_DEC(opt, "pad-responses-block-size", pad_responses_block_size)
1193 else O_YNO(opt, "pad-queries", pad_queries)
1194 else O_DEC(opt, "pad-queries-block-size", pad_queries_block_size)
1195 else O_LS2(opt, "edns-client-strings", edns_client_strings)
1197 else O_YNO(opt, "ipsecmod-enabled", ipsecmod_enabled)
1198 else O_YNO(opt, "ipsecmod-ignore-bogus", ipsecmod_ignore_bogus)
1199 else O_STR(opt, "ipsecmod-hook", ipsecmod_hook)
1200 else O_DEC(opt, "ipsecmod-max-ttl", ipsecmod_max_ttl)
1201 else O_LST(opt, "ipsecmod-whitelist", ipsecmod_whitelist)
1202 else O_YNO(opt, "ipsecmod-strict", ipsecmod_strict)
1205 else O_STR(opt, "backend", cachedb_backend)
1206 else O_STR(opt, "secret-seed", cachedb_secret)
1208 else O_STR(opt, "redis-server-host", redis_server_host)
1209 else O_DEC(opt, "redis-server-port", redis_server_port)
1210 else O_DEC(opt, "redis-timeout", redis_timeout)
1211 else O_YNO(opt, "redis-expire-records", redis_expire_records)
1215 else O_STR(opt, "name-v4", ipset_name_v4)
1216 else O_STR(opt, "name-v6", ipset_name_v6)