| /freebsd/contrib/unbound/services/cache/ |
| H A D | infra.h | 125 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 D | infra.c | 345 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 D | outside_network.h | 62 struct infra_cache; 143 struct infra_cache* infra; 574 int do_ip4, int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
|
| H A D | mesh.c | 444 if(!infra_wait_limit_allowed(mesh->env->infra_cache, rep, in mesh_new_client() 572 infra_wait_limit_inc(mesh->env->infra_cache, rep, *mesh->env->now, in mesh_new_client() 1094 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_cleanup() 1580 infra_wait_limit_dec(m->s.env->infra_cache, &r->query_reply, in mesh_send_reply() 1775 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done() 1812 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done() 2384 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_remove_reply() 2552 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback() 2593 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback()
|
| H A D | outside_network.c | 1722 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra, 3533 if(!infra_ratelimit_inc(env->infra_cache, zone, 3563 infra_ratelimit_dec(env->infra_cache, 3571 infra_ratelimit_dec(env->infra_cache,
|
| /freebsd/contrib/unbound/libunbound/ |
| H A D | context.c | 114 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 D | libworker.c | 226 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id, in libworker_setup()
|
| H A D | libunbound.c | 387 infra_delete(ctx->env->infra_cache); in ub_ctx_delete()
|
| /freebsd/contrib/unbound/util/ |
| H A D | module.h | 346 struct infra_cache* infra_cache; member
|
| /freebsd/contrib/unbound/daemon/ |
| H A D | cachedump.c | 870 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 D | daemon.c | 1241 infra_delete(daemon->env->infra_cache); in daemon_delete() 1359 if((daemon->env->infra_cache = infra_adjust(daemon->env->infra_cache, in daemon_apply_cfg()
|
| H A D | worker.c | 136 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() 1433 if(!infra_ip_ratelimit_inc(worker->env.infra_cache, addr, addrlen, in check_ip_ratelimit() 2350 worker->daemon->env->infra_cache, worker->rndstate, in worker_init()
|
| H A D | remote.c | 2255 slabhash_clear(worker->env.infra_cache->hosts); in do_flush_infra() 2277 slabhash_traverse(worker->env.infra_cache->hosts, 1, &infra_del_host, in do_flush_infra() 3115 struct infra_cache* infra; 3175 arg.infra = worker->env.infra_cache; in do_dump_infra() 3547 struct infra_cache* infra; 3602 a.infra = worker->env.infra_cache; in do_ratelimit_list() 3621 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list() 6408 slabhash_adjust_size(env->infra_cache->hosts, inframem); in fr_adjust_cache() 6411 slabhash_adjust_size(env->infra_cache->domain_rates, in fr_adjust_cache() 6413 slabhash_adjust_size(env->infra_cache->client_ip_rates, in fr_adjust_cache() [all …]
|
| H A D | stats.c | 310 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 D | iter_utils.c | 358 if(infra_get_lame_rtt(env->infra_cache, &a->addr, a->addrlen, in iter_filter_unsuitable()
|
| H A D | iterator.c | 3626 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse() 3645 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
|