Home
last modified time | relevance | path

Searched refs:rrset_cache (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-13.1/contrib/unbound/services/cache/
H A Drrset.h56 struct rrset_cache { struct
67 struct rrset_cache* rrset_cache_create(struct config_file* cfg, argument
74 void rrset_cache_delete(struct rrset_cache* r);
85 struct rrset_cache* rrset_cache_adjust(struct rrset_cache* r,
104 void rrset_cache_touch(struct rrset_cache* r, struct ub_packed_rrset_key* key,
133 int rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref,
150 void rrset_cache_update_wildcard(struct rrset_cache* rrset_cache,
168 struct ub_packed_rrset_key* rrset_cache_lookup(struct rrset_cache* r,
219 void rrset_update_sec_status(struct rrset_cache* r,
231 void rrset_check_sec_status(struct rrset_cache* r,
[all …]
H A Drrset.c60 struct rrset_cache* rrset_cache_create(struct config_file* cfg, in rrset_cache_create()
67 struct rrset_cache *r = (struct rrset_cache*)slabhash_create(slabs, in rrset_cache_create()
74 void rrset_cache_delete(struct rrset_cache* r) in rrset_cache_delete()
82 struct rrset_cache* rrset_cache_adjust(struct rrset_cache *r, in rrset_cache_adjust()
95 rrset_cache_touch(struct rrset_cache* r, struct ub_packed_rrset_key* key, in rrset_cache_touch()
186 rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref, in rrset_cache_update()
242 void rrset_cache_update_wildcard(struct rrset_cache* rrset_cache, in rrset_cache_update_wildcard() argument
272 (void)rrset_cache_update(rrset_cache, &ref, alloc, timenow); in rrset_cache_update_wildcard()
338 rrset_array_unlock_touch(struct rrset_cache* r, struct regional* scratch, in rrset_array_unlock_touch()
367 rrset_update_sec_status(struct rrset_cache* r, in rrset_update_sec_status()
[all …]
H A Ddns.c83 switch(rrset_cache_update(env->rrset_cache, &rep->ref[i], in store_rrsets()
214 if((rrset = rrset_cache_lookup(env->rrset_cache, qname, in find_closest_of_type()
273 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in find_add_addrs()
293 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in find_add_addrs()
327 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in cache_fill_missing()
348 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in cache_fill_missing()
380 env->rrset_cache, dp->name, dp->namelen, LDNS_RR_TYPE_DS, in find_add_ds()
385 rrset = rrset_cache_lookup(env->rrset_cache, dp->name, in find_add_ds()
764 env->rrset_cache, qname, qnamelen, lookup[i], in fill_any()
859 env->rrset_cache, qname, qnamelen, in dns_cache_lookup()
[all …]
/freebsd-13.1/contrib/unbound/validator/
H A Dval_neg.c1059 grab_nsec(struct rrset_cache* rrset_cache, uint8_t* qname, size_t qname_len, in grab_nsec() argument
1109 uint16_t qclass, struct rrset_cache* rrset_cache, time_t now, in neg_find_nsec() argument
1215 struct rrset_cache* rrset_cache, struct regional* region, in neg_nsec3_getnc() argument
1236 nc_rrset = grab_nsec(rrset_cache, data->name, data->len, in neg_nsec3_getnc()
1248 int qlabs, sldns_buffer* buf, struct rrset_cache* rrset_cache, in neg_nsec3_proof_ds() argument
1276 ce_rrset = grab_nsec(rrset_cache, data->name, data->len, in neg_nsec3_proof_ds()
1347 static int add_soa(struct rrset_cache* rrset_cache, time_t now, in add_soa() argument
1378 struct regional* region, struct rrset_cache* rrset_cache, in val_neg_getmsg() argument
1405 rrset_cache, now, region); in val_neg_getmsg()
1476 rrset_cache, now, region))) in val_neg_getmsg()
[all …]
H A Dval_neg.h53 struct rrset_cache;
246 struct rrset_cache* rrset_cache, struct sldns_buffer* buf, time_t now,
H A Dval_utils.h55 struct rrset_cache;
340 struct val_anchors* anchors, struct rrset_cache* r,
352 struct rrset_cache* r, struct module_env* env);
H A Dval_utils.c352 rrset_check_sec_status(env->rrset_cache, rrset, *env->now); in val_verify_rrset()
386 rrset_update_sec_status(env->rrset_cache, rrset, *env->now); in val_verify_rrset()
1041 struct rrset_cache* r, struct module_env* env) in val_mark_indeterminate()
1061 struct rrset_cache* r, struct module_env* env) in val_mark_insecure()
1170 env->rrset_cache, nm, nmlen, LDNS_RR_TYPE_DS, c, 0, in val_find_DS()
1194 msg = val_neg_getmsg(env->neg_cache, &qinfo, region, env->rrset_cache, in val_find_DS()
H A Dval_nsec.c186 rrset_check_sec_status(env->rrset_cache, nsec, *env->now); in nsec_verify_rrset()
192 rrset_update_sec_status(env->rrset_cache, nsec, *env->now); in nsec_verify_rrset()
H A Dvalidator.c810 rrset_cache_update_wildcard(env->rrset_cache, s, wc, wl, in validate_positive_response()
1525 qstate->env->rrset_cache, qstate->env); in processInit()
1603 qstate->env->rrset_cache, qstate->env); in processInit()
1631 qstate->env->rrset_cache, qstate->env); in processInit()
1841 qstate->env->rrset_cache, qstate->env); in processValidate()
H A Dval_nsec3.c1302 rrset_check_sec_status(env->rrset_cache, list[i], *env->now); in list_is_secure()
1311 rrset_update_sec_status(env->rrset_cache, list[i], *env->now); in list_is_secure()
/freebsd-13.1/contrib/unbound/util/
H A Dmodule.h161 struct rrset_cache;
331 struct rrset_cache* rrset_cache; member
/freebsd-13.1/contrib/unbound/daemon/
H A Ddaemon.h53 struct rrset_cache;
H A Ddaemon.c731 slabhash_clear(&daemon->env->rrset_cache->table); in daemon_cleanup()
774 rrset_cache_delete(daemon->env->rrset_cache); in daemon_delete()
857 if((daemon->env->rrset_cache = rrset_cache_adjust( in daemon_apply_cfg()
858 daemon->env->rrset_cache, cfg, &daemon->superalloc)) == 0) in daemon_apply_cfg()
H A Dcachedump.c123 struct rrset_cache* r = worker->env.rrset_cache; in dump_rrset_cache()
431 (void)rrset_cache_update(worker->env.rrset_cache, &ref, in move_into_cache()
605 k = rrset_cache_lookup(worker->env.rrset_cache, qinfo.qname, in load_ref()
H A Dworker.c133 rrset = slabhash_get_mem(&worker->env.rrset_cache->table); in worker_mem_report()
217 (unsigned)slabhash_get_mem(&worker->env.rrset_cache->table), in worker_mem_report()
223 (unsigned)slabhash_get_mem(&worker->env.rrset_cache->table), in worker_mem_report()
659 rrset_array_unlock_touch(worker->env.rrset_cache, in answer_from_cache()
731 rrset_array_unlock_touch(worker->env.rrset_cache, worker->scratchpad, in answer_from_cache()
737 rrset_array_unlock_touch(worker->env.rrset_cache, in answer_from_cache()
1997 slabhash_clear(&worker->env.rrset_cache->table); in worker_alloc_cleanup()
H A Dremote.c811 rrset = slabhash_get_mem(&daemon->env->rrset_cache->table); in print_mem()
1578 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen, t, c, 0); in do_cache_remove()
1580 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen, t, c, in do_cache_remove()
1785 slabhash_traverse(&worker->env.rrset_cache->table, 1, in do_flush_zone()
1854 slabhash_traverse(&worker->env.rrset_cache->table, 1, in do_flush_bogus()
1929 slabhash_traverse(&worker->env.rrset_cache->table, 1, in do_flush_negative()
H A Dstats.c293 s->svr.rrset_cache_count = (long long)count_slabhash_entries(&worker->env.rrset_cache->table); in server_stats_compile()
/freebsd-13.1/contrib/unbound/libunbound/
H A Dcontext.c99 ctx->env->rrset_cache = rrset_cache_adjust(ctx->env->rrset_cache, in context_finalize()
101 if(!ctx->env->rrset_cache) in context_finalize()
/freebsd-13.1/contrib/unbound/util/shm_side/
H A Dshm_main.c261 shm_stat->mem.rrset = (long long)slabhash_get_mem(&worker->env.rrset_cache->table); in shm_main_run()
/freebsd-13.1/contrib/unbound/iterator/
H A Diter_utils.c1085 (void)rrset_cache_update(env->rrset_cache, &ref, env->alloc, *env->now); in iter_store_parentside_rrset()
1175 akey = rrset_cache_lookup(env->rrset_cache, dp->name, in iter_lookup_parent_NS_from_cache()
1199 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in iter_lookup_parent_glue_from_cache()
1211 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in iter_lookup_parent_glue_from_cache()
H A Diter_scrub.c638 (void)rrset_cache_update(env->rrset_cache, &ref, env->alloc, now); in store_rrset()
/freebsd-13.1/contrib/unbound/dns64/
H A Ddns64.c868 rrset_cache_remove(super->env->rrset_cache, dk->rk.dname, in dns64_adjust_a()
/freebsd-13.1/contrib/unbound/cachedb/
H A Dcachedb.c638 qstate->region, qstate->env->rrset_cache, in cachedb_intcache_lookup()
/freebsd-13.1/contrib/unbound/contrib/
H A Dredirect-bogus.patch26 rrset_array_unlock_touch(worker->env.rrset_cache,
H A Daaaa-filter-iterator.patch41 + akey = rrset_cache_lookup(env->rrset_cache, qinfo->qname,

12