/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, 558 void log_reply_info(enum verbosity_value v, struct query_info *qinf, 570 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/iterator/ |
H A D | iter_utils.c | 720 struct query_info qinf; in causes_cycle() local 721 qinf.qname = name; in causes_cycle() 722 qinf.qname_len = namelen; in causes_cycle() 723 qinf.qtype = t; in causes_cycle() 724 qinf.qclass = c; in causes_cycle() 725 qinf.local_alias = NULL; in causes_cycle() 728 return (*qstate->env->detect_cycle)(qstate, &qinf, in causes_cycle() 1462 iter_stub_fwd_no_cache(struct module_qstate *qstate, struct query_info *qinf, in iter_stub_fwd_no_cache() argument 1474 stub = hints_lookup_stub(qstate->env->hints, qinf->qname, in iter_stub_fwd_no_cache() 1475 qinf->qclass, NULL, nolock); in iter_stub_fwd_no_cache() [all …]
|
H A D | iter_utils.h | 151 void iter_dns_store(struct module_env* env, struct query_info* qinf, 416 struct query_info *qinf, uint8_t** retdpname, size_t* retdpnamelen,
|
H A D | iterator.c | 817 struct query_info qinf; in generate_sub_request() local 820 qinf.qname = qname; in generate_sub_request() 821 qinf.qname_len = qnamelen; in generate_sub_request() 822 qinf.qtype = qtype; in generate_sub_request() 823 qinf.qclass = qclass; in generate_sub_request() 824 qinf.local_alias = NULL; in generate_sub_request() 843 if(!(*qstate->env->add_sub)(qstate, &qinf, in generate_sub_request() 852 if(!(*qstate->env->attach_sub)(qstate, &qinf, qflags, prime, in generate_sub_request()
|
/freebsd/contrib/unbound/edns-subnet/ |
H A D | subnetmod.c | 361 struct query_info qinf; in update_cache() local 386 qinf = qstate->qinfo; in update_cache() 387 qinf.qname = memdup(qstate->qinfo.qname, in update_cache() 389 if(!qinf.qname) { in update_cache() 394 mrep_entry = query_info_entrysetup(&qinf, data, h); in update_cache() 395 free(qinf.qname); /* if qname 'consumed', it is set to NULL */ in update_cache()
|
/freebsd/contrib/unbound/services/cache/ |
H A D | dns.c | 1119 struct query_info qinf; in dns_cache_store() local 1122 qinf = *msgqinf; in dns_cache_store() 1123 qinf.qname = memdup(msgqinf->qname, msgqinf->qname_len); in dns_cache_store() 1124 if(!qinf.qname) { in dns_cache_store() 1133 h = query_info_hash(&qinf, (uint16_t)flags); in dns_cache_store() 1134 dns_cache_store_msg(env, &qinf, h, rep, leeway, pside, msgrep, in dns_cache_store() 1138 free(qinf.qname); in dns_cache_store()
|
H A D | dns.h | 95 int dns_cache_store(struct module_env* env, struct query_info* qinf,
|
/freebsd/contrib/unbound/dnstap/ |
H A D | unbound-dnstap-socket.c | 617 char* maddr=NULL, *qinf=NULL; in log_data_frame() local 639 qinf = q_of_msg(d->message->query_message); in log_data_frame() 641 qinf = q_of_msg(d->message->response_message); in log_data_frame() 648 (qinf?" ":""), (qinf?qinf:"")); in log_data_frame() 650 free(qinf); in log_data_frame()
|
/freebsd/contrib/unbound/daemon/ |
H A D | cachedump.c | 630 struct query_info qinf; in load_msg() local 648 s = load_qinfo(s, &qinf, region); in load_msg() 694 if(!dns_cache_store(&worker->env, &qinf, &rep, 0, 0, 0, NULL, flags, in load_msg()
|