Home
last modified time | relevance | path

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

/freebsd/contrib/unbound/services/cache/
H A Dinfra.h112 struct infra_cache { struct
217 struct infra_cache* infra_create(struct config_file* cfg);
223 void infra_delete(struct infra_cache* infra);
233 struct infra_cache* infra_adjust(struct infra_cache* infra,
246 struct lruhash_entry* infra_lookup_nottl(struct infra_cache* infra,
268 int infra_host(struct infra_cache* infra, struct sockaddr_storage* addr,
287 int infra_set_lame(struct infra_cache* infra,
307 int infra_rtt_update(struct infra_cache* infra, struct sockaddr_storage* addr,
319 void infra_update_tcp_works(struct infra_cache* infra,
335 int infra_edns_update(struct infra_cache* infra,
[all …]
H A Dinfra.c168 struct infra_cache* infra, char* name) in domain_limit_findcreate()
215 static int infra_ratelimit_cfg_insert(struct infra_cache* infra, in infra_ratelimit_cfg_insert()
237 setup_domain_limits(struct infra_cache* infra, struct config_file* cfg) in setup_domain_limits()
249 wait_limit_netblock_findcreate(struct infra_cache* infra, char* str, in wait_limit_netblock_findcreate()
289 infra_wait_limit_netblock_insert(struct infra_cache* infra, in infra_wait_limit_netblock_insert()
311 setup_wait_limits(struct infra_cache* infra, struct config_file* cfg) in setup_wait_limits()
322 struct infra_cache*
325 struct infra_cache* infra = (struct infra_cache*)calloc(1, in infra_create()
326 sizeof(struct infra_cache)); in infra_create()
387 infra_delete(struct infra_cache* infra) in infra_delete()
[all …]
/freebsd/contrib/unbound/services/
H A Doutside_network.h58 struct infra_cache;
139 struct infra_cache* infra;
567 int do_ip4, int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
H A Dmesh.c422 if(!infra_wait_limit_allowed(mesh->env->infra_cache, rep, in mesh_new_client()
537 infra_wait_limit_inc(mesh->env->infra_cache, rep, *mesh->env->now, in mesh_new_client()
979 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_cleanup()
1466 infra_wait_limit_dec(m->s.env->infra_cache, &r->query_reply, in mesh_send_reply()
1536 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done()
1570 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done()
2110 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_remove_reply()
2266 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback()
2307 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback()
H A Doutside_network.c1660 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
3467 if(!infra_ratelimit_inc(env->infra_cache, zone,
3497 infra_ratelimit_dec(env->infra_cache,
3505 infra_ratelimit_dec(env->infra_cache,
/freebsd/contrib/unbound/util/
H A Dmodule.h345 struct infra_cache* infra_cache; member
/freebsd/contrib/unbound/libunbound/
H A Dcontext.c114 ctx->env->infra_cache = infra_adjust(ctx->env->infra_cache, cfg); in context_finalize()
115 if(!ctx->env->infra_cache) in context_finalize()
H A Dlibworker.c226 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id, in libworker_setup()
H A Dlibunbound.c387 infra_delete(ctx->env->infra_cache); in ub_ctx_delete()
/freebsd/contrib/unbound/daemon/
H A Ddaemon.c940 infra_delete(daemon->env->infra_cache); in daemon_delete()
1061 if((daemon->env->infra_cache = infra_adjust(daemon->env->infra_cache, in daemon_apply_cfg()
H A Dcachedump.c747 entry_ttl = infra_get_host_rto(worker->env.infra_cache, in print_dp_details()
765 if(!infra_get_lame_rtt(worker->env.infra_cache, in print_dp_details()
784 if(infra_host(worker->env.infra_cache, &a->addr, a->addrlen, in print_dp_details()
H A Dworker.c136 infra = infra_get_mem(worker->env.infra_cache); in worker_mem_report()
222 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
228 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
1339 if(!infra_ip_ratelimit_inc(worker->env.infra_cache, addr, addrlen, in check_ip_ratelimit()
2189 worker->daemon->env->infra_cache, worker->rndstate, in worker_init()
H A Dremote.c1809 slabhash_clear(worker->env.infra_cache->hosts); in do_flush_infra()
1831 slabhash_traverse(worker->env.infra_cache->hosts, 1, &infra_del_host, in do_flush_infra()
2667 struct infra_cache* infra;
2727 arg.infra = worker->env.infra_cache; in do_dump_infra()
3073 struct infra_cache* infra;
3128 a.infra = worker->env.infra_cache; in do_ratelimit_list()
3147 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list()
H A Dstats.c300 s->svr.infra_cache_count = (long long)count_slabhash_entries(worker->env.infra_cache->hosts); in server_stats_compile()
/freebsd/contrib/unbound/iterator/
H A Diter_utils.c278 if(infra_get_lame_rtt(env->infra_cache, &a->addr, a->addrlen, in iter_filter_unsuitable()
H A Diterator.c3611 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
3630 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()