Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/unbound/services/cache/
H A Dinfra.h112 struct infra_cache { struct
199 struct infra_cache* infra_create(struct config_file* cfg);
205 void infra_delete(struct infra_cache* infra);
215 struct infra_cache* infra_adjust(struct infra_cache* infra,
269 int infra_set_lame(struct infra_cache* infra,
301 void infra_update_tcp_works(struct infra_cache* infra,
317 int infra_edns_update(struct infra_cache* infra,
339 int infra_get_lame_rtt(struct infra_cache* infra,
360 long long infra_get_host_rto(struct infra_cache* infra,
425 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()
286 infra_delete(struct infra_cache* infra) in infra_delete()
297 struct infra_cache*
552 infra_update_tcp_works(struct infra_cache* infra, in infra_update_tcp_works()
632 long long infra_get_host_rto(struct infra_cache* infra, in infra_get_host_rto()
689 infra_get_lame_rtt(struct infra_cache* infra, in infra_get_lame_rtt()
1047 infra_get_mem(struct infra_cache* infra) in infra_get_mem()
[all …]
/freebsd-13.1/contrib/unbound/services/
H A Doutside_network.h58 struct infra_cache;
137 struct infra_cache* infra;
565 int do_ip4, int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
H A Doutside_network.c1589 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
3394 if(!infra_ratelimit_inc(env->infra_cache, zone,
3421 infra_ratelimit_dec(env->infra_cache,
3430 infra_ratelimit_dec(env->infra_cache,
/freebsd-13.1/contrib/unbound/util/
H A Dmodule.h333 struct infra_cache* infra_cache; member
/freebsd-13.1/contrib/unbound/libunbound/
H A Dcontext.c103 ctx->env->infra_cache = infra_adjust(ctx->env->infra_cache, cfg); in context_finalize()
104 if(!ctx->env->infra_cache) in context_finalize()
H A Dlibworker.c240 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id, in libworker_setup()
H A Dlibunbound.c341 infra_delete(ctx->env->infra_cache); in ub_ctx_delete()
/freebsd-13.1/contrib/unbound/daemon/
H A Ddaemon.c775 infra_delete(daemon->env->infra_cache); in daemon_delete()
860 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 Dworker.c134 infra = infra_get_mem(worker->env.infra_cache); in worker_mem_report()
218 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
224 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
1169 if(!infra_ip_ratelimit_inc(worker->env.infra_cache, repinfo, in worker_handle_request()
1772 worker->daemon->env->infra_cache, worker->rndstate, in worker_init()
H A Dremote.c1679 slabhash_clear(worker->env.infra_cache->hosts); in do_flush_infra()
1700 slabhash_traverse(worker->env.infra_cache->hosts, 1, &infra_del_host, in do_flush_infra()
2458 struct infra_cache* infra;
2518 arg.infra = worker->env.infra_cache; in do_dump_infra()
2856 struct infra_cache* infra;
2911 a.infra = worker->env.infra_cache; in do_ratelimit_list()
2930 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list()
H A Dstats.c294 s->svr.infra_cache_count = (long long)count_slabhash_entries(worker->env.infra_cache->hosts); in server_stats_compile()
/freebsd-13.1/contrib/unbound/iterator/
H A Diter_utils.c247 if(infra_get_lame_rtt(env->infra_cache, &a->addr, a->addrlen, in iter_filter_unsuitable()
H A Diterator.c3118 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
3136 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()