/freebsd-10-stable/contrib/unbound/validator/ |
H A D | val_nsec.h | 62 * @param qinfo: the DS queried for. 74 struct val_env* ve, struct query_info* qinfo, 106 * @param qinfo: the query info. 114 struct query_info* qinfo, uint8_t** wc); 161 * @param qinfo: what was queried for. 169 int val_nsec_check_dlv(struct query_info* qinfo, 175 * @param qinfo: what was queries for. 180 struct query_info* qinfo);
|
H A D | val_nsec.c | 143 * @param qinfo: what is queried for. 150 struct query_info* qinfo) 152 log_assert(qinfo->qtype == LDNS_RR_TYPE_DS); 155 if(nsec_has_type(nsec, LDNS_RR_TYPE_SOA) && qinfo->qname_len != 1) { 198 struct query_info* qinfo, struct reply_info* rep, 202 rep, qinfo->qname, qinfo->qname_len, LDNS_RR_TYPE_NSEC, 203 qinfo->qclass); 221 sec = val_nsec_proves_no_ds(nsec, qinfo); 250 if(nsec_proves_nodata(rep->rrsets[i], qinfo, 149 val_nsec_proves_no_ds(struct ub_packed_rrset_key* nsec, struct query_info* qinfo) argument 197 val_nsec_prove_nodata_dsreply(struct module_env* env, struct val_env* ve, struct query_info* qinfo, struct reply_info* rep, struct key_entry_key* kkey, time_t* proof_ttl, char** reason) argument 286 nsec_proves_nodata(struct ub_packed_rrset_key* nsec, struct query_info* qinfo, uint8_t** wc) argument 450 val_nsec_proves_insecuredelegation(struct ub_packed_rrset_key* nsec, struct query_info* qinfo) argument 566 val_nsec_check_dlv(struct query_info* qinfo, struct reply_info* rep, uint8_t** nm, size_t* nm_len) argument [all...] |
H A D | val_nsec3.h | 109 * @param qinfo: query that is verified for. 118 struct query_info* qinfo, struct key_entry_key* kkey); 143 * @param qinfo: query that is verified for. 152 struct query_info* qinfo, struct key_entry_key* kkey); 163 * @param qinfo: query that is verified for. 174 struct query_info* qinfo, struct key_entry_key* kkey, uint8_t* wc); 185 * @param qinfo: query that is verified for. 197 struct query_info* qinfo, struct key_entry_key* kkey, char** reason); 206 * @param qinfo: query that is verified for. 217 struct query_info* qinfo, struc [all...] |
H A D | val_nsec3.c | 400 * @param qinfo: 407 size_t num, struct query_info* qinfo) 416 filter->fclass = qinfo->qclass; 420 ntohs(list[i]->rk.rrset_class) != qinfo->qclass) 433 if(dname_subdomain_c(qinfo->qname, nm) && (!filter->zone || 436 if(qinfo->qtype == LDNS_RR_TYPE_DS && 437 query_dname_compare(qinfo->qname, nm) == 0 && 438 !dname_is_root(qinfo->qname)) 866 * @param qinfo: query that is verified for. 872 rbtree_t* ct, struct query_info* qinfo, struc 406 filter_init(struct nsec3_filter* filter, struct ub_packed_rrset_key** list, size_t num, struct query_info* qinfo) argument 871 nsec3_find_closest_encloser(struct module_env* env, struct nsec3_filter* flt, rbtree_t* ct, struct query_info* qinfo, struct ce_response* ce) argument 938 nsec3_prove_closest_encloser(struct module_env* env, struct nsec3_filter* flt, rbtree_t* ct, struct query_info* qinfo, int prove_does_not_exist, struct ce_response* ce) argument 1018 nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, rbtree_t* ct, struct query_info* qinfo) argument 1061 nsec3_prove_nameerror(struct module_env* env, struct val_env* ve, struct ub_packed_rrset_key** list, size_t num, struct query_info* qinfo, struct key_entry_key* kkey) argument 1088 nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, rbtree_t* ct, struct query_info* qinfo) argument 1220 nsec3_prove_nodata(struct module_env* env, struct val_env* ve, struct ub_packed_rrset_key** list, size_t num, struct query_info* qinfo, struct key_entry_key* kkey) argument 1239 nsec3_prove_wildcard(struct module_env* env, struct val_env* ve, struct ub_packed_rrset_key** list, size_t num, struct query_info* qinfo, struct key_entry_key* kkey, uint8_t* wc) argument 1313 nsec3_prove_nods(struct module_env* env, struct val_env* ve, struct ub_packed_rrset_key** list, size_t num, struct query_info* qinfo, struct key_entry_key* kkey, char** reason) argument 1401 nsec3_prove_nxornodata(struct module_env* env, struct val_env* ve, struct ub_packed_rrset_key** list, size_t num, struct query_info* qinfo, struct key_entry_key* kkey, int* nodata) argument [all...] |
H A D | validator.c | 67 struct query_info* qinfo, struct sock_list* origin); 210 vq->orig_msg->qinfo = qstate->qinfo; 222 vq->qchase = qstate->qinfo; 323 if(qstate->qinfo.qtype == LDNS_RR_TYPE_RRSIG && 1319 qstate->query_flags, &qstate->qinfo, &vq->qchase, 1395 qstate->qinfo.qtype == LDNS_RR_TYPE_DNSKEY && 1396 query_dname_compare(lookup_name, qstate->qinfo.qname) == 0) { 1613 msg, &msg->qinfo, NULL); 1700 subtype = val_classify_response(qstate->query_flags, &qstate->qinfo, 2438 ds_response_to_ke(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo, struct key_entry_key** ke) argument 2656 process_ds_response(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo, struct sock_list* origin) argument 2729 process_dnskey_response(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo, struct sock_list* origin) argument 2899 process_dlv_response(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo) argument [all...] |
H A D | val_neg.c | 932 struct query_info qinfo; local 998 qinfo.qname = qname; 999 qinfo.qtype = LDNS_RR_TYPE_DLV; 1000 qinfo.qclass = qclass; 1001 if(!nsec_proves_nodata(nsec, &qinfo, &wc) && 1391 val_neg_getmsg(struct val_neg_cache* neg, struct query_info* qinfo, argument 1403 if(qinfo->qtype != LDNS_RR_TYPE_DS) 1405 log_assert(!topname || dname_subdomain_c(qinfo->qname, topname)); 1412 rrset = grab_nsec(rrset_cache, qinfo->qname, qinfo [all...] |
/freebsd-10-stable/contrib/unbound/util/data/ |
H A D | msgencode.h | 79 * @param qinfo: query info to store. 91 int reply_info_encode(struct query_info* qinfo, struct reply_info* rep, 98 * @param qinfo: query info. 100 void qinfo_query_encode(struct sldns_buffer* pkt, struct query_info* qinfo); 122 * @param qinfo: if not NULL, the query is included. 128 void error_encode(struct sldns_buffer* pkt, int r, struct query_info* qinfo,
|
H A D | msgencode.c | 581 insert_query(struct query_info* qinfo, struct compress_tree_node** tree, argument 585 qinfo->qname_len+sizeof(uint16_t)*2) 588 if(!compress_tree_store(qinfo->qname, 589 dname_count_labels(qinfo->qname), 592 if(sldns_buffer_current(buffer) == qinfo->qname) 593 sldns_buffer_skip(buffer, (ssize_t)qinfo->qname_len); 594 else sldns_buffer_write(buffer, qinfo->qname, qinfo->qname_len); 595 sldns_buffer_write_u16(buffer, qinfo->qtype); 596 sldns_buffer_write_u16(buffer, qinfo 626 reply_info_encode(struct query_info* qinfo, struct reply_info* rep, uint16_t id, uint16_t flags, sldns_buffer* buffer, time_t timenow, struct regional* region, uint16_t udpsize, int dnssec) argument 789 qinfo_query_encode(sldns_buffer* pkt, struct query_info* qinfo) argument 805 error_encode(sldns_buffer* buf, int r, struct query_info* qinfo, uint16_t qid, uint16_t qflags, struct edns_data* edns) argument [all...] |
H A D | msgreply.h | 352 * Find final cname target in reply, the one matching qinfo. Follows CNAMEs. 353 * @param qinfo: what to start with. 357 uint8_t* reply_find_final_cname_target(struct query_info* qinfo, 362 * @param qinfo: query info with query name. 366 int reply_check_cname_chain(struct query_info* qinfo, struct reply_info* rep); 377 * Find answer rrset in reply, the one matching qinfo. Follows CNAMEs, so the 379 * @param qinfo: what to look for. 383 struct ub_packed_rrset_key* reply_find_answer_rrset(struct query_info* qinfo, 425 * @param qinfo: query section. 428 void log_dns_msg(const char* str, struct query_info* qinfo, [all...] |
/freebsd-10-stable/contrib/unbound/iterator/ |
H A D | iter_scrub.h | 57 * @param qinfo: the query info that was sent to the server. Checked. 66 struct query_info* qinfo, uint8_t* zonename, struct regional* regional,
|
H A D | iter_utils.h | 168 * @param qinfo: query name and type 173 int iter_dp_is_useless(struct query_info* qinfo, uint16_t qflags, 265 * @param qinfo: the identity of the rrset that is missing. 270 struct query_info* qinfo, struct reply_info* rep); 279 * @param qinfo: pertinent information, the qclass. 285 struct delegpt* dp, struct regional* region, struct query_info* qinfo); 294 * @param qinfo: pertinent information, the qclass. 299 struct delegpt* dp, struct regional* region, struct query_info* qinfo); 349 * @param qinfo: the query name looked up. 354 int iter_dp_cangodown(struct query_info* qinfo, struc [all...] |
H A D | iter_utils.c | 447 if(!parse_create_msg(pkt, msg, NULL, &m->qinfo, &m->rep, region)) { 461 m->qinfo = from->qinfo; 462 if(!(m->qinfo.qname = regional_alloc_init(region, from->qinfo.qname, 463 from->qinfo.qname_len))) 518 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass) || 520 LDNS_RR_TYPE_A, qstate->qinfo.qclass)) { 525 qstate->qinfo.qclass); 540 LDNS_RR_TYPE_A, qstate->qinfo 557 iter_dp_is_useless(struct query_info* qinfo, uint16_t qflags, struct delegpt* dp) argument 845 iter_store_parentside_neg(struct module_env* env, struct query_info* qinfo, struct reply_info* rep) argument 905 iter_lookup_parent_NS_from_cache(struct module_env* env, struct delegpt* dp, struct regional* region, struct query_info* qinfo) argument 925 iter_lookup_parent_glue_from_cache(struct module_env* env, struct delegpt* dp, struct regional* region, struct query_info* qinfo) argument 1102 iter_dp_cangodown(struct query_info* qinfo, struct delegpt* dp) argument [all...] |
H A D | iter_scrub.c | 326 * @param qinfo: original query. 332 struct query_info* qinfo, struct regional* region) 334 uint8_t* sname = qinfo->qname; 335 size_t snamelen = qinfo->qname_len; 450 if(qinfo->qtype == LDNS_RR_TYPE_ANY) { 463 if(qinfo->qtype != LDNS_RR_TYPE_ANY && 464 qinfo->qtype != rrset->type) { 473 if(dname_pkt_compare(pkt, qinfo->qname, rrset->dname) == 0) 493 if(!sub_of_pkt(pkt, qinfo->qname, rrset->dname)) { 627 * @param qinfo 331 scrub_normalize(sldns_buffer* pkt, struct msg_parse* msg, struct query_info* qinfo, struct regional* region) argument 634 scrub_sanitize(sldns_buffer* pkt, struct msg_parse* msg, struct query_info* qinfo, uint8_t* zonename, struct module_env* env, struct iter_env* ie) argument 755 scrub_message(sldns_buffer* pkt, struct msg_parse* msg, struct query_info* qinfo, uint8_t* zonename, struct regional* region, struct module_env* env, struct iter_env* ie) argument [all...] |
H A D | iterator.c | 163 iq->qchase = qstate->qinfo; 228 if(qstate->qinfo.qtype == LDNS_RR_TYPE_A || 229 qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA) { 234 qstate->qinfo.qname, qstate->qinfo.qname_len); 238 log_query_info(VERB_ALGO, "superq", &super->qinfo); 253 if(qstate->qinfo.qtype == LDNS_RR_TYPE_NS) { 299 if(dns_cache_prefetch_adjust(qstate->env, &qstate->qinfo, 313 iter_dns_store(qstate->env, &qstate->qinfo, &err, 0, 0, 0, NULL, 613 subiq->qchase = subq->qinfo; [all...] |
/freebsd-10-stable/contrib/unbound/dns64/ |
H A D | dns64.c | 369 struct query_info qinfo; local 375 if (!ptr_to_ipv6((char*)qstate->qinfo.qname, sin6.sin6_addr.s6_addr)) 394 qinfo = qstate->qinfo; 395 if (!(qinfo.qname = regional_alloc(qstate->region, MAX_PTR_QNAME_IPV4))) 397 qinfo.qname_len = ipv4_to_ptr(extract_ipv4(sin6.sin6_addr.s6_addr, 398 dns64_env->prefix_net), (char*)qinfo.qname); 402 if(!(*qstate->env->attach_sub)(qstate, &qinfo, qstate->query_flags, 0, 0, 443 struct query_info qinfo; local 448 qinfo [all...] |
/freebsd-10-stable/contrib/unbound/services/cache/ |
H A D | dns.h | 57 struct query_info qinfo; member in struct:dns_msg 91 * Both qinfo and rep should be malloced and are put in the cache. 96 * @param qinfo: query info 97 * @param hash: hash over qinfo. 98 * @param rep: reply info, together with qinfo makes up the message. 108 void dns_cache_store_msg(struct module_env* env, struct query_info* qinfo, 189 * @param qinfo: query info for the query that needs adjustment. 194 int dns_cache_prefetch_adjust(struct module_env* env, struct query_info* qinfo,
|
H A D | dns.c | 108 dns_cache_store_msg(struct module_env* env, struct query_info* qinfo, argument 136 if(!(e = query_info_entrysetup(qinfo, rep, hash))) { 324 msg->qinfo.qclass, 0, now, 0); 329 dp->namelen, LDNS_RR_TYPE_NSEC, msg->qinfo.qclass, 358 msg->qinfo.qname = regional_alloc_init(region, qname, qnamelen); 359 if(!msg->qinfo.qname) 361 msg->qinfo.qname_len = qnamelen; 362 msg->qinfo.qtype = qtype; 363 msg->qinfo.qclass = qclass; 461 memcpy(&msg->qinfo, 882 dns_cache_prefetch_adjust(struct module_env* env, struct query_info* qinfo, time_t adjust, uint16_t flags) argument [all...] |
/freebsd-10-stable/contrib/unbound/services/ |
H A D | mesh.h | 160 /** the query state. Note that the qinfo and query_flags 215 /** qname from this query. len same as mesh qinfo. */ 272 * @param qinfo: query from client. 278 void mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo, 288 * @param qinfo: query from client. 297 int mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo, 306 * @param qinfo: query from client. 310 void mesh_new_prefetch(struct mesh_area* mesh, struct query_info* qinfo, 353 * @param qinfo: what to query for (copied). 361 int mesh_attach_sub(struct module_qstate* qstate, struct query_info* qinfo, [all...] |
H A D | mesh.c | 150 return query_info_compare(&a->s.qinfo, &b->s.qinfo); 258 m->s.qinfo.qname, m->s.qinfo.qtype, 259 m->s.qinfo.qclass); 271 /* restore the query - note that the qinfo ptr to 281 void mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo, argument 285 struct mesh_state* s = mesh_area_find(mesh, qinfo, qflags&(BIT_RD|BIT_CD), 0, 0); 315 s = mesh_state_create(mesh->env, qinfo, qflags&(BIT_RD|BIT_CD), 0, 0); 319 qinfo, qi 375 mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo, uint16_t qflags, struct edns_data* edns, sldns_buffer* buf, uint16_t qid, mesh_cb_func_t cb, void* cb_arg) argument 429 mesh_new_prefetch(struct mesh_area* mesh, struct query_info* qinfo, uint16_t qflags, time_t leeway) argument 499 mesh_state_create(struct module_env* env, struct query_info* qinfo, uint16_t qflags, int prime, int valrec) argument 683 mesh_attach_sub(struct module_qstate* qstate, struct query_info* qinfo, uint16_t qflags, int prime, int valrec, struct module_qstate** newq) argument 947 mesh_area_find(struct mesh_area* mesh, struct query_info* qinfo, uint16_t qflags, int prime, int valrec) argument 1186 mesh_detect_cycle(struct module_qstate* qstate, struct query_info* qinfo, uint16_t flags, int prime, int valrec) argument [all...] |
H A D | localzone.c | 953 local_encode(struct query_info* qinfo, struct edns_data* edns, argument 973 if(!reply_info_answer_encode(qinfo, &rep, 978 error_encode(buf, (LDNS_RCODE_SERVFAIL|BIT_AA), qinfo, 986 local_data_answer(struct local_zone* z, struct query_info* qinfo, argument 994 key.name = qinfo->qname; 995 key.namelen = qinfo->qname_len; 1007 lr = local_data_find_type(ld, qinfo->qtype); 1013 r.rk.dname = qinfo->qname; 1014 r.rk.dname_len = qinfo->qname_len; 1015 return local_encode(qinfo, edn 1033 lz_zone_answer(struct local_zone* z, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf, struct regional* temp, struct local_data* ld) argument 1089 lz_inform_print(struct local_zone* z, struct query_info* qinfo, struct comm_reply* repinfo) argument 1103 local_zones_answer(struct local_zones* zones, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf, struct regional* temp, struct comm_reply* repinfo) argument [all...] |
/freebsd-10-stable/contrib/unbound/util/ |
H A D | module.h | 256 * @param qinfo: what to query for (copied). 265 struct query_info* qinfo, uint16_t qflags, int prime, 281 * @param qinfo: query info for dependency. 291 struct query_info* qinfo, uint16_t flags, int prime, 398 struct query_info qinfo; member in struct:module_qstate
|
H A D | fptr_wlist.h | 235 struct module_qstate* qstate, struct query_info* qinfo, 253 struct module_qstate* qstate, struct query_info* qinfo,
|
/freebsd-10-stable/contrib/unbound/libunbound/ |
H A D | libworker.c | 568 /** setup qinfo and edns */ 571 struct query_info* qinfo, struct edns_data* edns) 573 qinfo->qtype = (uint16_t)q->res->qtype; 574 qinfo->qclass = (uint16_t)q->res->qclass; 575 qinfo->qname = sldns_str2wire_dname(q->res->qname, &qinfo->qname_len); 576 if(!qinfo->qname) { 594 struct query_info qinfo; local 598 if(!setup_qinfo_edns(w, q, &qinfo, &edns)) { 608 if(local_zones_answer(ctx->local_zones, &qinfo, 570 setup_qinfo_edns(struct libworker* w, struct ctx_query* q, struct query_info* qinfo, struct edns_data* edns) argument 666 struct query_info qinfo; local 774 struct query_info qinfo; local [all...] |
/freebsd-10-stable/contrib/unbound/daemon/ |
H A D | worker.c | 461 answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, argument 482 dp = dns_cache_find_delegation(&worker->env, qinfo->qname, 483 qinfo->qname_len, qinfo->qtype, qinfo->qclass, 503 &msg->qinfo, id, flags, edns); 531 if(!reply_info_answer_encode(&msg->qinfo, msg->rep, id, flags, 535 &msg->qinfo, id, flags, edns); 547 answer_from_cache(struct worker* worker, struct query_info* qinfo, argument 571 if(!reply_check_cname_chain(qinfo, re 640 reply_and_prefetch(struct worker* worker, struct query_info* qinfo, uint16_t flags, struct comm_reply* repinfo, time_t leeway) argument 704 answer_chaos(struct worker* w, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* pkt) argument 799 struct query_info qinfo; local [all...] |
H A D | cachedump.c | 533 /** read qinfo from next three words */ 535 load_qinfo(char* str, struct query_info* qinfo, struct regional* region) argument 562 qinfo->qtype = sldns_wirerr_get_type(rr, rr_len, dname_len); 563 qinfo->qclass = sldns_wirerr_get_class(rr, rr_len, dname_len); 564 qinfo->qname_len = dname_len; 565 qinfo->qname = (uint8_t*)regional_alloc_init(region, rr, dname_len); 566 if(!qinfo->qname) { 581 struct query_info qinfo; local 593 s = load_qinfo(s, &qinfo, region); 603 k = rrset_cache_lookup(worker->env.rrset_cache, qinfo 822 struct query_info qinfo; local [all...] |