Home
last modified time | relevance | path

Searched refs:infra_cache (Results 1 – 15 of 15) sorted by relevance

/freebsd-12.1/contrib/unbound/services/cache/
H A Dinfra.h112 struct infra_cache { struct
197 struct infra_cache* infra_create(struct config_file* cfg);
203 void infra_delete(struct infra_cache* infra);
213 struct infra_cache* infra_adjust(struct infra_cache* infra,
267 int infra_set_lame(struct infra_cache* infra,
299 void infra_update_tcp_works(struct infra_cache* infra,
315 int infra_edns_update(struct infra_cache* infra,
337 int infra_get_lame_rtt(struct infra_cache* infra,
358 long long infra_get_host_rto(struct infra_cache* infra,
419 int infra_ip_ratelimit_inc(struct infra_cache* infra,
[all …]
H A Dinfra.c153 struct infra_cache* infra, char* name) in domain_limit_findcreate()
232 struct infra_cache*
235 struct infra_cache* infra = (struct infra_cache*)calloc(1, in infra_create()
236 sizeof(struct infra_cache)); in infra_create()
282 infra_delete(struct infra_cache* infra) in infra_delete()
293 struct infra_cache*
544 infra_update_tcp_works(struct infra_cache* infra, in infra_update_tcp_works()
615 long long infra_get_host_rto(struct infra_cache* infra, in infra_get_host_rto()
672 infra_get_lame_rtt(struct infra_cache* infra, in infra_get_lame_rtt()
997 infra_get_mem(struct infra_cache* infra) in infra_get_mem()
[all …]
/freebsd-12.1/contrib/unbound/services/
H A Doutside_network.h55 struct infra_cache;
130 struct infra_cache* infra;
420 int do_ip4, int do_ip6, size_t num_tcp, struct infra_cache* infra,
H A Doutside_network.c748 int do_ip6, size_t num_tcp, struct infra_cache* infra,
/freebsd-12.1/contrib/unbound/util/
H A Dmodule.h333 struct infra_cache* infra_cache; member
/freebsd-12.1/contrib/unbound/libunbound/
H A Dcontext.c96 ctx->env->infra_cache = infra_adjust(ctx->env->infra_cache, cfg); in context_finalize()
97 if(!ctx->env->infra_cache) in context_finalize()
H A Dlibworker.c229 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id, in libworker_setup()
H A Dlibunbound.c323 infra_delete(ctx->env->infra_cache); in ub_ctx_delete()
/freebsd-12.1/contrib/unbound/daemon/
H A Ddaemon.c753 infra_delete(daemon->env->infra_cache); in daemon_delete()
836 if((daemon->env->infra_cache = infra_adjust(daemon->env->infra_cache, in daemon_apply_cfg()
H A Dcachedump.c732 entry_ttl = infra_get_host_rto(worker->env.infra_cache, in print_dp_details()
750 if(!infra_get_lame_rtt(worker->env.infra_cache, in print_dp_details()
769 if(infra_host(worker->env.infra_cache, &a->addr, a->addrlen, in print_dp_details()
H A Dremote.c1635 slabhash_clear(worker->env.infra_cache->hosts); in do_flush_infra()
1656 slabhash_traverse(worker->env.infra_cache->hosts, 1, &infra_del_host, in do_flush_infra()
2419 struct infra_cache* infra;
2479 arg.infra = worker->env.infra_cache; in do_dump_infra()
2771 struct infra_cache* infra;
2824 a.infra = worker->env.infra_cache; in do_ratelimit_list()
2842 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list()
H A Dworker.c132 infra = infra_get_mem(worker->env.infra_cache); in worker_mem_report()
216 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
222 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
1189 if(!infra_ip_ratelimit_inc(worker->env.infra_cache, repinfo, in worker_handle_request()
1811 worker->daemon->env->infra_cache, worker->rndstate, in worker_init()
H A Dstats.c293 s->svr.infra_cache_count = (long long)count_slabhash_entries(worker->env.infra_cache->hosts); in server_stats_compile()
/freebsd-12.1/contrib/unbound/iterator/
H A Diterator.c1482 qstate->env->infra_cache, iq->dp->name, in processInitRequest()
1486 (void)infra_ratelimit_inc(qstate->env->infra_cache, in processInitRequest()
2576 if(!infra_ratelimit_inc(qstate->env->infra_cache, iq->dp->name, in processQueryTargets()
2617 infra_ratelimit_dec(qstate->env->infra_cache, iq->dp->name, in processQueryTargets()
2862 infra_ratelimit_dec(qstate->env->infra_cache, in processQueryResponse()
3044 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
3062 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
H A Diter_utils.c245 if(infra_get_lame_rtt(env->infra_cache, &a->addr, a->addrlen, in iter_filter_unsuitable()