Searched refs:cfg (Results 1 - 25 of 497) sorted by last modified time

1234567891011>>

/freebsd-11-stable/testcode/
H A Dfake_event.c1307 int resolve_interface_names(struct config_file* ATTR_UNUSED(cfg),
1313 struct listen_port* listening_ports_open(struct config_file* ATTR_UNUSED(cfg),
/freebsd-11-stable/contrib/unbound/validator/
H A Dautotrust.c1257 int downprot = env->cfg->harden_algo_downgrade;
1733 time_t exceeded = check_holddown(env, anchor, env->cfg->add_holddown);
1752 time_t exceeded = check_holddown(env, anchor, env->cfg->del_holddown);
1925 if(env->cfg->keep_missing == 0)
1928 exceeded = check_holddown(env, anchor, env->cfg->keep_missing);
/freebsd-11-stable/contrib/unbound/util/
H A Dmodule.h327 struct config_file* cfg; member in struct:module_env
H A Dedns.c162 struct config_file* cfg, struct comm_point* c, struct regional* region)
164 if(cfg->do_tcp_keepalive &&
168 if (cfg->nsid && edns_opt_list_find(edns_in->opt_list, LDNS_EDNS_NSID)
170 LDNS_EDNS_NSID, cfg->nsid_len, cfg->nsid, region))
173 if(!cfg->pad_responses || c->type != comm_tcp || !c->ssl
182 edns_out->padding_block_size = cfg->pad_responses_block_size;
161 apply_edns_options(struct edns_data* edns_out, struct edns_data* edns_in, struct config_file* cfg, struct comm_point* c, struct regional* region) argument
H A Dconfigparser.y310 s->next = cfg_parser->cfg->stubs;
311 cfg_parser->cfg->stubs = s;
327 s->next = cfg_parser->cfg->forwards;
328 cfg_parser->cfg->forwards = s;
344 s->next = cfg_parser->cfg->views;
347 cfg_parser->cfg->views = s;
363 s->next = cfg_parser->cfg->auths;
364 cfg_parser->cfg->auths = s;
386 bitlist = config_parse_taglist(cfg_parser->cfg, $2,
393 cfg_parser->cfg
[all...]
H A Dconfig_file.h657 /** from cfg username, after daemonize setup performed */
659 /** from cfg username, after daemonize setup performed */
863 * @param cfg: config.
870 int config_get_option(struct config_file* cfg, const char* opt,
875 * @param cfg: config file
880 int config_get_option_list(struct config_file* cfg, const char* opt,
885 * @param cfg: config file
890 int config_get_option_collate(struct config_file* cfg, const char* opt,
1058 int options_remote_is_address(struct config_file* cfg);
1102 * @param cfg
1263 struct config_file* cfg; member in struct:config_parser_state
[all...]
H A Dconfig_file.c73 /** from cfg username, after daemonize setup performed */
75 /** from cfg username, after daemonize setup performed */
93 struct config_file* cfg; local
94 cfg = (struct config_file*)calloc(1, sizeof(struct config_file));
95 if(!cfg)
98 cfg->verbosity = 1;
99 cfg->stat_interval = 0;
100 cfg->stat_cumulative = 0;
101 cfg->stat_extended = 0;
102 cfg
376 struct config_file* cfg = config_create(); local
453 config_set_option(struct config_file* cfg, const char* opt, const char* val) argument
818 config_get_option_list(struct config_file* cfg, const char* opt, struct config_strlist** list) argument
835 config_get_option_collate(struct config_file* cfg, const char* opt, char** str) argument
941 config_get_option(struct config_file* cfg, const char* opt, void (*func)(char*,void*), void* arg) argument
1232 create_cfg_parser(struct config_file* cfg, char* filename, const char* chroot) argument
1245 config_read(struct config_file* cfg, const char* filename, const char* chroot) argument
1484 config_delete(struct config_file* cfg) argument
1666 cfg_condense_ports(struct config_file* cfg, int** avail) argument
1977 find_tag_id(struct config_file* cfg, const char* tag) argument
1988 config_add_tag(struct config_file* cfg, const char* tag) argument
2021 config_parse_taglist(struct config_file* cfg, char* str, size_t* listlen) argument
2091 config_taglist2str(struct config_file* cfg, uint8_t* taglist, size_t taglen) argument
2148 config_lookup_uid(struct config_file* cfg) argument
2174 strlen_after_chroot(const char* fname, struct config_file* cfg, int use_chdir) argument
2216 fname_after_chroot(const char* fname, struct config_file* cfg, int use_chdir) argument
2292 cfg_parse_local_zone(struct config_file* cfg, const char* val) argument
2456 w_config_adjust_directory(struct config_file* cfg) argument
2599 options_remote_is_address(struct config_file* cfg) argument
[all...]
/freebsd-11-stable/contrib/unbound/smallapp/
H A Dunbound-control.c420 static void do_stats_shm(struct config_file* cfg, struct ub_stats_info* stats, argument
425 for(i=0; i<cfg->num_threads; i++) {
431 if(cfg->stat_extended) {
443 struct config_file* cfg; local
448 if(!(cfg = config_create()))
450 if(!config_read(cfg, cfgfile, NULL))
453 id_ctl = shmget(cfg->shm_key, sizeof(int), SHM_R);
455 fatal_exit("shmget(%d): %s", cfg->shm_key, strerror(errno));
457 id_arr = shmget(cfg->shm_key+1, sizeof(int), SHM_R);
459 fatal_exit("shmget(%d): %s", cfg
508 setup_ctx(struct config_file* cfg) argument
580 contact_server(const char* svr, struct config_file* cfg, int statuscmd) argument
872 struct config_file* cfg; local
[all...]
/freebsd-11-stable/contrib/unbound/services/
H A Doutside_network.c3058 ( ssl_upstream && env->cfg->pad_queries
3059 ? env->cfg->pad_queries_block_size : 0 ));
H A Dmesh.c250 mesh->qbuf_bak = sldns_buffer_new(env->cfg->msg_buffer_size);
267 mesh->max_reply_states = env->cfg->num_queries_per_thread;
270 mesh->jostle_max.tv_sec = (time_t)(env->cfg->jostle_time / 1000);
271 mesh->jostle_max.tv_usec = (time_t)((env->cfg->jostle_time % 1000)
373 || qstate->env->cfg->ignore_cd) && qstate->env->need_to_validate;
382 qstate->env->cfg->serve_expired, qstate->env->scratch);
462 int timeout = mesh->env->cfg->serve_expired?
463 mesh->env->cfg->serve_expired_client_timeout:0;
607 int timeout = mesh->env->cfg->serve_expired?
608 mesh->env->cfg
[all...]
H A Dlocalzone.h220 * @param cfg: config data.
223 int local_zones_apply_cfg(struct local_zones* zones, struct config_file* cfg);
489 * @param cfg: containing list of zones to exclude from default set.
493 struct config_file* cfg);
H A Dlocalzone.c745 lz_enter_zones(struct local_zones* zones, struct config_file* cfg) argument
749 for(p = cfg->local_zones; p; p = p->next) {
780 /** lookup a zone in cfg->nodefault list */
782 lz_nodefault(struct config_file* cfg, const char* name) argument
789 for(p = cfg->local_zones_nodefault; p; p = p->next) {
801 add_empty_default(struct local_zones* zones, struct config_file* cfg, argument
806 if(lz_exists(zones, name) || lz_nodefault(cfg, name))
826 int local_zone_enter_defaults(struct local_zones* zones, struct config_file* cfg) argument
832 if(cfg->local_zones_disable_default)
841 !lz_nodefault(cfg, "localhos
924 lz_enter_overrides(struct local_zones* zones, struct config_file* cfg) argument
974 lz_setup_implicit(struct local_zones* zones, struct config_file* cfg) argument
1057 lz_enter_zone_tags(struct local_zones* zones, struct config_file* cfg) argument
1073 lz_enter_data(struct local_zones* zones, struct config_file* cfg) argument
1085 lz_freeup_cfg(struct config_file* cfg) argument
1096 local_zones_apply_cfg(struct local_zones* zones, struct config_file* cfg) argument
[all...]
H A Dlisten_dnsport.h123 * @param cfg: settings on what ports to open.
131 struct listen_port* listening_ports_open(struct config_file* cfg,
141 * @param cfg: config
143 * result. NULL if cfg has none.
144 * @param num_resif: length of resif. Zero if cfg has zero num_ifs.
147 int resolve_interface_names(struct config_file* cfg, char*** resif,
H A Dlisten_dnsport.c1509 int resolve_interface_names(struct config_file* cfg, char*** resif, argument
1515 if(cfg->num_ifs == 0) {
1526 for(i=0; i<cfg->num_ifs; i++) {
1527 if(!resolve_ifa_name(addrs, cfg->ifs[i], resif, num_resif)) {
1539 if(cfg->num_ifs == 0) {
1544 *num_resif = cfg->num_ifs;
1551 (*resif)[i] = strdup(cfg->ifs[i]);
1565 listening_ports_open(struct config_file* cfg, char** ifs, int num_ifs, argument
1573 snprintf(portbuf, sizeof(portbuf), "%d", cfg->port);
1574 do_ip4 = cfg
[all...]
H A Dauthzone.c1467 * @param cfg: config for chroot.
1473 struct config_file* cfg)
1500 if(cfg->chrootdir && cfg->chrootdir[0] &&
1501 strncmp(incfile, cfg->chrootdir,
1502 strlen(cfg->chrootdir)) == 0)
1503 incfile += strlen(cfg->chrootdir);
1522 state, incfile, depth+1, cfg)) {
1562 auth_zone_read_zonefile(struct auth_zone* z, struct config_file* cfg) argument
1572 if(cfg
1471 az_parse_file(struct auth_zone* z, FILE* in, uint8_t* rr, size_t rrbuflen, struct sldns_file_parse_state* state, char* fname, int depth, struct config_file* cfg) argument
1746 auth_zones_read_zones(struct auth_zones* az, struct config_file* cfg) argument
2002 auth_zones_apply_cfg(struct auth_zones* az, struct config_file* cfg, int setup, int* is_rpz) argument
4905 struct config_file* cfg = env->cfg; local
[all...]
/freebsd-11-stable/contrib/unbound/services/cache/
H A Drrset.c60 struct rrset_cache* rrset_cache_create(struct config_file* cfg, argument
63 size_t slabs = (cfg?cfg->rrset_cache_slabs:HASH_DEFAULT_SLABS);
65 size_t maxmem = (cfg?cfg->rrset_cache_size:HASH_DEFAULT_MAXMEM);
83 struct config_file* cfg, struct alloc_cache* alloc)
85 if(!r || !cfg || !slabhash_is_size(&r->table, cfg->rrset_cache_size,
86 cfg->rrset_cache_slabs))
89 r = rrset_cache_create(cfg, allo
82 rrset_cache_adjust(struct rrset_cache *r, struct config_file* cfg, struct alloc_cache* alloc) argument
[all...]
/freebsd-11-stable/contrib/unbound/respip/
H A Drespip.c398 respip_global_apply_cfg(struct respip_set* set, struct config_file* cfg) argument
400 int ret = respip_set_apply_cfg(set, cfg->tagname, cfg->num_tags,
401 cfg->respip_tags, cfg->respip_actions, cfg->respip_data);
402 cfg->respip_data = NULL;
403 cfg->respip_actions = NULL;
404 cfg->respip_tags = NULL;
417 respip_views_apply_cfg(struct views* vs, struct config_file* cfg, argument
[all...]
/freebsd-11-stable/contrib/unbound/libunbound/
H A Dlibworker.c137 struct config_file* cfg = ctx->env->cfg; local
159 w->env->scratch = regional_create_custom(cfg->msg_buffer_size);
160 w->env->scratch_buffer = sldns_buffer_new(cfg->msg_buffer_size);
162 if(w->env->fwds && !forwards_apply_cfg(w->env->fwds, cfg)) {
167 if(w->env->hints && !hints_apply_cfg(w->env->hints, cfg)) {
171 if(cfg->ssl_upstream || (cfg->tls_cert_bundle && cfg->tls_cert_bundle[0]) || cfg
[all...]
/freebsd-11-stable/contrib/unbound/ipset/
H A Dipset.c159 for (p = env->cfg->local_zones_ipset; p; p = p->next) {
239 ipset_env->name_v4 = env->cfg->ipset_name_v4;
240 ipset_env->name_v6 = env->cfg->ipset_name_v6;
/freebsd-11-stable/contrib/unbound/dynlibmod/
H A Ddynlibmod.c75 struct config_strlist* cfg_item = env->cfg->dynlib_file;
/freebsd-11-stable/contrib/unbound/dns64/
H A Ddns64.c359 * file \a cfg to this instance of the dns64 module. Currently only the DNS64
363 * \param cfg Parsed configuration file.
366 dns64_apply_cfg(struct dns64_env* dns64_env, struct config_file* cfg) argument
369 verbose(VERB_ALGO, "dns64-prefix: %s", cfg->dns64_prefix);
370 if (!netblockstrtoaddr(cfg->dns64_prefix ? cfg->dns64_prefix :
373 log_err("cannot parse dns64-prefix netblock: %s", cfg->dns64_prefix);
377 log_err("dns64_prefix is not IPv6: %s", cfg->dns64_prefix);
384 cfg->dns64_prefix);
387 for(s = cfg
[all...]
/freebsd-11-stable/contrib/unbound/daemon/
H A Dworker.c335 worker->daemon->cfg->harden_large_queries) {
487 int must_validate = (!(flags&BIT_CD) || worker->env.cfg->ignore_cd)
529 if(worker->env.cfg->val_clean_additional)
552 if(!apply_edns_options(edns, &edns_bak, worker->env.cfg,
643 int must_validate = (!(flags&BIT_CD) || worker->env.cfg->ignore_cd)
650 if(worker->env.cfg->serve_expired &&
651 !worker->env.cfg->serve_expired_client_timeout) {
652 if(worker->env.cfg->serve_expired_ttl &&
756 } else if(!apply_edns_options(edns, &edns_bak, worker->env.cfg,
938 struct config_file* cfg local
1732 worker_init(struct worker* worker, struct config_file *cfg, struct listen_port* ports, int do_sigs) argument
[all...]
H A Dremote.c147 remote_setup_ctx(struct daemon_remote* rc, struct config_file* cfg) argument
160 s_cert = fname_after_chroot(cfg->server_cert_file, cfg, 1);
161 s_key = fname_after_chroot(cfg->server_key_file, cfg, 1);
198 daemon_remote_create(struct config_file* cfg) argument
208 if(!cfg->remote_control_enable) {
212 if(options_remote_is_address(cfg) && cfg->control_use_cert) {
213 if(!remote_setup_ctx(rc, cfg)) {
273 add_open(const char* ip, int nr, struct listen_port** list, int noproto_is_err, struct config_file* cfg) argument
362 daemon_remote_open_ports(struct config_file* cfg) argument
2499 struct config_file* cfg = worker->env.cfg; local
[all...]
/freebsd-11-stable/contrib/unbound/
H A Dconfigure1599 part of cfg file)
/freebsd-11-stable/contrib/unbound/cachedb/
H A Dcachedb.c218 cachedb_apply_cfg(struct cachedb_env* cachedb_env, struct config_file* cfg) argument
220 const char* backend_str = cfg->cachedb_backend;
241 if(!cachedb_apply_cfg(cachedb_env, env->cfg)) {
258 if(env->cfg->serve_expired_reply_ttl)
262 if(env->cfg->serve_expired_client_timeout)
326 * and env->cfg with secret.
337 const char* secret = qstate->env->cfg->cachedb_secret;
398 !qstate->env->cfg->serve_expired)
445 (!qstate->env->cfg->serve_expired ||
545 if(qstate->env->cfg
[all...]

Completed in 217 milliseconds

1234567891011>>