/freebsd/contrib/unbound/validator/ |
H A D | val_utils.c | 86 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA) in val_classify_response() 88 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_DS) in val_classify_response() 90 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS) in val_classify_response() 98 ntohs(rep->rrsets[0]->rk.type) == LDNS_RR_TYPE_NS && in val_classify_response() 99 query_dname_compare(rep->rrsets[0]->rk.dname, in val_classify_response() 127 ntohs(rep->rrsets[i]->rk.type) in val_classify_response() 130 rep->rrsets[i]->rk.dname) == 0) { in val_classify_response() 136 if(ntohs(rep->rrsets[i]->rk.type) in val_classify_response() 149 ntohs(rep->rrsets[i]->rk.type) == qinf->qtype) in val_classify_response() 151 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME) in val_classify_response() [all …]
|
H A D | val_nsec.c | 252 if(rep->rrsets[i]->rk.type != htons(LDNS_RR_TYPE_NSEC)) in val_nsec_prove_nodata_dsreply() 254 if(!nsec_verify_rrset(env, ve, rep->rrsets[i], kkey, reason, in val_nsec_prove_nodata_dsreply() 262 if(nsec_proves_nodata(rep->rrsets[i], qinfo, &wc)) { in val_nsec_prove_nodata_dsreply() 265 *proof_ttl = rrset_get_ttl(rep->rrsets[i]); in val_nsec_prove_nodata_dsreply() 266 if(wc && dname_is_wild(rep->rrsets[i]->rk.dname)) in val_nsec_prove_nodata_dsreply() 267 wc_nsec = rep->rrsets[i]; in val_nsec_prove_nodata_dsreply() 270 if(val_nsec_proves_name_error(rep->rrsets[i], qinfo->qname)) { in val_nsec_prove_nodata_dsreply() 272 rep->rrsets[i]); in val_nsec_prove_nodata_dsreply()
|
H A D | validator.c | 279 vq->chase_reply->rrsets = regional_alloc(qstate->region, in val_new_getmsg() 283 if(!vq->chase_reply->rrsets) in val_new_getmsg() 285 memmove(vq->chase_reply->rrsets, vq->orig_msg->rep->rrsets, in val_new_getmsg() 664 s = chase_reply->rrsets[i]; in validate_msg_signatures() 669 if(i>0 && ntohs(chase_reply->rrsets[i-1]->rk.type) == in validate_msg_signatures() 672 …((struct packed_rrset_data*)chase_reply->rrsets[i-1]->entry.data)->security == sec_status_secure && in validate_msg_signatures() 673 dname_strict_subdomain_c(s->rk.dname, chase_reply->rrsets[i-1]->rk.dname) in validate_msg_signatures() 729 s = chase_reply->rrsets[i]; in validate_msg_signatures() 769 s = chase_reply->rrsets[i]; in validate_msg_signatures() 879 if(ntohs(rep->rrsets[ rep->an_numrrsets ]->rk.type) != LDNS_RR_TYPE_NS) in detect_wrongly_truncated() [all …]
|
H A D | val_neg.c | 330 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC) { in calc_data_need() 331 d = rep->rrsets[i]->rk.dname; in calc_data_need() 332 len = rep->rrsets[i]->rk.dname_len; in calc_data_need() 570 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA) in reply_find_soa() 571 return rep->rrsets[i]; in reply_find_soa() 584 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC) { in reply_has_nsec() 585 d = (struct packed_rrset_data*)rep->rrsets[i]-> in reply_has_nsec() 860 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC || in reply_nsec_signer() 861 ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC3) { in reply_nsec_signer() 862 d = (struct packed_rrset_data*)rep->rrsets[i]-> in reply_nsec_signer() [all …]
|
/freebsd/contrib/ldns/ |
H A D | dnssec_zone.c | 118 ldns_dnssec_rrsets_free_internal(ldns_dnssec_rrsets *rrsets, int deep) in ldns_dnssec_rrsets_free_internal() argument 120 if (rrsets) { in ldns_dnssec_rrsets_free_internal() 121 if (rrsets->rrs) { in ldns_dnssec_rrsets_free_internal() 122 ldns_dnssec_rrs_free_internal(rrsets->rrs, deep); in ldns_dnssec_rrsets_free_internal() 124 if (rrsets->next) { in ldns_dnssec_rrsets_free_internal() 125 ldns_dnssec_rrsets_free_internal(rrsets->next, deep); in ldns_dnssec_rrsets_free_internal() 127 if (rrsets->signatures) { in ldns_dnssec_rrsets_free_internal() 128 ldns_dnssec_rrs_free_internal(rrsets->signatures, deep); in ldns_dnssec_rrsets_free_internal() 130 LDNS_FREE(rrsets); in ldns_dnssec_rrsets_free_internal() 135 ldns_dnssec_rrsets_free(ldns_dnssec_rrsets *rrsets) in ldns_dnssec_rrsets_free() argument [all …]
|
H A D | dnssec_sign.c | 709 name->rrsets, LDNS_RR_TYPE_SOA)) { 713 name->rrsets, glue_list); 730 name->rrsets, LDNS_RR_TYPE_NS) 732 name->rrsets, LDNS_RR_TYPE_SOA)) { 737 name->rrsets, glue_list); 743 name->rrsets, LDNS_RR_TYPE_DNAME)) { 950 if (!current_name->rrsets) { 1254 cur_name->rrsets, LDNS_RR_TYPE_NS) 1256 cur_name->rrsets, LDNS_RR_TYPE_SOA); 1257 cur_rrset = cur_name->rrsets; [all …]
|
H A D | dnssec.c | 801 ldns_dnssec_rrsets_contains_type(const ldns_dnssec_rrsets *rrsets, in ldns_dnssec_rrsets_contains_type() argument 804 const ldns_dnssec_rrsets *cur_rrset = rrsets; in ldns_dnssec_rrsets_contains_type() 835 from->rrsets, LDNS_RR_TYPE_NS) in ldns_dnssec_create_nsec() 837 from->rrsets, LDNS_RR_TYPE_SOA); in ldns_dnssec_create_nsec() 839 cur_rrsets = from->rrsets; in ldns_dnssec_create_nsec() 909 from->rrsets, LDNS_RR_TYPE_NS) in ldns_dnssec_create_nsec3() 911 from->rrsets, LDNS_RR_TYPE_SOA); in ldns_dnssec_create_nsec3() 912 cur_rrsets = from->rrsets; in ldns_dnssec_create_nsec3()
|
/freebsd/contrib/ldns/ldns/ |
H A D | dnssec_zone.h | 63 ldns_dnssec_rrsets *rrsets; member 168 void ldns_dnssec_rrsets_free(ldns_dnssec_rrsets *rrsets); 176 void ldns_dnssec_rrsets_deep_free(ldns_dnssec_rrsets *rrsets); 184 ldns_rr_type ldns_dnssec_rrsets_type(const ldns_dnssec_rrsets *rrsets); 193 ldns_status ldns_dnssec_rrsets_set_type(ldns_dnssec_rrsets *rrsets, 204 ldns_status ldns_dnssec_rrsets_add_rr(ldns_dnssec_rrsets *rrsets, ldns_rr *rr); 214 const ldns_dnssec_rrsets *rrsets, 227 const ldns_dnssec_rrsets *rrsets,
|
H A D | dnssec.h | 240 ldns_dnssec_rrsets_contains_type(const ldns_dnssec_rrsets *rrsets, ldns_rr_type type);
|
/freebsd/contrib/unbound/services/cache/ |
H A D | dns.c | 86 rep->ref[i].key = rep->rrsets[i]; in store_rrsets() 87 rep->ref[i].id = rep->rrsets[i]->id; in store_rrsets() 107 qrep->rrsets[i] = ck; in store_rrsets() 116 rep->rrsets[i] = rep->ref[i].key; in store_rrsets() 124 rep->rrsets[i]->entry.data)->ttl; in store_rrsets() 166 rep->ref[i].key = rep->rrsets[i]; in dns_cache_store_msg() 167 rep->ref[i].id = rep->rrsets[i]->id; in dns_cache_store_msg() 273 if((msg->rep->rrsets[msg->rep->rrset_count] = in addr_to_additional() 457 if((msg->rep->rrsets[msg->rep->rrset_count] = in find_add_ds() 491 msg->rep->rrsets = (struct ub_packed_rrset_key**) in dns_msg_create() [all …]
|
/freebsd/contrib/unbound/util/data/ |
H A D | msgreply.c | 132 rep->rrsets = (struct ub_packed_rrset_key**)&(rep->ref[0]); in construct_reply_info_base() 133 else rep->rrsets = (struct ub_packed_rrset_key**)&(rep->ref[total]); in construct_reply_info_base() 135 memset( rep->rrsets, 0, sizeof(struct ub_packed_rrset_key*) * total); in construct_reply_info_base() 161 rep->rrsets[i] = (struct ub_packed_rrset_key*) in reply_info_alloc_rrset_keys() 164 if(rep->rrsets[i]) { in reply_info_alloc_rrset_keys() 165 memset(rep->rrsets[i], 0, in reply_info_alloc_rrset_keys() 167 rep->rrsets[i]->entry.key = rep->rrsets[i]; in reply_info_alloc_rrset_keys() 170 else rep->rrsets[i] = alloc_special_obtain(alloc); in reply_info_alloc_rrset_keys() 171 if(!rep->rrsets[i]) in reply_info_alloc_rrset_keys() 173 rep->rrsets[i]->entry.data = NULL; in reply_info_alloc_rrset_keys() [all …]
|
H A D | msgencode.c | 575 if((r=packed_rrset_encode(rep->rrsets[rrsets_before+i], in insert_section() 588 if((r=packed_rrset_encode(rep->rrsets[rrsets_before+i], in insert_section() 599 if((r=packed_rrset_encode(rep->rrsets[rrsets_before+i], in insert_section() 642 if(ntohs(rep->rrsets[i]->rk.type) == qtype) { in positive_answer() 651 if(ntohs(rep->rrsets[i]->rk.type) == in positive_answer() 653 ntohs(rep->rrsets[i]->rk.type) == in positive_answer() 676 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA) in negative_answer() 678 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS) in negative_answer() 738 arep.rrsets = &qinfo->local_alias->rrset; in reply_info_encode()
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_resptype.c | 73 struct ub_packed_rrset_key* s = msg->rep->rrsets[i]; in response_type_from_cache() 131 s = msg->rep->rrsets[i]; in response_type_from_server() 162 s = msg->rep->rrsets[i]; in response_type_from_server() 217 s = msg->rep->rrsets[i]; in response_type_from_server() 235 s = msg->rep->rrsets[i]; in response_type_from_server()
|
H A D | iter_utils.c | 906 if(((struct packed_rrset_data*)msg->rep->rrsets[i]-> in iter_msg_has_dnssec() 934 struct ub_packed_rrset_key* s = msg->rep->rrsets[i]; in iter_msg_from_zone() 1045 region, p->rrsets, sizeof(*sorted_p)*p->rrset_count); in reply_equal() 1055 region, q->rrsets, sizeof(*sorted_q)*q->rrset_count); in reply_equal() 1101 struct ub_packed_rrset_key* s = rep->rrsets[i]; in caps_strip_reply() 1109 rep->rrsets[i]=rep->rrsets[rep->rrset_count-1]; in caps_strip_reply() 1147 if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NS)) { in reply_get_NS_rrset() 1148 return rep->rrsets[i]; in reply_get_NS_rrset() 1175 if(!rrset && rep->rrset_count != 0) rrset = rep->rrsets[0]; in iter_store_parentside_neg() 1321 struct ub_packed_rrset_key* s = msg->rep->rrsets[i]; in iter_scrub_ds() [all …]
|
H A D | iterator.c | 423 memcpy(sets+num_an, msg->rep->rrsets, msg->rep->an_numrrsets * in iter_prepend() 430 msg->rep->rrsets+msg->rep->an_numrrsets, in iter_prepend() 441 msg->rep->rrsets + msg->rep->an_numrrsets, in iter_prepend() 450 msg->rep->rrsets = sets; in iter_prepend() 553 struct ub_packed_rrset_key* r = msg->rep->rrsets[i]; in handle_cname_response() 580 struct ub_packed_rrset_key* r = msg->rep->rrsets[i]; in handle_cname_response() 1180 s = rep->rrsets[i]; in generate_a_aaaa_check() 3128 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS) in find_NS() 3129 return rep->rrsets[i]; in find_NS() 3252 && ntohs(iq->response->rep->rrsets[0]->rk.type) == LDNS_RR_TYPE_DNAME) { in processQueryResponse() [all …]
|
H A D | iter_delegpt.c | 405 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS) in find_NS() 406 return rep->rrsets[i]; in find_NS() 444 struct ub_packed_rrset_key* s = msg->rep->rrsets[i]; in delegpt_from_message()
|
/freebsd/contrib/unbound/respip/ |
H A D | respip.c | 617 uint16_t rtype = ntohs(rep->rrsets[i]->rk.type); in respip_addr_lookup() 621 rd = rep->rrsets[i]->entry.data; in respip_addr_lookup() 686 dataqinfo.qname = rep->rrsets[rrset_id]->rk.dname; in respip_data_answer() 687 dataqinfo.qname_len = rep->rrsets[rrset_id]->rk.dname_len; in respip_data_answer() 688 dataqinfo.qtype = ntohs(rep->rrsets[rrset_id]->rk.type); in respip_data_answer() 689 dataqinfo.qclass = ntohs(rep->rrsets[rrset_id]->rk.rrset_class); in respip_data_answer() 714 rp->rk.dname = rep->rrsets[rrset_id]->rk.dname; in respip_data_answer() 715 rp->rk.dname_len = rep->rrsets[rrset_id]->rk.dname_len; in respip_data_answer() 729 new_rep->rrsets[rrset_id] = rp; in respip_data_answer() 965 …if(!rdata2sockaddr(rep->rrsets[rrset_id]->entry.data, ntohs(rep->rrsets[rrset_id]->rk.type), rr_id… in respip_rewrite_reply() [all …]
|
/freebsd/contrib/unbound/services/ |
H A D | rpz.c | 1297 struct local_rrset* prev=NULL, *p=ld->rrsets; in rpz_data_delete_rr() 1309 else ld->rrsets = p->next; in rpz_data_delete_rr() 1317 if(ld && ld->rrsets) in rpz_data_delete_rr() 1786 rep.rrsets = rrsetlist; in rpz_local_encode() 1789 rep.rrsets[0] = rrset; in rpz_local_encode() 1794 rep.rrsets[rep.rrset_count] = soa_rrset; in rpz_local_encode() 1934 prevrrsets = rep->rrsets; in rpz_add_soa() 1935 rep->rrsets = regional_alloc_zero(ms->region, in rpz_add_soa() 1936 sizeof(*rep->rrsets)*(rep->rrset_count+1)); in rpz_add_soa() 1937 if(!rep->rrsets) in rpz_add_soa() [all …]
|
H A D | localzone.c | 66 for(p = d->rrsets; p; p = p->next) { in local_zone_out() 335 for(p = data->rrsets; p; p = p->next) { in local_data_find_type() 371 rrset->next = node->rrsets; in new_local_rrset() 372 node->rrsets = rrset; in new_local_rrset() 565 z->type == local_zone_inform_redirect) && node->rrsets) { in local_zone_enter_rr() 569 else if (node->rrsets->rrset->rk.type == in local_zone_enter_rr() 1315 rep.rrsets = &rrset; in local_encode() 1747 if(ld && ld->rrsets) { in local_zones_zone_answer() 2133 while(d && d->rrsets == NULL && is_terminal(d)) { in del_empty_term() 2151 struct local_rrset* prev=NULL, *p=d->rrsets; in del_local_rrset() [all …]
|
H A D | authzone.c | 145 if(msg->rep->rrsets == NULL) { in msg_grow_array() 146 msg->rep->rrsets = regional_alloc_zero(region, in msg_grow_array() 148 if(!msg->rep->rrsets) in msg_grow_array() 151 struct ub_packed_rrset_key** rrsets_old = msg->rep->rrsets; in msg_grow_array() 152 msg->rep->rrsets = regional_alloc_zero(region, in msg_grow_array() 154 if(!msg->rep->rrsets) in msg_grow_array() 156 memmove(msg->rep->rrsets, rrsets_old, in msg_grow_array() 194 msg->rep->ttl = get_rrset_ttl(msg->rep->rrsets[0]); in msg_ttl() 197 } else if(get_rrset_ttl(msg->rep->rrsets[msg->rep->rrset_count-1]) < in msg_ttl() 199 msg->rep->ttl = get_rrset_ttl(msg->rep->rrsets[ in msg_ttl() [all …]
|
H A D | localzone.h | 185 struct local_rrset* rrsets; member
|
/freebsd/contrib/unbound/daemon/ |
H A D | cachedump.c | 214 if(!dump_msg_ref(ssl, d->rrsets[i])) { in dump_msg() 238 (*d)->rrsets = (struct ub_packed_rrset_key**)(void *)( in copy_msg() 680 rep.rrsets = (struct ub_packed_rrset_key**)regional_alloc_zero( in load_msg() 685 if(!load_ref(ssl, buf, worker, region, &rep.rrsets[i], in load_msg() 811 struct ub_packed_rrset_key* k = msg->rep->rrsets[i]; in print_dp_main()
|
H A D | worker.c | 426 s = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data) in check_delegation_secure() 433 s = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data) in check_delegation_secure() 450 s = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data) in deleg_remove_nonsecure_additional() 453 memmove(rep->rrsets+i, rep->rrsets+i+1, in deleg_remove_nonsecure_additional() 694 if(rep->an_numrrsets > 0 && (rep->rrsets[0]->rk.type == in answer_from_cache() 695 htons(LDNS_RR_TYPE_CNAME) || rep->rrsets[0]->rk.type == in answer_from_cache()
|
/freebsd/contrib/unbound/edns-subnet/ |
H A D | subnetmod.c | 321 struct ub_packed_rrset_key *key = elem->rrsets[i]; in sizefunc() 423 rep->ref[i].key = rep->rrsets[i]; in update_cache() 424 rep->ref[i].id = rep->rrsets[i]->id; in update_cache() 739 struct ub_packed_rrset_key* s = response->rep->rrsets[0]; in ecs_query_response()
|
/freebsd/contrib/unbound/contrib/ |
H A D | aaaa-filter-iterator.patch | 55 * "Suspect" rrsets are potentially poison. Note that this routine expects 61 int del_addi = 0; /* if additional-holding rrsets are deleted, we 75 /* At this point, we brutally remove ALL rrsets that aren't
|