/freebsd/contrib/unbound/validator/ |
H A D | val_nsec.c | 209 rep, qinfo->qname, qinfo->qname_len, LDNS_RR_TYPE_NSEC, in val_nsec_prove_nodata_dsreply() 270 if(val_nsec_proves_name_error(rep->rrsets[i], qinfo->qname)) { in val_nsec_prove_nodata_dsreply() 271 ce = nsec_closest_encloser(qinfo->qname, in val_nsec_prove_nodata_dsreply() 302 if(query_dname_compare(nsec->rk.dname, qinfo->qname) != 0) { in nsec_proves_nodata() 315 if(dname_strict_subdomain_c(nm, qinfo->qname) && in nsec_proves_nodata() 317 qinfo->qname) < 0) { in nsec_proves_nodata() 337 if(dname_strict_subdomain_c(qinfo->qname, ce)) { in nsec_proves_nodata() 361 if (dname_subdomain_c(qinfo->qname, nm)) in nsec_proves_nodata() 370 if(dname_strict_subdomain_c(qinfo->qname, ce)) { in nsec_proves_nodata() 405 !dname_is_root(qinfo->qname)) { in nsec_proves_nodata() [all …]
|
H A D | val_neg.c | 950 uint8_t* qname, size_t len, int labs, struct val_neg_data** data) in neg_closest_data() argument 955 key.name = qname; in neg_closest_data() 1060 grab_nsec(struct rrset_cache* rrset_cache, uint8_t* qname, size_t qname_len, in grab_nsec() argument 1066 qname, qname_len, qtype, qclass, flags, now, 0); in grab_nsec() 1109 neg_find_nsec(struct val_neg_cache* neg_cache, uint8_t* qname, size_t qname_len, in neg_find_nsec() argument 1119 labs = dname_count_labels(qname); in neg_find_nsec() 1121 zone = neg_closest_zone_parent(neg_cache, qname, qname_len, labs, in neg_find_nsec() 1137 (void)neg_closest_data(zone, qname, qname_len, labs, &data); in neg_find_nsec() 1165 neg_find_nsec3_ce(struct val_neg_zone* zone, uint8_t* qname, size_t qname_len, in neg_find_nsec3_ce() argument 1176 if(!(celen=nsec3_get_hashed(buf, qname, qname_len, in neg_find_nsec3_ce() [all …]
|
H A D | val_nsec.h | 132 uint8_t* qname); 152 uint8_t* nsec_closest_encloser(uint8_t* qname, 163 int val_nsec_proves_no_wc(struct ub_packed_rrset_key* nsec, uint8_t* qname,
|
/freebsd/contrib/unbound/services/cache/ |
H A D | dns.c | 139 msg_cache_remove(struct module_env* env, uint8_t* qname, size_t qnamelen, in msg_cache_remove() argument 145 k.qname = qname; in msg_cache_remove() 191 msg_cache_remove(env, qinfo->qname, qinfo->qname_len, in dns_cache_store_msg() 208 find_closest_of_type(struct module_env* env, uint8_t* qname, size_t qnamelen, in find_closest_of_type() argument 217 lablen = *qname; in find_closest_of_type() 218 qname += lablen + 1; in find_closest_of_type() 224 if((rrset = rrset_cache_lookup(env->rrset_cache, qname, in find_closest_of_type() 226 uint8_t* origqname = qname; in find_closest_of_type() 234 query_dname_compare(qname, expiretop)==0) in find_closest_of_type() 243 if(!rrset_cache_expired_above(env->rrset_cache, &qname, in find_closest_of_type() [all …]
|
H A D | rrset.c | 280 rrset_cache_lookup(struct rrset_cache* r, uint8_t* qname, size_t qnamelen, in rrset_cache_lookup() argument 289 key.rk.dname = qname; in rrset_cache_lookup() 448 rrset_cache_remove_above(struct rrset_cache* r, uint8_t** qname, size_t* in rrset_cache_remove_above() argument 457 lablen = **qname; in rrset_cache_remove_above() 458 *qname += lablen + 1; in rrset_cache_remove_above() 465 query_dname_compare(*qname, qnametop)==0) in rrset_cache_remove_above() 470 if((rrset = rrset_cache_lookup(r, *qname, in rrset_cache_remove_above() 480 *qname, searchtype, qclass); in rrset_cache_remove_above() 484 *qname, searchtype, qclass); in rrset_cache_remove_above() 487 rrset_cache_remove(r, *qname, *qnamelen, searchtype, qclass, 0); in rrset_cache_remove_above() [all …]
|
H A D | dns.h | 146 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, 222 struct dns_msg* dns_msg_create(uint8_t* qname, size_t qnamelen, uint16_t qtype, 265 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, 277 void msg_cache_remove(struct module_env* env, uint8_t* qname, size_t qnamelen,
|
H A D | rrset.h | 169 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, 245 void rrset_cache_remove_above(struct rrset_cache* r, uint8_t** qname, 261 int rrset_cache_expired_above(struct rrset_cache* r, uint8_t** qname,
|
/freebsd/contrib/ldns/drill/ |
H A D | drill.c | 114 ldns_rdf *qname; in main() local 181 qname = NULL; src = NULL; in main() 735 qname = ldns_dname_new_frm_str(name); in main() 736 if (!qname) { in main() 740 do_trace(res, qname, type, clas); in main() 748 qname = ldns_dname_new_frm_str(name); in main() 749 if (!qname) { in main() 754 result = do_secure_trace(res, qname, type, clas, key_list, trace_start_name); in main() 759 qname = ldns_dname_new_frm_str(name); in main() 760 if (!qname) { in main() [all …]
|
H A D | dnssec.c | 302 ldns_nsec3_exact_match(ldns_rdf *qname, ldns_rr_type qtype, ldns_rr_list *nsec3s) { in ldns_nsec3_exact_match() argument 326 ldns_rdf_print(stdout, qname); in ldns_nsec3_exact_match() 330 if (!qname || !nsec3s || ldns_rr_list_rr_count(nsec3s) < 1) { in ldns_nsec3_exact_match() 346 sname = ldns_rdf_clone(qname); in ldns_nsec3_exact_match() 402 ldns_nsec3_closest_encloser(ldns_rdf *qname, ldns_rr_type qtype, ldns_rr_list *nsec3s) in ldns_nsec3_closest_encloser() argument 422 if (!qname || !nsec3s || ldns_rr_list_rr_count(nsec3s) < 1) { in ldns_nsec3_closest_encloser() 428 ldns_rdf_print(stdout, qname); in ldns_nsec3_closest_encloser() 441 sname = ldns_rdf_clone(qname); in ldns_nsec3_closest_encloser()
|
/freebsd/sbin/ipfw/ |
H A D | altq.c | 119 if (strcmp(name, altq->qname) == 0) in altq_name_to_qid() 137 return altq->qname; in altq_qid_to_name() 144 const char *qname; in print_altq_cmd() local 146 qname = altq_qid_to_name(altqptr->qid); in print_altq_cmd() 147 if (qname == NULL) in print_altq_cmd() 150 bprintf(bp, " altq %s", qname); in print_altq_cmd()
|
/freebsd/sys/dev/ciss/ |
H A D | cissvar.h | 301 #define CISSQ_ADD(sc, qname) \ argument 303 struct ciss_qstat *qs = &(sc)->ciss_qstat[qname]; \ 310 #define CISSQ_REMOVE(sc, qname) (sc)->ciss_qstat[qname].q_length-- argument 311 #define CISSQ_INIT(sc, qname) \ argument 313 sc->ciss_qstat[qname].q_length = 0; \ 314 sc->ciss_qstat[qname].q_max = 0; \
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_resptype.c | 69 uint8_t* mname = request->qname; in response_type_from_cache() 97 if(mname != request->qname) { in response_type_from_cache() 133 query_dname_compare(request->qname, in response_type_from_server() 155 uint8_t* mname = request->qname; in response_type_from_server() 208 if(mname != request->qname) { in response_type_from_server() 221 dname_subdomain_c(request->qname, s->rk.dname)) { in response_type_from_server()
|
H A D | iterator.c | 244 qstate->qinfo.qname, qstate->qinfo.qname_len); in error_supers() 322 qstate->qinfo.qname, qstate->qinfo.qname_len, in error_response_cache() 547 *mname = iq->qchase.qname; in handle_cname_response() 737 return name_tree_lookup(ie->caps_white, iq->qchase.qname, in is_caps_whitelisted() 738 iq->qchase.qname_len, dname_count_labels(iq->qchase.qname), in is_caps_whitelisted() 808 generate_sub_request(uint8_t* qname, size_t qnamelen, uint16_t qtype, in generate_sub_request() argument 820 qinf.qname = qname; in generate_sub_request() 974 uint8_t* qname, uint16_t qclass) in prime_stub() argument 983 if(!qname) return 0; in prime_stub() 984 stub = hints_lookup_stub(qstate->env->hints, qname, qclass, iq->dp, in prime_stub() [all …]
|
H A D | iter_utils.c | 685 if(!(m->qinfo.qname = regional_alloc_init(region, from->qinfo.qname, in dns_copy_msg() 721 qinf.qname = name; in causes_cycle() 821 dname_subdomain_c(qinfo->qname, dp->name) && in iter_dp_is_useless() 822 delegpt_find_ns(dp, qinfo->qname, qinfo->qname_len)) in iter_dp_is_useless() 838 if(!env || !env->anchors || !qinfo || !qinfo->qname) in iter_qname_indicates_dnssec() 841 if((a=anchors_lookup(env->anchors, qinfo->qname, qinfo->qname_len, in iter_qname_indicates_dnssec() 1190 neg->rk.dname = regional_alloc_init(env->scratch, qinfo->qname, in iter_store_parentside_neg() 1427 if(dname_subdomain_c(s->rk.dname, msg->qinfo.qname)) in iter_ds_toolow() 1453 if(query_dname_compare(qinfo->qname, dp->name) == 0) in iter_dp_cangodown() 1456 if(dname_count_labels(qinfo->qname) == dp->namelabs+1) in iter_dp_cangodown() [all …]
|
/freebsd/contrib/unbound/contrib/ |
H A D | unbound-querycachedb.py | 15 def _calc_hashkey(qname, secret, qtype): argument 18 hobj.update(dns.name.from_text(qname).to_wire()) 29 def _dump_value(options, qname, key, value): argument 30 print(';; query=%s/IN/%s' % (qname, options.qtype))
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_altq.c | 138 if (a->qname[0] == 0) { in pfaltq_store() 145 key_size = sizeof(a->ifname) + sizeof(a->qname); in pfaltq_store() 148 snprintf(item.key, key_size, "%s:%s", a->ifname, a->qname); in pfaltq_store() 153 item.key = altq->pa.qname; in pfaltq_store() 174 qname_to_pfaltq(const char *qname, const char *ifname) in qname_to_pfaltq() argument 181 snprintf(item.key, sizeof(key), "%s:%s", ifname, qname); in qname_to_pfaltq() 189 qname_to_qid(char *qname) in qname_to_qid() argument 199 item.key = qname; in qname_to_qid() 211 if (a->qname[0] != 0) { in print_altq() 271 printf("%s ", a->qname); in print_queue() [all …]
|
/freebsd/contrib/unbound/ipset/ |
H A D | ipset.c | 226 struct ub_packed_rrset_key *rrset, const char *qname, int qlen, in ipset_check_zones_for_rrset() argument 244 if (qname[qlen - 1] == '.') { in ipset_check_zones_for_rrset() 259 if (qlen == plen || (qlen > plen && qname[qlen - plen - 1] == '.' )) { in ipset_check_zones_for_rrset() 260 qs = qname + (qlen - plen); in ipset_check_zones_for_rrset() 279 static char qname[BUFF_LEN]; in ipset_update() local 294 qlen = sldns_wire2str_dname_buf(qinfo.qname, qinfo.qname_len, in ipset_update() 295 qname, BUFF_LEN); in ipset_update() 315 if(ipset_check_zones_for_rrset(env, ie, rrset, qname, in ipset_update()
|
/freebsd/contrib/unbound/util/data/ |
H A D | msgreply.c | 82 if(msg->qname) { in parse_create_qinfo() 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() 554 qinf->qname = NULL; in reply_info_parse() 649 m->qname = sldns_buffer_current(query); in query_info_parse() 674 if((mc = query_dname_compare(msg1->qname, msg2->qname)) != 0) in query_info_compare() 685 free(m->qname); in query_info_clear() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_dns.c | 244 const char *qname = req->questions[i]->name; in dns_server_request_cb() local 250 !evutil_ascii_strcasecmp(qname, "zz.example.com")) { in dns_server_request_cb() 251 r = evdns_server_request_add_a_reply(req, qname, in dns_server_request_cb() 257 !evutil_ascii_strcasecmp(qname, "zz.example.com")) { in dns_server_request_cb() 260 qname, 1, addr6, 123); in dns_server_request_cb() 265 !evutil_ascii_strcasecmp(qname, TEST_ARPA)) { in dns_server_request_cb() 267 qname, "ZZ.EXAMPLE.COM", 54321); in dns_server_request_cb() 272 !evutil_ascii_strcasecmp(qname, TEST_IN6)){ in dns_server_request_cb() 274 qname, in dns_server_request_cb() 280 !evutil_ascii_strcasecmp(qname, "drop.example.com")) { in dns_server_request_cb() [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress_dns.c | 244 const char *qname = req->questions[i]->name; in dns_server_request_cb() local 250 !evutil_ascii_strcasecmp(qname, "zz.example.com")) { in dns_server_request_cb() 251 r = evdns_server_request_add_a_reply(req, qname, in dns_server_request_cb() 257 !evutil_ascii_strcasecmp(qname, "zz.example.com")) { in dns_server_request_cb() 260 qname, 1, addr6, 123); in dns_server_request_cb() 265 !evutil_ascii_strcasecmp(qname, TEST_ARPA)) { in dns_server_request_cb() 267 qname, "ZZ.EXAMPLE.COM", 54321); in dns_server_request_cb() 272 !evutil_ascii_strcasecmp(qname, TEST_IN6)){ in dns_server_request_cb() 274 qname, in dns_server_request_cb() 280 !evutil_ascii_strcasecmp(qname, "drop.example.com")) { in dns_server_request_cb() [all …]
|
/freebsd/contrib/unbound/libunbound/ |
H A D | libworker.c | 459 if(query_dname_compare(rq->qname, answer->rk.dname) != 0) { in fill_res() 584 qinfo->qname = sldns_str2wire_dname(q->res->qname, &qinfo->qname_len); in setup_qinfo_edns() 585 if(!qinfo->qname) { in setup_qinfo_edns() 630 free(qinfo.qname); in libworker_fg() 639 free(qinfo.qname); in libworker_fg() 645 free(qinfo.qname); in libworker_fg() 648 free(qinfo.qname); in libworker_fg() 707 free(qinfo.qname); in libworker_attach_mesh() 715 free(qinfo.qname); in libworker_attach_mesh() 725 free(qinfo.qname); in libworker_attach_mesh() [all …]
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_altq.h | 137 char qname[PF_QNAME_SIZE]; /* queue name */ member 169 char qname[PF_QNAME_SIZE]; /* queue name */ member 205 char qname[PF_QNAME_SIZE]; /* queue name */ member
|
/freebsd/lib/libc/net/ |
H A D | gethostbydns.c | 135 gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, in gethostanswer() argument 150 tname = qname; in gethostanswer() 198 qname = he->h_name; in gethostanswer() 293 qname, p_class(C_IN), p_type(qtype), in gethostanswer() 303 AskedForGot, qname, bp); in gethostanswer() 412 n = strlen(qname) + 1; /* for the \0 */ in gethostanswer() 415 strcpy(bp, qname); in gethostanswer() 431 __dns_getanswer(const char *answer, int anslen, const char *qname, int qtype) in __dns_getanswer() argument 456 error = gethostanswer((const querybuf *)answer, anslen, qname, qtype, in __dns_getanswer()
|
/freebsd/contrib/unbound/edns-subnet/ |
H A D | subnet-whitelist.c | 188 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* qname, in ecs_is_whitelisted() argument 195 labs = dname_count_labels(qname); in ecs_is_whitelisted() 196 return name_tree_lookup(&whitelist->dname, qname, qname_len, labs, in ecs_is_whitelisted()
|
/freebsd/contrib/pf/ftp-proxy/ |
H A D | filter.c | 62 static const char *qname, *tagname; variable 175 qname = opt_qname; in init_filter() 307 if (qname != NULL) in prepare_rule() 308 strlcpy(pfrule.qname, qname, sizeof pfrule.qname); in prepare_rule()
|