Searched refs:rrset (Results 26 - 50 of 56) sorted by relevance

123

/freebsd-13-stable/contrib/unbound/services/
H A Drpz.c335 /** new rrset containing CNAME override, does not yet contain a dname */
339 struct ub_packed_rrset_key* rrset; local
342 rrset = (struct ub_packed_rrset_key*)regional_alloc_zero(region,
343 sizeof(*rrset));
344 if(!rrset) {
348 rrset->entry.key = rrset;
375 rrset->entry.data = pd;
376 rrset->rk.type = htons(LDNS_RR_TYPE_CNAME);
377 rrset
[all...]
H A Dmesh.c49 #include "services/cache/rrset.h"
405 goto bail_out; /* rrset changed, re-verify */
1537 r->local_alias->rrset = regional_alloc_init(s->s.region,
1538 qinfo->local_alias->rrset,
1539 sizeof(*qinfo->local_alias->rrset));
1540 if(!r->local_alias->rrset)
1542 dsrc = qinfo->local_alias->rrset->entry.data;
1547 qinfo->local_alias->rrset->rk.type ==
1551 r->local_alias->rrset->rk.dname_len =
1552 qinfo->local_alias->rrset
[all...]
H A Dlocalzone.h162 * artificial negative SOA rrset (TTL is the minimum of the TTL and the
191 struct ub_packed_rrset_key* rrset; member in struct:local_rrset
451 * If found, 'r' will be filled with corresponding rrset information.
454 * @param r: rrset key to be filled for matched data
455 * @param temp: region to allocate rrset in 'r'
456 * @return 1 if a match is found and rrset is built; otherwise 0 including
526 * Remove RR from rrset that is created using localzone's rrset_insert_rr.
/freebsd-13-stable/contrib/unbound/validator/
H A Dval_kentry.h74 * isbad=0 && rrset=0: insecure space.
85 /** DNS RR type of the rrset data (host order) */
127 * @return true if it is a NULL rrset entry.
176 * Create a key entry from an rrset, in the given region.
181 * @param rrset: data for key entry. This is copied to the region.
183 * @param now: current time (added to ttl of rrset)
188 struct ub_packed_rrset_key* rrset, uint8_t* sigalg, time_t now);
205 * Obtain rrset from a key entry, allocated in region.
206 * @param kkey: key entry to convert to a rrset.
207 * @param region: where to allocate rrset
[all...]
H A Dval_kentry.c129 /* copy rrset */
181 /* copy rrset */
298 struct ub_packed_rrset_key* rrset, uint8_t* sigalg, time_t now)
303 rrset->entry.data;
309 d->rrset_type = ntohs(rrset->rk.type);
400 /* compute size of smallest ZSK key in the rrset */
296 key_entry_create_rrset(struct regional* region, uint8_t* name, size_t namelen, uint16_t dclass, struct ub_packed_rrset_key* rrset, uint8_t* sigalg, time_t now) argument
/freebsd-13-stable/contrib/unbound/iterator/
H A Diter_utils.c52 #include "services/cache/rrset.h"
817 /* see if DS rrset was given, in AUTH section */
891 * any NS rrset must be from the zone itself */
907 * @param k1: rrset
908 * @param k2: rrset
942 /** compare rrsets and sort canonically. Compares rrset name, type, class.
1042 /* the failure case (Cisco firewalls) only has one rrset in authsec */
1046 /* remove NS rrset and break from loop (loop limits
1048 /* move last rrset into this position (there is no
1050 verbose(VERB_ALGO, "caps fallback: removing NS rrset");
1067 iter_store_parentside_rrset(struct module_env* env, struct ub_packed_rrset_key* rrset) argument
1100 struct ub_packed_rrset_key* rrset = reply_get_NS_rrset(rep); local
1117 struct ub_packed_rrset_key* rrset = reply_get_NS_rrset(rep); local
[all...]
H A Diterator.h417 /** rrset */
418 struct ub_packed_rrset_key* rrset; member in struct:iter_prep_list
H A Diter_utils.h233 * @param p: reply one. The reply has rrset data pointers in region.
234 * Does not check rrset-IDs
259 * Store parent-side rrset in separate rrset cache entries for later
263 * @param rrset: the rrset to store (copied).
267 struct ub_packed_rrset_key* rrset);
272 * @param rep: response with NS rrset.
278 * Store parent-side negative element, the parentside rrset does not exist,
279 * creates an rrset wit
[all...]
H A Diter_delegpt.c336 /** find NS rrset in given list */
363 /* If there was no NS rrset in the authority section, then this
470 struct ub_packed_rrset_key* rrset, uint8_t lame, int* additions)
472 if(!rrset)
474 if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_NS)
475 return delegpt_rrset_add_ns(dp, region, rrset, lame);
476 else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_A)
477 return delegpt_add_rrset_A(dp, region, rrset, lame, additions);
478 else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_AAAA)
479 return delegpt_add_rrset_AAAA(dp, region, rrset, lam
469 delegpt_add_rrset(struct delegpt* dp, struct regional* region, struct ub_packed_rrset_key* rrset, uint8_t lame, int* additions) argument
[all...]
H A Diterator.c419 sets[num_an++] = p->rrset;
420 if(ub_packed_rrset_ttl(p->rrset) < msg->rep->ttl)
421 msg->rep->ttl = ub_packed_rrset_ttl(p->rrset);
429 num_ns, p->rrset) || prepend_is_duplicate(
431 msg->rep->ns_numrrsets, p->rrset))
433 sets[msg->rep->an_numrrsets + num_an + num_ns++] = p->rrset;
434 if(ub_packed_rrset_ttl(p->rrset) < msg->rep->ttl)
435 msg->rep->ttl = ub_packed_rrset_ttl(p->rrset);
452 * Find rrset in ANSWER prepend list.
455 * @param rrset
459 iter_find_rrset_in_prepend_answer(struct iter_qstate* iq, struct ub_packed_rrset_key* rrset) argument
482 iter_add_prepend_answer(struct module_qstate* qstate, struct iter_qstate* iq, struct ub_packed_rrset_key* rrset) argument
507 iter_add_prepend_auth(struct module_qstate* qstate, struct iter_qstate* iq, struct ub_packed_rrset_key* rrset) argument
3234 struct ub_packed_rrset_key* rrset; local
[all...]
/freebsd-13-stable/contrib/ldns/ldns/
H A Ddnssec_sign.h20 * \param[in] rrset The RRset to create the signature for
25 ldns_create_empty_rrsig(const ldns_rr_list *rrset,
29 * Sign the buffer which contains the wiredata of an rrset, and the
39 * Sign an rrset
40 * \param[in] rrset the rrset
44 ldns_rr_list *ldns_sign_public(ldns_rr_list *rrset, ldns_key_list *keys);
/freebsd-13-stable/contrib/unbound/respip/
H A Drespip.c220 /** allocate and initialize an rrset structure; this function is based
226 struct ub_packed_rrset_key* rrset = regional_alloc_zero( local
227 region, sizeof(*rrset));
228 if(!rrset) {
232 rrset->entry.key = rrset;
240 rrset->entry.data = pd;
241 rrset->rk.dname = regional_alloc_zero(region, 1);
242 if(!rrset->rk.dname) {
246 rrset
[all...]
/freebsd-13-stable/contrib/ldns/
H A Ddnssec_sign.c23 ldns_create_empty_rrsig(const ldns_rr_list *rrset, argument
33 label_count = ldns_dname_label_count(ldns_rr_owner(ldns_rr_list_rr(rrset,
36 if(ldns_dname_is_wildcard(ldns_rr_owner(ldns_rr_list_rr(rrset, 0))))
42 orig_ttl = ldns_rr_ttl(ldns_rr_list_rr(rrset, 0));
43 orig_class = ldns_rr_get_class(ldns_rr_list_rr(rrset, 0));
50 ldns_rr_list_rr(rrset,
113 ldns_rr_get_type(ldns_rr_list_rr(rrset,
219 ldns_sign_public(ldns_rr_list *rrset, ldns_key_list *keys) argument
231 if (!rrset || ldns_rr_list_rr_count(rrset) <
[all...]
H A Ddnssec_zone.c412 ldns_dnssec_name_set_name(ldns_dnssec_name *rrset, argument
415 if (rrset && dname) {
416 rrset->name = dname;
422 ldns_dnssec_name_set_nsec(ldns_dnssec_name *rrset, ldns_rr *nsec) argument
424 if (rrset && nsec) {
425 rrset->nsec = nsec;
480 /* it's a 'normal' RR, add it to the right rrset */
H A Drr.c1335 ldns_rr_list *rrset; local
1343 rrset = ldns_rr_list_new();
1347 ldns_rr_list_free(rrset);
1350 ldns_rr_list_push_rr(rrset, last_rr);
1369 ldns_rr_list_push_rr(rrset, ldns_rr_list_pop_rr(rr_list));
1381 return rrset;
/freebsd-13-stable/contrib/unbound/util/data/
H A Dmsgparse.h42 * o if RRSIG follows the data rrset, it is added to the rrset rrsig list.
43 * o if no matching data rrset is found, the RRSIG becomes a new rrset.
44 * o If the data rrset later follows the RRSIG
45 * o See if the RRSIG rrset contains multiple types, and needs to
47 * o Put the data rr as data type in the rrset and rrsig in list.
49 * the data item is used for the final rrset.
56 * so that a data rrset is signed by RRSIGs with different rdata.
74 /** number of buckets in parse rrset has
[all...]
H A Dmsgencode.c447 /** store rrset in buffer in wireformat, return RETVAL_* */
469 * For an rrset with a fixed TTL, use the rrset's TTL as given. */
478 /* rrset roundrobin */
566 /* trim off the rrset neatly. */
603 qinfo->local_alias->rrset->rk.dname : qinfo->qname;
605 qinfo->local_alias->rrset->rk.dname_len : qinfo->qname_len;
723 arep.rrsets = &qinfo->local_alias->rrset;
934 qinfo->local_alias->rrset->rk.dname : qinfo->qname;
936 qinfo->local_alias->rrset
[all...]
H A Dmsgreply.c268 /** copy over the data into packed rrset */
311 /** create rrset return 0 on failure */
338 /** get trust value for rrset */
340 get_rrset_trust(struct msg_parse* msg, struct rrset_parse* rrset) argument
343 if(rrset->section == LDNS_SECTION_ANSWER) {
349 if(rrset == msg->rrset_first)
356 if(rrset == msg->rrset_first ||
357 rrset == msg->rrset_first->rrset_all_next)
364 } else if(rrset->section == LDNS_SECTION_AUTHORITY) {
/freebsd-13-stable/contrib/unbound/libunbound/
H A Dunbound.h637 long long rrset; member in struct:ub_shm_stat_info::__anon6305
752 /** number of rrset cache entries */
/freebsd-13-stable/lib/libunbound/
H A DMakefile27 regional.c respip.c rpz.c rrdef.c rrset.c rtt.c sbuffer.c slabhash.c \
/freebsd-13-stable/contrib/unbound/daemon/
H A Dworker.c58 #include "services/cache/rrset.h"
121 size_t total, front, back, mesh, msg, rrset, infra, ac, superac; local
132 rrset = slabhash_get_mem(&worker->env.rrset_cache->table);
168 total = front+back+mesh+msg+rrset+infra+iter+val+ac+superac+me;
172 "rrset=%u infra=%u iter=%u val=%u subnet=%u anchors=%u "
175 (unsigned)mesh, (unsigned)msg, (unsigned)rrset, (unsigned)infra,
181 "rrset=%u infra=%u iter=%u val=%u anchors=%u "
184 (unsigned)mesh, (unsigned)msg, (unsigned)rrset,
213 verbose(VERB_QUERY, "cache memory msg=%u rrset=%u infra=%u val=%u "
220 verbose(VERB_QUERY, "cache memory msg=%u rrset
1443 struct ub_packed_rrset_key* rrset = qinfo.local_alias->rrset; local
[all...]
H A Dcachedump.c47 #include "services/cache/rrset.h"
63 /** dump one rrset zonefile line */
74 /** dump rrset key and data info */
86 if(!ssl_printf(ssl, ";rrset%s " ARG_LL "d %u %u %d %d\n",
100 /** dump lruhash rrset cache */
119 /** dump rrset cache */
138 /** dump message to rrset reference */
260 /* make copy of rrset in worker buffer */
266 /* release lock so we can lookup the rrset references
267 * in the rrset cach
578 load_ref(RES* ssl, sldns_buffer* buf, struct worker* worker, struct regional *region, struct ub_packed_rrset_key** rrset, int* go_on) argument
[all...]
/freebsd-13-stable/contrib/unbound/contrib/
H A Dunbound_munin_271 p_config "mem.cache.rrset" "RRset cache memory" "GAUGE"
276 p_config "rrset.cache.count" "rrset cache count" "GAUGE"
333 p_config "num.rrset.bogus" "num rrsets marked bogus" "ABSOLUTE"
463 for x in mem.cache.rrset mem.cache.message mem.mod.iterator \
464 mem.mod.validator msg.cache.count rrset.cache.count \
494 print_value "num.rrset.bogus"
/freebsd-13-stable/contrib/unbound/util/shm_side/
H A Dshm_main.c58 #include "services/cache/rrset.h"
255 shm_stat->mem.rrset = (long long)slabhash_get_mem(&worker->env.rrset_cache->table);
/freebsd-13-stable/contrib/unbound/
H A DMakefile.in113 COMMON_SRC=services/cache/dns.c services/cache/infra.c services/cache/rrset.c \
138 COMMON_OBJ_WITHOUT_NETCALL=dns.lo infra.lo rrset.lo dname.lo msgencode.lo \
685 $(srcdir)/util/data/msgreply.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h \
697 rrset.lo rrset.o: $(srcdir)/services/cache/rrset.c config.h $(srcdir)/services/cache/rrset.h \
777 $(srcdir)/iterator/iter_priv.h $(srcdir)/util/rbtree.h $(srcdir)/services/cache/rrset.h \
788 $(srcdir)/services/cache/dns.h $(srcdir)/services/cache/rrset.h \
823 $(srcdir)/services/outbound_list.h $(srcdir)/services/cache/dns.h $(srcdir)/services/cache/rrset
[all...]

Completed in 324 milliseconds

123