Home
last modified time | relevance | path

Searched refs:qclass (Results 1 – 25 of 69) sorted by relevance

123

/freebsd/contrib/unbound/services/cache/
H A Ddns.c149 uint16_t qtype, uint16_t qclass, uint16_t flags) in msg_cache_remove() argument
157 k.qclass = qclass; in msg_cache_remove()
203 qinfo->qtype, qinfo->qclass, flags); in dns_cache_store_msg()
220 uint16_t qclass, time_t now, uint16_t searchtype, int stripfront, in find_closest_of_type() argument
236 qnamelen, searchtype, qclass, 0, now, 0); in find_closest_of_type()
241 qnamelen, searchtype, qclass, in find_closest_of_type()
262 &qnamelen, searchtype, qclass, now, expiretop, in find_closest_of_type()
270 searchtype, qclass, 0, now, 0))) { in find_closest_of_type()
274 …(VERB_ALGO, "ignoring rrset because expired rrsets exist above it", origqname, searchtype, qclass); in find_closest_of_type()
303 uint16_t qtype, uint16_t qclass, uint16_t flags, time_t now, int wr) in msg_cache_lookup() argument
[all …]
H A Ddns.h149 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
198 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
211 int cache_fill_missing(struct module_env* env, uint16_t qclass,
226 uint16_t qclass, struct regional* region, size_t capacity);
268 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
281 uint16_t qtype, uint16_t qclass, uint16_t flags);
H A Drrset.c297 uint16_t qtype, uint16_t qclass, uint32_t flags, time_t timenow, in rrset_cache_lookup() argument
308 key.rk.rrset_class = htons(qclass); in rrset_cache_lookup()
474 qnamelen, uint16_t searchtype, uint16_t qclass, time_t now, uint8_t* in rrset_cache_remove_above() argument
496 *qnamelen, searchtype, qclass, 0, 0, 0))) { in rrset_cache_remove_above()
505 *qname, searchtype, qclass); in rrset_cache_remove_above()
509 *qname, searchtype, qclass); in rrset_cache_remove_above()
512 rrset_cache_remove(r, *qname, *qnamelen, searchtype, qclass, 0); in rrset_cache_remove_above()
518 qnamelen, uint16_t searchtype, uint16_t qclass, time_t now, uint8_t* in rrset_cache_expired_above() argument
534 *qnamelen, searchtype, qclass, 0, 0, 0))) { in rrset_cache_expired_above()
540 log_nametypeclass(VERB_ALGO, "this rrset is expired", *qname, searchtype, qclass); in rrset_cache_expired_above()
H A Drrset.h169 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
246 size_t* qnamelen, uint16_t searchtype, uint16_t qclass, time_t now,
262 size_t* qnamelen, uint16_t searchtype, uint16_t qclass, time_t now,
/freebsd/contrib/unbound/iterator/
H A Diter_hints.h61 * first sorted on qclass. Then on dname in nsec-like order, so that
111 * @param qclass: class for which root hints are requested. host order.
116 uint16_t qclass, int nolock);
121 * @param qclass: class for which root hints are requested. host order.
126 uint16_t qclass, int nolock);
133 * @param qclass: class for which root hints are sought.
139 * false if not root hint class is found (qclass may have been changed).
141 int hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock);
144 * Given a qname/qclass combination, and the delegation point from the cache
145 * for this qname/qclass, determin
[all...]
H A Diter_fwd.h61 * first sorted on qclass. Then on dname in nsec-like order, so that
122 * @param qclass: The qclass of the query.
127 uint16_t qclass, int nolock);
131 * For this qname/qclass find forward zone information, returns delegation
141 * @param qclass: The qclass of the query.
147 uint8_t* qname, uint16_t qclass, int nolock);
152 * @param qclass: The qclass o
[all...]
H A Diterator.c245 if(!cache_fill_missing(super->env, super_iq->qchase.qclass, in error_supers()
313 qstate->qinfo.qtype, qstate->qinfo.qclass, in error_response_cache()
686 uint16_t qclass, int* have_dp, struct delegpt** retdp, in can_have_last_resort() argument
695 (dp = hints_find(env->hints, nm, qclass, nolock)) && in can_have_last_resort()
708 if((dp = forwards_find(env->fwds, nm, qclass, nolock)) && in can_have_last_resort()
729 iq->qchase.qclass) != NULL; in is_caps_whitelisted()
799 uint16_t qclass, struct module_qstate* qstate, int id, in generate_sub_request() argument
813 qinf.qclass = qclass; in generate_sub_request()
898 uint16_t qclass) in prime_root() argument
904 sldns_lookup_by_id(sldns_rr_classes, (int)qclass)? in prime_root()
[all …]
H A Diter_hints.c487 hints_find(struct iter_hints* hints, uint8_t* qname, uint16_t qclass, in hints_find() argument
497 qname, len, labs, qclass); in hints_find()
504 hints_find_root(struct iter_hints* hints, uint16_t qclass, int nolock) in hints_find_root() argument
507 return hints_find(hints, &rootlab, qclass, nolock); in hints_find_root()
512 uint16_t qclass, struct delegpt* cache_dp, int nolock) in hints_lookup_stub() argument
523 len, labs, qclass); in hints_lookup_stub()
554 int hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock) in hints_next_root() argument
559 ret = name_tree_next_root(&hints->tree, qclass); in hints_next_root()
H A Diter_fwd.c422 forwards_find(struct iter_forwards* fwd, uint8_t* qname, uint16_t qclass, in forwards_find() argument
429 key.dclass = qclass; in forwards_find()
441 forwards_lookup(struct iter_forwards* fwd, uint8_t* qname, uint16_t qclass, in forwards_lookup() argument
450 key.dclass = qclass; in forwards_lookup()
462 if(!result || result->dclass != qclass) { in forwards_lookup()
481 forwards_lookup_root(struct iter_forwards* fwd, uint16_t qclass, int nolock) in forwards_lookup_root() argument
484 return forwards_lookup(fwd, &root, qclass, nolock); in forwards_lookup_root()
H A Diter_resptype.c81 ntohs(s->rk.rrset_class) == request->qclass && in response_type_from_cache()
170 ntohs(s->rk.rrset_class) == request->qclass && in response_type_from_server()
184 ntohs(s->rk.rrset_class) == request->qclass && in response_type_from_server()
H A Diter_utils.c805 qinf.qclass = c; in causes_cycle()
823 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass) || in iter_mark_cycle_targets()
825 LDNS_RR_TYPE_A, qstate->qinfo.qclass)) { in iter_mark_cycle_targets()
830 qstate->qinfo.qclass); in iter_mark_cycle_targets()
845 LDNS_RR_TYPE_A, qstate->qinfo.qclass)) { in iter_mark_pside_cycle_targets()
848 LDNS_RR_TYPE_A, qstate->qinfo.qclass); in iter_mark_pside_cycle_targets()
852 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass)) { in iter_mark_pside_cycle_targets()
855 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass); in iter_mark_pside_cycle_targets()
923 qinfo->qclass))) { in iter_qname_indicates_dnssec()
1269 neg->rk.rrset_class = htons(qinfo->qclass); in iter_store_parentside_neg()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/net/
H A Dh_dns_server.c363 int qtype, qclass; in main() local
383 qclass = *p++ << 8; in main()
384 qclass |= *p++; in main()
385 if (qclass != 1) { /* IN */ in main()
386 DPRINTF("no match class %d != 1\n", qclass); in main()
389 DPRINTF("match class %d\n", qclass); in main()
/freebsd/contrib/unbound/ipsecmod/
H A Dipsecmod-whitelist.c141 size_t dname_len, uint16_t qclass) in ipsecmod_domain_is_whitelisted() argument
145 dname_count_labels(dname), qclass) != NULL; in ipsecmod_domain_is_whitelisted()
H A Dipsecmod.c114 qstate->qinfo.qname_len, qstate->qinfo.qclass); in ipsecmod_new()
144 size_t namelen, uint16_t qtype, uint16_t qclass, uint16_t flags) in generate_request() argument
151 ask.qclass = qclass; in generate_request()
501 qstate->qinfo.qclass, 0)) { in ipsecmod_handle_response()
H A Dipsecmod-whitelist.h73 size_t dname_len, uint16_t qclass);
/freebsd/contrib/unbound/contrib/
H A Dunbound-querycachedb.py16 qclass = 'IN' # CLASS is fixed for simplicity
21 socket.htons(dns.rdataclass.from_text(qclass))))
/freebsd/contrib/unbound/validator/
H A Dval_neg.c378 uint8_t* nm, size_t nm_len, int labs, uint16_t qclass) in neg_closest_zone_parent() argument
387 key.dclass = qclass; in neg_closest_zone_parent()
395 if(!result || result->dclass != qclass) in neg_closest_zone_parent()
1072 uint16_t qtype, uint16_t qclass, uint32_t flags, in grab_nsec() argument
1077 qname, qname_len, qtype, qclass, flags, now, 0); in grab_nsec()
1117 uint16_t qclass, struct rrset_cache* rrset_cache, time_t now, in neg_find_nsec() argument
1129 qclass); in neg_find_nsec()
1432 nsec = neg_find_nsec(neg, qinfo->qname, qinfo->qname_len, qinfo->qclass, in val_neg_getmsg()
1444 qinfo->qtype, qinfo->qclass, region, 2))) in val_neg_getmsg()
1459 qinfo->qtype, qinfo->qclass, region, 3))) in val_neg_getmsg()
[all …]
H A Dvalidator.c472 size_t namelen, uint16_t qtype, uint16_t qclass, uint16_t flags, in generate_request() argument
481 ask.qclass = qclass; in generate_request()
1860 vq->qchase.qclass = ntohs(vq->orig_msg->rep-> in processInit()
1883 lookup_name, lookup_len, vq->qchase.qclass); in processInit()
1908 lookup_name, lookup_len, vq->qchase.qclass); in processInit()
1939 vq->qchase.qclass, qstate->region, *qstate->env->now); in processInit()
2043 vq->qchase.qclass, BIT_CD, &newq, 0)) { in processFindKey()
2116 vq->qchase.qclass, BIT_CD, &newq, 0)) { in processFindKey()
2153 target_key_len, vq->qchase.qclass, qstate->region, in processFindKey()
2168 target_key_len, LDNS_RR_TYPE_DS, vq->qchase.qclass, in processFindKey()
[all …]
/freebsd/contrib/unbound/dynlibmod/examples/
H A Dhelloworld.c67 sldns_lookup_by_id(sldns_rr_classes, qstate->qinfo.qclass)->name, in operate()
68 qstate->qinfo.qclass, in operate()
/freebsd/contrib/unbound/util/data/
H A Dmsgreply.c92 qinf->qclass = msg->qclass; in parse_create_qinfo()
683 m->qclass = sldns_buffer_read_u16(query); in query_info_parse()
705 COMPARE_IT(msg1->qclass, msg2->qclass); in query_info_compare()
757 h = hashlittle(&q->qclass, sizeof(q->qclass), h); in query_info_hash()
777 lock_protect(&e->entry.lock, &e->key.qclass, sizeof(e->key.qclass)); in query_info_entrysetup()
878 ntohs(s->rk.rrset_class) == qinfo->qclass && in reply_find_final_cname_target()
899 ntohs(s->rk.rrset_class) == qinfo->qclass && in reply_find_answer_rrset()
906 ntohs(s->rk.rrset_class) == qinfo->qclass && in reply_find_answer_rrset()
1058 sldns_wire2str_class_buf(qinf->qclass, class_buf, sizeof(class_buf)); in log_reply_info()
1075 log_nametypeclass(v, str, qinf->qname, qinf->qtype, qinf->qclass); in log_query_info()
/freebsd/contrib/unbound/edns-subnet/
H A Dsubnet-whitelist.c189 size_t qname_len, uint16_t qclass) in ecs_is_whitelisted() argument
197 qclass) != NULL; in ecs_is_whitelisted()
H A Dsubnet-whitelist.h102 size_t qname_len, uint16_t qclass);
/freebsd/contrib/unbound/libunbound/
H A Dunbound.h129 int qclass; member
728 long long qclass[UB_STATS_QCLASS_NUM]; member
/freebsd/contrib/unbound/daemon/
H A Dstats.c514 total->svr.qclass[i] += a->svr.qclass[i]; in server_stats_add()
539 uint16_t qtype, uint16_t qclass, struct edns_data* edns, in server_stats_insquery() argument
546 if(qclass < UB_STATS_QCLASS_NUM) in server_stats_insquery()
547 stats->qclass[qclass]++; in server_stats_insquery()
/freebsd/lib/libc/net/
H A Dhesiod.c346 get_txt_records(int qclass, const char *name) in get_txt_records() argument
358 n = res_mkquery(QUERY, name, qclass, T_TXT, NULL, 0, in get_txt_records()
411 if (class != qclass || type != T_TXT) { in get_txt_records()

123