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.h125 struct infra_cache {
230 struct infra_cache* infra_create(struct config_file* cfg);
236 void infra_delete(struct infra_cache* infra);
246 struct infra_cache* infra_adjust(struct infra_cache* infra,
259 struct lruhash_entry* infra_lookup_nottl(struct infra_cache* infra,
281 int infra_host(struct infra_cache* infra, struct sockaddr_storage* addr,
300 int infra_set_lame(struct infra_cache* infra,
320 int infra_rtt_update(struct infra_cache* infra, struct sockaddr_storage* addr,
332 void infra_update_tcp_works(struct infra_cache* infr
112 struct infra_cache { global() struct
114 hostsinfra_cache global() argument
116 host_ttlinfra_cache global() argument
118 infra_keep_probinginfra_cache global() argument
120 domain_ratesinfra_cache global() argument
122 domain_limitsinfra_cache global() argument
124 client_ip_ratesinfra_cache global() argument
126 wait_limits_netblockinfra_cache global() argument
128 wait_limits_cookie_netblockinfra_cache global() argument
[all...]
H A Dinfra.c345 struct infra_cache*
348 struct infra_cache* infra = (struct infra_cache*)calloc(1, in infra_create()
349 sizeof(struct infra_cache)); in infra_create()
428 infra_delete(struct infra_cache* infra) in infra_delete()
441 struct infra_cache*
442 infra_adjust(struct infra_cache* infra, struct config_file* cfg) in infra_adjust()
512 infra_lookup_nottl(struct infra_cache* infra, struct sockaddr_storage* addr, in infra_lookup_nottl()
528 data_entry_init(struct infra_cache* infra, struct lruhash_entry* e, in data_entry_init()
557 new_entry(struct infra_cache* infra, struct sockaddr_storage* addr, in new_entry()
587 infra_host(struct infra_cache* infra, struct sockaddr_storage* addr, in infra_host()
[all …]
/freebsd/contrib/unbound/services/
H A Doutside_network.h62 struct infra_cache;
148 struct infra_cache* infra;
611 int do_ip4, int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
H A Dmesh.c483 if(!infra_wait_limit_allowed(mesh->env->infra_cache, rep, in mesh_new_client()
621 infra_wait_limit_inc(mesh->env->infra_cache, rep, *mesh->env->now, in mesh_new_client()
1122 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_cleanup()
1615 infra_wait_limit_dec(m->s.env->infra_cache, &r->query_reply, in mesh_send_reply()
1811 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done()
1850 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done()
2471 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_remove_reply()
2649 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback()
2695 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback()
H A Doutside_network.c1729 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
3558 if(!infra_ratelimit_inc(env->infra_cache, zone,
3589 infra_ratelimit_dec(env->infra_cache,
3597 infra_ratelimit_dec(env->infra_cache,
/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.c235 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/util/
H A Dmodule.h346 struct infra_cache* infra_cache; member
/freebsd/contrib/unbound/daemon/
H A Dcachedump.c870 entry_ttl = infra_get_host_rto(worker->env.infra_cache, in print_dp_details()
888 if(!infra_get_lame_rtt(worker->env.infra_cache, in print_dp_details()
907 if(infra_host(worker->env.infra_cache, &a->addr, a->addrlen, in print_dp_details()
H A Ddaemon.c1260 infra_delete(daemon->env->infra_cache); in daemon_delete()
1381 if((daemon->env->infra_cache = infra_adjust(daemon->env->infra_cache, in daemon_apply_cfg()
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()
1436 if(!infra_ip_ratelimit_inc(worker->env.infra_cache, addr, addrlen, in check_ip_ratelimit()
2359 worker->daemon->env->infra_cache, worker->rndstate, in worker_init()
H A Dremote.c2348 slabhash_clear(worker->env.infra_cache->hosts); in do_flush_infra()
2370 slabhash_traverse(worker->env.infra_cache->hosts, 1, &infra_del_host, in do_flush_infra()
3211 struct infra_cache* infra;
3271 arg.infra = worker->env.infra_cache; in do_dump_infra()
3648 struct infra_cache* infra;
3703 a.infra = worker->env.infra_cache; in do_ratelimit_list()
3722 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list()
6627 slabhash_adjust_size(env->infra_cache->hosts, inframem); in fr_adjust_cache()
6630 slabhash_adjust_size(env->infra_cache->domain_rates, in fr_adjust_cache()
6632 slabhash_adjust_size(env->infra_cache->client_ip_rates, in fr_adjust_cache()
[all …]
H A Dstats.c310 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 Diterator.c3473 infra_ratelimit_dec(qstate->env->infra_cache, in processQueryResponse()
3668 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
3687 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
H A Diter_utils.c358 if(infra_get_lame_rtt(env->infra_cache, &a->addr, a->addrlen, in iter_filter_unsuitable()