| /freebsd/contrib/unbound/util/data/ |
| H A D | msgreply.c | 80 struct query_info* qinf, struct regional* region) in parse_create_qinfo() argument 84 qinf->qname = (uint8_t*)regional_alloc(region, in parse_create_qinfo() 86 else qinf->qname = (uint8_t*)malloc(msg->qname_len); in parse_create_qinfo() 87 if(!qinf->qname) return 0; in parse_create_qinfo() 88 dname_pkt_copy(pkt, qinf->qname, msg->qname); in parse_create_qinfo() 89 } else qinf->qname = 0; in parse_create_qinfo() 90 qinf->qname_len = msg->qname_len; in parse_create_qinfo() 91 qinf->qtype = msg->qtype; in parse_create_qinfo() 92 qinf->qclass = msg->qclass; in parse_create_qinfo() 93 qinf->local_alias = NULL; in parse_create_qinfo() [all …]
|
| H A D | msgreply.h | 303 struct query_info* qinf, struct reply_info** rep, 322 struct alloc_cache* alloc, struct query_info* qinf, 560 void log_reply_info(enum verbosity_value v, struct query_info *qinf, 572 struct query_info* qinf);
|
| H A D | msgencode.h | 69 int reply_info_answer_encode(struct query_info* qinf, struct reply_info* rep,
|
| H A D | msgencode.c | 997 reply_info_answer_encode(struct query_info* qinf, struct reply_info* rep, in reply_info_answer_encode() argument 1018 if(qinf->local_alias && in reply_info_answer_encode() 1044 if(!reply_info_encode(qinf, rep, id, flags, pkt, timenow, region, in reply_info_answer_encode()
|
| /freebsd/contrib/unbound/validator/ |
| H A D | val_utils.c | 67 struct query_info* qinf, struct reply_info* rep, size_t skip) in val_classify_response() argument 119 if(rcode == LDNS_RCODE_NOERROR && qinf->qtype == LDNS_RR_TYPE_ANY) in val_classify_response() 124 if(qinf->qtype == LDNS_RR_TYPE_DNAME) { in val_classify_response() 129 query_dname_compare(qinf->qname, in val_classify_response() 141 qinf, rep); in val_classify_response() 149 ntohs(rep->rrsets[i]->rk.type) == qinf->qtype) in val_classify_response() 155 qinf, rep); in val_classify_response() 214 struct query_info* qinf, uint8_t** signer_name, size_t* signer_len, in val_find_best_signer() argument 229 dname_subdomain_c(qinf->qname, sign)) { in val_find_best_signer() 230 (void)dname_lab_cmp(qinf->qname, in val_find_best_signer() [all …]
|
| H A D | val_utils.h | 96 struct query_info* origqinf, struct query_info* qinf, 114 struct query_info* qinf, struct reply_info* rep,
|
| H A D | val_nsec.c | 500 struct query_info* qinf, uint8_t* wc) in val_nsec_proves_positive_wildcard() argument 506 if(!val_nsec_proves_name_error(nsec, qinf->qname)) in val_nsec_proves_positive_wildcard() 509 ce = nsec_closest_encloser(qinf->qname, nsec); in val_nsec_proves_positive_wildcard()
|
| H A D | val_nsec.h | 142 struct query_info* qinf, uint8_t* wc);
|
| /freebsd/contrib/unbound/edns-subnet/ |
| H A D | subnetmod.c | 378 struct query_info qinf; in update_cache() local 403 qinf = qstate->qinfo; in update_cache() 404 qinf.qname = memdup(qstate->qinfo.qname, in update_cache() 406 if(!qinf.qname) { in update_cache() 411 mrep_entry = query_info_entrysetup(&qinf, data, h); in update_cache() 412 free(qinf.qname); /* if qname 'consumed', it is set to NULL */ in update_cache() 556 struct query_info qinf; in generate_sub_request() local 557 qinf.qname = qstate->qinfo.qname; in generate_sub_request() 558 qinf.qname_len = qstate->qinfo.qname_len; in generate_sub_request() 559 qinf.qtype = qstate->qinfo.qtype; in generate_sub_request() [all …]
|
| /freebsd/contrib/unbound/iterator/ |
| H A D | iter_utils.c | 764 struct query_info qinf; in iter_mark_pside_cycle_targets() 765 qinf.qname = name; in iter_mark_pside_cycle_targets() 766 qinf.qname_len = namelen; in iter_mark_pside_cycle_targets() 767 qinf.qtype = t; in iter_mark_pside_cycle_targets() 768 qinf.qclass = c; in iter_mark_pside_cycle_targets() 769 qinf.local_alias = NULL; in iter_mark_pside_cycle_targets() 772 return (*qstate->env->detect_cycle)(qstate, &qinf, in iter_mark_pside_cycle_targets() 1506 iter_stub_fwd_no_cache(struct module_qstate *qstate, struct query_info *qinf, in iter_stub_fwd_no_cache() 1518 stub = hints_lookup_stub(qstate->env->hints, qinf->qname, in iter_stub_fwd_no_cache() 1519 qinf in iter_stub_fwd_no_cache() 720 struct query_info qinf; causes_cycle() local 1462 iter_stub_fwd_no_cache(struct module_qstate * qstate,struct query_info * qinf,uint8_t ** retdpname,size_t * retdpnamelen,uint8_t * dpname_storage,size_t dpname_storage_len) iter_stub_fwd_no_cache() argument [all...] |
| H A D | iter_utils.h | 136 * @param qinf: query info, the query for which answer is stored. 153 void iter_dns_store(struct module_env* env, struct query_info* qinf, 407 * @param qinf: query name to lookup for. 419 struct query_info *qinf, uint8_t** retdpname, size_t* retdpnamelen,
|
| H A D | iterator.c | 806 struct query_info qinf; in generate_sub_request() local 809 qinf.qname = qname; in generate_sub_request() 810 qinf.qname_len = qnamelen; in generate_sub_request() 811 qinf.qtype = qtype; in generate_sub_request() 812 qinf.qclass = qclass; in generate_sub_request() 813 qinf.local_alias = NULL; in generate_sub_request() 832 if(!(*qstate->env->add_sub)(qstate, &qinf, in generate_sub_request() 841 if(!(*qstate->env->attach_sub)(qstate, &qinf, qflags, prime, in generate_sub_request()
|
| /freebsd/contrib/unbound/services/cache/ |
| H A D | dns.c | 1156 struct query_info qinf; in dns_cache_prefetch_adjust() 1159 qinf = *msgqinf; in dns_cache_prefetch_adjust() 1160 qinf.qname = memdup(msgqinf->qname, msgqinf->qname_len); in dns_cache_prefetch_adjust() 1161 if(!qinf.qname) { 1170 h = query_info_hash(&qinf, (uint16_t)flags); 1171 dns_cache_store_msg(env, &qinf, h, rep, leeway, pside, msgrep, 1175 free(qinf.qname); 1119 struct query_info qinf; dns_cache_store() local
|
| H A D | dns.h | 72 * @param qinf: query info, the query for which answer is stored. 97 int dns_cache_store(struct module_env* env, struct query_info* qinf,
|
| /freebsd/contrib/unbound/dnstap/ |
| H A D | unbound-dnstap-socket.c | 618 char* maddr=NULL, *qinf=NULL; in log_data_frame() 640 qinf = q_of_msg(d->message->query_message); in log_data_frame() 642 qinf = q_of_msg(d->message->response_message); in log_data_frame() 649 (qinf?" ":""), (qinf?qinf:"")); in log_data_frame() 651 free(qinf); in log_data_frame() 617 char* maddr=NULL, *qinf=NULL; log_data_frame() local
|
| /freebsd/contrib/unbound/daemon/ |
| H A D | cachedump.c | 753 struct query_info qinf; in load_msg() local 771 s = load_qinfo(s, &qinf, region); in load_msg() 817 if(!dns_cache_store(&worker->env, &qinf, &rep, 0, 0, 0, NULL, flags, in load_msg()
|