Home
last modified time | relevance | path

Searched refs:qinf (Results 1 – 16 of 16) sorted by relevance

/freebsd/contrib/unbound/util/data/
H A Dmsgreply.c80 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 Dmsgreply.h303 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 Dmsgencode.h69 int reply_info_answer_encode(struct query_info* qinf, struct reply_info* rep,
H A Dmsgencode.c997 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 Dval_utils.c67 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 Dval_utils.h96 struct query_info* origqinf, struct query_info* qinf,
114 struct query_info* qinf, struct reply_info* rep,
H A Dval_nsec.c500 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 Dval_nsec.h142 struct query_info* qinf, uint8_t* wc);
/freebsd/contrib/unbound/iterator/
H A Diter_utils.c720 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 Diter_utils.h151 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 Diterator.c817 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 Dsubnetmod.c361 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 Ddns.c1119 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 Ddns.h95 int dns_cache_store(struct module_env* env, struct query_info* qinf,
/freebsd/contrib/unbound/dnstap/
H A Dunbound-dnstap-socket.c617 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 Dcachedump.c630 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()