Home
last modified time | relevance | path

Searched refs:qtype (Results 1 – 25 of 116) sorted by relevance

12345

/openbsd/usr.sbin/unbound/ipsecmod/
H A Dipsecmod.c150 ask.qtype = qtype; in generate_request()
254 int w = 0, w_temp, qtype; in call_hook() local
301 qtype = ntohs(rrset_key->rk.type); in call_hook()
302 if(qtype != LDNS_RR_TYPE_AAAA && qtype != LDNS_RR_TYPE_A) { in call_hook()
317 rrset_data->rr_len[i] - 2, s, slen, qstate->qinfo.qtype); in call_hook()
400 if(qstate->qinfo.qtype == LDNS_RR_TYPE_A || in ipsecmod_handle_query()
401 qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA) { in ipsecmod_handle_query()
403 sldns_wire2str_type_buf(qstate->qinfo.qtype, type, in ipsecmod_handle_query()
484 if((qstate->qinfo.qtype == LDNS_RR_TYPE_A || in ipsecmod_handle_response()
485 qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA) && in ipsecmod_handle_response()
[all …]
/openbsd/sbin/unwind/libunbound/services/cache/
H A Ddns.h146 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
195 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
221 struct dns_msg* dns_msg_create(uint8_t* qname, size_t qnamelen, uint16_t qtype,
264 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
277 uint16_t qtype, uint16_t qclass, uint16_t flags);
H A Ddns.c138 k.qtype = qtype; in msg_cache_remove()
183 qinfo->qtype, qinfo->qclass, flags); in dns_cache_store_msg()
321 k.qtype = qtype; in msg_cache_lookup()
494 msg->qinfo.qtype = qtype; in dns_msg_create()
931 k.qtype = qtype; in dns_cache_lookup()
1010 if((qtype == LDNS_RR_TYPE_DS || qtype == LDNS_RR_TYPE_DNSKEY) && in dns_cache_lookup()
1012 qtype, qclass, 0, now, 0))) { in dns_cache_lookup()
1024 (qtype == LDNS_RR_TYPE_DS || in dns_cache_lookup()
1050 k.qtype = LDNS_RR_TYPE_A; in dns_cache_lookup()
1072 k.qtype = qtype; in dns_cache_lookup()
[all …]
H A Dinfra.c521 int dnsseclame, int reclame, uint16_t qtype) in infra_set_lame() argument
545 if(!dnsseclame && !reclame && qtype == LDNS_RR_TYPE_A) in infra_set_lame()
547 if(!dnsseclame && !reclame && qtype != LDNS_RR_TYPE_A) in infra_set_lame()
604 if(qtype == LDNS_RR_TYPE_A) { in infra_rtt_update()
607 } else if(qtype == LDNS_RR_TYPE_AAAA) { in infra_rtt_update()
622 if(qtype == LDNS_RR_TYPE_A) in infra_rtt_update()
624 else if(qtype == LDNS_RR_TYPE_AAAA) in infra_rtt_update()
696 uint8_t* name, size_t namelen, uint16_t qtype, in infra_get_lame_rtt() argument
715 if(qtype == LDNS_RR_TYPE_A) { in infra_get_lame_rtt()
719 } else if(qtype == LDNS_RR_TYPE_AAAA) { in infra_get_lame_rtt()
[all …]
H A Dinfra.h274 int reclame, uint16_t qtype);
292 socklen_t addrlen, uint8_t* name, size_t namelen, int qtype,
343 uint8_t* name, size_t namelen, uint16_t qtype,
/openbsd/usr.sbin/unbound/services/cache/
H A Ddns.h146 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
195 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
221 struct dns_msg* dns_msg_create(uint8_t* qname, size_t qnamelen, uint16_t qtype,
264 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
277 uint16_t qtype, uint16_t qclass, uint16_t flags);
H A Ddns.c138 k.qtype = qtype; in msg_cache_remove()
183 qinfo->qtype, qinfo->qclass, flags); in dns_cache_store_msg()
321 k.qtype = qtype; in msg_cache_lookup()
494 msg->qinfo.qtype = qtype; in dns_msg_create()
931 k.qtype = qtype; in dns_cache_lookup()
1010 if((qtype == LDNS_RR_TYPE_DS || qtype == LDNS_RR_TYPE_DNSKEY) && in dns_cache_lookup()
1012 qtype, qclass, 0, now, 0))) { in dns_cache_lookup()
1024 (qtype == LDNS_RR_TYPE_DS || in dns_cache_lookup()
1050 k.qtype = LDNS_RR_TYPE_A; in dns_cache_lookup()
1072 k.qtype = qtype; in dns_cache_lookup()
[all …]
H A Dinfra.c521 int dnsseclame, int reclame, uint16_t qtype) in infra_set_lame() argument
545 if(!dnsseclame && !reclame && qtype == LDNS_RR_TYPE_A) in infra_set_lame()
547 if(!dnsseclame && !reclame && qtype != LDNS_RR_TYPE_A) in infra_set_lame()
604 if(qtype == LDNS_RR_TYPE_A) { in infra_rtt_update()
607 } else if(qtype == LDNS_RR_TYPE_AAAA) { in infra_rtt_update()
622 if(qtype == LDNS_RR_TYPE_A) in infra_rtt_update()
624 else if(qtype == LDNS_RR_TYPE_AAAA) in infra_rtt_update()
696 uint8_t* name, size_t namelen, uint16_t qtype, in infra_get_lame_rtt() argument
715 if(qtype == LDNS_RR_TYPE_A) { in infra_get_lame_rtt()
719 } else if(qtype == LDNS_RR_TYPE_AAAA) { in infra_get_lame_rtt()
[all …]
H A Dinfra.h274 int reclame, uint16_t qtype);
292 socklen_t addrlen, uint8_t* name, size_t namelen, int qtype,
343 uint8_t* name, size_t namelen, uint16_t qtype,
/openbsd/usr.sbin/unbound/iterator/
H A Diter_resptype.c59 if(request->qtype == LDNS_RR_TYPE_ANY) in response_type_from_cache()
80 if(ntohs(s->rk.type) == request->qtype && in response_type_from_cache()
167 if((request->qtype == LDNS_RR_TYPE_ANY || in response_type_from_server()
168 request->qtype == LDNS_RR_TYPE_NS) && in response_type_from_server()
183 if(ntohs(s->rk.type) == request->qtype && in response_type_from_server()
203 if(request->qtype == LDNS_RR_TYPE_ANY) in response_type_from_server()
H A Diterator.c234 if(qstate->qinfo.qtype == LDNS_RR_TYPE_A || in error_supers()
235 qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA) { in error_supers()
320 qstate->qinfo.qtype, qstate->qinfo.qclass, in error_response_cache()
790 qinf.qtype = qtype; in generate_sub_request()
1565 (iq->qchase.qtype == LDNS_RR_TYPE_NS && in processInitRequest()
1851 uint16_t qtype, uint16_t qclass) in generate_parentside_target_query() argument
2492 iq->qinfo_out.qtype = LDNS_RR_TYPE_A; in processQueryTargets()
2579 iq->qinfo_out.qtype, in processQueryTargets()
3125 iq->qchase.qtype != iq->response->qinfo.qtype, in processQueryResponse()
3182 iq->response->qinfo.qtype, in processQueryResponse()
[all …]
/openbsd/sbin/unwind/libunbound/iterator/
H A Diter_resptype.c59 if(request->qtype == LDNS_RR_TYPE_ANY) in response_type_from_cache()
80 if(ntohs(s->rk.type) == request->qtype && in response_type_from_cache()
167 if((request->qtype == LDNS_RR_TYPE_ANY || in response_type_from_server()
168 request->qtype == LDNS_RR_TYPE_NS) && in response_type_from_server()
183 if(ntohs(s->rk.type) == request->qtype && in response_type_from_server()
203 if(request->qtype == LDNS_RR_TYPE_ANY) in response_type_from_server()
H A Diterator.c234 if(qstate->qinfo.qtype == LDNS_RR_TYPE_A || in error_supers()
235 qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA) { in error_supers()
320 qstate->qinfo.qtype, qstate->qinfo.qclass, in error_response_cache()
790 qinf.qtype = qtype; in generate_sub_request()
1565 (iq->qchase.qtype == LDNS_RR_TYPE_NS && in processInitRequest()
1851 uint16_t qtype, uint16_t qclass) in generate_parentside_target_query() argument
2492 iq->qinfo_out.qtype = LDNS_RR_TYPE_A; in processQueryTargets()
2579 iq->qinfo_out.qtype, in processQueryTargets()
3125 iq->qchase.qtype != iq->response->qinfo.qtype, in processQueryResponse()
3182 iq->response->qinfo.qtype, in processQueryResponse()
[all …]
/openbsd/usr.sbin/unbound/util/data/
H A Dmsgencode.c428 if(qtype == LDNS_RR_TYPE_ANY || qtype == rrtype) in rrset_belongs_in_reply()
563 s, qtype, dnssec, rr_offset)) in insert_section()
576 s, qtype, dnssec, rr_offset)) in insert_section()
587 s, qtype, dnssec, rr_offset)) in insert_section()
616 sldns_buffer_write_u16(buffer, qinfo->qtype); in insert_query()
628 if(ntohs(rep->rrsets[i]->rk.type) == qtype) { in positive_answer()
630 if(qtype == LDNS_RR_TYPE_NS) in positive_answer()
758 LDNS_SECTION_AUTHORITY, qinfo->qtype, in reply_info_encode()
775 &tree, LDNS_SECTION_ADDITIONAL, qinfo->qtype, in reply_info_encode()
1065 sldns_buffer_write_u16(pkt, qinfo->qtype); in qinfo_query_encode()
[all …]
/openbsd/sbin/unwind/libunbound/util/data/
H A Dmsgencode.c428 if(qtype == LDNS_RR_TYPE_ANY || qtype == rrtype) in rrset_belongs_in_reply()
563 s, qtype, dnssec, rr_offset)) in insert_section()
576 s, qtype, dnssec, rr_offset)) in insert_section()
587 s, qtype, dnssec, rr_offset)) in insert_section()
616 sldns_buffer_write_u16(buffer, qinfo->qtype); in insert_query()
628 if(ntohs(rep->rrsets[i]->rk.type) == qtype) { in positive_answer()
630 if(qtype == LDNS_RR_TYPE_NS) in positive_answer()
758 LDNS_SECTION_AUTHORITY, qinfo->qtype, in reply_info_encode()
775 &tree, LDNS_SECTION_ADDITIONAL, qinfo->qtype, in reply_info_encode()
1065 sldns_buffer_write_u16(pkt, qinfo->qtype); in qinfo_query_encode()
[all …]
/openbsd/usr.sbin/nsd/
H A Daxfr.c199 (q->qtype==TYPE_AXFR?"axfr":"ixfr"), in axfr_ixfr_can_admit_query()
221 (q->qtype==TYPE_AXFR?"axfr":"ixfr"), in axfr_ixfr_can_admit_query()
225 (q->qtype==TYPE_AXFR?"axfr":"ixfr"), in axfr_ixfr_can_admit_query()
238 (q->qtype==TYPE_AXFR?"axfr":"ixfr"), in axfr_ixfr_can_admit_query()
244 (q->qtype==TYPE_AXFR?"axfr":"ixfr"), in axfr_ixfr_can_admit_query()
257 switch (q->qtype) { in answer_axfr_ixfr()
H A Dquery.c234 q->qtype = 0; in query_reset()
319 &query->qtype, &query->qclass)) in process_query_section()
555 switch (q->qtype) { in answer_chaos()
743 return (query->qtype != TYPE_DNSKEY && query->qtype != TYPE_DS in answer_needs_ns()
744 && query->qtype != TYPE_ANY); in answer_needs_ns()
764 query->qtype != TYPE_NS) in add_rrset()
1017 if (q->qtype == TYPE_ANY) { in answer_domain()
1199 if(q->qtype == TYPE_CNAME) { in answer_authoritative()
1368 } else if(q->qtype == TYPE_SOA in answer_lookup_zone()
1527 ZTATUP2(nsd, q->zone, qtype, q->qtype); in answer_query()
[all …]
H A Dipc.c170 int packet_read_query_section(buffer_type *packet, uint8_t* dest, uint16_t* qtype, uint16_t* qclass…
175 uint16_t qtype, qclass; in debug_print_fwd_name() local
182 if(packet_read_query_section(packet, qnamebuf, &qtype, &qclass)) { in debug_print_fwd_name()
246 for(i=0; i<sizeof(total->qtype)/sizeof(stc_type); i++) in stats_add()
247 total->qtype[i] += s->qtype[i]; in stats_add()
280 for(i=0; i<sizeof(total->qtype)/sizeof(stc_type); i++) in stats_subtract()
281 total->qtype[i] -= s->qtype[i]; in stats_subtract()
/openbsd/sbin/unwind/libunbound/validator/
H A Dval_nsec.c152 log_assert(qinfo->qtype == LDNS_RR_TYPE_DS); in val_nsec_proves_no_ds()
347 if(nsec_has_type(nsec, qinfo->qtype)) { in nsec_proves_nodata()
383 if(nsec_has_type(nsec, qinfo->qtype)) { in nsec_proves_nodata()
397 if(qinfo->qtype != LDNS_RR_TYPE_DS && in nsec_proves_nodata()
401 } else if(qinfo->qtype == LDNS_RR_TYPE_DS && in nsec_proves_nodata()
467 if(qinfo->qtype == LDNS_RR_TYPE_DS) { in val_nsec_proves_insecuredelegation()
/openbsd/usr.sbin/unbound/validator/
H A Dval_nsec.c152 log_assert(qinfo->qtype == LDNS_RR_TYPE_DS); in val_nsec_proves_no_ds()
347 if(nsec_has_type(nsec, qinfo->qtype)) { in nsec_proves_nodata()
383 if(nsec_has_type(nsec, qinfo->qtype)) { in nsec_proves_nodata()
397 if(qinfo->qtype != LDNS_RR_TYPE_DS && in nsec_proves_nodata()
401 } else if(qinfo->qtype == LDNS_RR_TYPE_DS && in nsec_proves_nodata()
467 if(qinfo->qtype == LDNS_RR_TYPE_DS) { in val_nsec_proves_insecuredelegation()
/openbsd/usr.sbin/unbound/respip/
H A Drespip.c666 uint16_t qtype, const struct reply_info* rep, in respip_data_answer() argument
688 dataqinfo.qtype = ntohs(rep->rrsets[rrset_id]->rk.type); in respip_data_answer()
723 if(qtype == LDNS_RR_TYPE_ANY) in respip_data_answer()
778 if(qtype == LDNS_RR_TYPE_ANY) in respip_nodata_answer()
998 (data) ? data : raddr->data, qinfo->qtype, rep, in respip_rewrite_reply()
1028 qinfo->qtype != LDNS_RR_TYPE_ANY) in respip_rewrite_reply()
1055 subqi.qtype = qstate->qinfo.qtype; in generate_cname_request()
1091 if((qstate->qinfo.qtype == LDNS_RR_TYPE_A || in respip_operate()
1092 qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA || in respip_operate()
1093 qstate->qinfo.qtype == LDNS_RR_TYPE_ANY) && in respip_operate()
[all …]
/openbsd/sbin/unwind/libunbound/respip/
H A Drespip.c666 uint16_t qtype, const struct reply_info* rep, in respip_data_answer() argument
688 dataqinfo.qtype = ntohs(rep->rrsets[rrset_id]->rk.type); in respip_data_answer()
723 if(qtype == LDNS_RR_TYPE_ANY) in respip_data_answer()
778 if(qtype == LDNS_RR_TYPE_ANY) in respip_nodata_answer()
998 (data) ? data : raddr->data, qinfo->qtype, rep, in respip_rewrite_reply()
1028 qinfo->qtype != LDNS_RR_TYPE_ANY) in respip_rewrite_reply()
1055 subqi.qtype = qstate->qinfo.qtype; in generate_cname_request()
1091 if((qstate->qinfo.qtype == LDNS_RR_TYPE_A || in respip_operate()
1092 qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA || in respip_operate()
1093 qstate->qinfo.qtype == LDNS_RR_TYPE_ANY) && in respip_operate()
[all …]
/openbsd/usr.sbin/unbound/daemon/
H A Dworker.c595 if(qinfo->qtype != LDNS_RR_TYPE_A && in apply_respip_action()
596 qinfo->qtype != LDNS_RR_TYPE_AAAA && in apply_respip_action()
597 qinfo->qtype != LDNS_RR_TYPE_ANY) in apply_respip_action()
1002 if(qinfo->qtype != LDNS_RR_TYPE_ANY && qinfo->qtype != LDNS_RR_TYPE_TXT) in answer_chaos()
1531 qinfo.qtype == LDNS_RR_TYPE_IXFR) { in worker_handle_request()
1540 worker->stats.qtype[qinfo.qtype]++; in worker_handle_request()
1545 qinfo.qtype == LDNS_RR_TYPE_TSIG || in worker_handle_request()
1549 (qinfo.qtype >= 128 && qinfo.qtype <= 248)) { in worker_handle_request()
1562 worker->stats.qtype[qinfo.qtype]++; in worker_handle_request()
1802 (qinfo.qtype == LDNS_RR_TYPE_A || in worker_handle_request()
[all …]
/openbsd/usr.sbin/unbound/testcode/
H A Dstreamtcp.c164 qinfo.qtype = LDNS_RR_TYPE_IXFR; in write_q()
167 qinfo.qtype = LDNS_RR_TYPE_SOA; in write_q()
172 qinfo.qtype = LDNS_RR_TYPE_SOA; in write_q()
174 qinfo.qtype = sldns_get_rr_type_by_name(strtype); in write_q()
175 if(qinfo.qtype == 0 && strcmp(strtype, "TYPE0") != 0) { in write_q()
195 if(have_serial && qinfo.qtype == LDNS_RR_TYPE_IXFR) { in write_q()
H A Ddohclient.c218 make_query(char* qname, char* qtype, char* qclass) in make_query() argument
229 qinfo.qtype = sldns_get_rr_type_by_name(qtype); in make_query()
230 if(qinfo.qtype == 0 && strcmp(qtype, "TYPE0") != 0) { in make_query()
231 printf("cannot parse query type: '%s'\n", qtype); in make_query()

12345