| /src/external/bsd/unbound/dist/services/cache/ |
| dns.h | 63 struct query_info qinfo; member in struct:dns_msg 104 * Both qinfo and rep should be malloced and are put in the cache. 109 * @param qinfo: query info 110 * @param hash: hash over qinfo. 111 * @param rep: reply info, together with qinfo makes up the message. 124 void dns_cache_store_msg(struct module_env* env, struct query_info* qinfo, 257 * @param qinfo: query info for the query that needs adjustment. 262 int dns_cache_prefetch_adjust(struct module_env* env, struct query_info* qinfo,
|
| /src/usr.sbin/altq/altqstat/ |
| qdisc_wfq.c | 68 struct wfqinfo *qinfo, **top; local 86 if ((qinfo = malloc(nqueues * sizeof(struct wfqinfo))) == NULL) 109 qinfo[i].qid = i; 110 qinfo[i].stats = wfq_stats.stats; 120 qinfo[i].bps = calc_rate(qinfo[i].stats.xmit_cnt.bytes, 121 qinfo[i].last_bytes, sec); 122 qinfo[i].last_bytes = qinfo[i].stats.xmit_cnt.bytes; 126 top[j] = &qinfo[i] [all...] |
| /src/external/bsd/unbound/dist/testcode/ |
| dohclient.c | 220 struct query_info qinfo; local 224 qinfo.qname = sldns_str2wire_dname(qname, &qinfo.qname_len); 225 if(!qinfo.qname) { 229 qinfo.qtype = sldns_get_rr_type_by_name(qtype); 230 if(qinfo.qtype == 0 && strcmp(qtype, "TYPE0") != 0) { 234 qinfo.qclass = sldns_get_rr_class_by_name(qclass); 235 if(qinfo.qclass == 0 && strcmp(qclass, "CLASS0") != 0) { 239 qinfo.local_alias = NULL; 241 qinfo_query_encode(buf, &qinfo); /* flips buffer * [all...] |
| streamtcp.c | 122 write_soa_serial_to_buf(sldns_buffer* buf, struct query_info* qinfo, 130 sldns_buffer_write_u16(buf, qinfo->qclass); 149 struct query_info qinfo; local 154 qinfo.qname = sldns_str2wire_dname(strname, &qinfo.qname_len); 155 if(!qinfo.qname) { 164 qinfo.qtype = LDNS_RR_TYPE_IXFR; 167 qinfo.qtype = LDNS_RR_TYPE_SOA; 172 qinfo.qtype = LDNS_RR_TYPE_SOA; 174 qinfo.qtype = sldns_get_rr_type_by_name(strtype) [all...] |
| unitverify.c | 118 struct query_info qinfo; local 122 entry_to_repinfo(e, alloc, region, pkt, &qinfo, &rep); 133 query_info_clear(&qinfo); 139 should_be_bogus(struct ub_packed_rrset_key* rrset, struct query_info* qinfo) 148 if(qinfo->qname_len > 6 && memcmp(qinfo->qname+1, "bogus", 5)==0) 184 struct query_info* qinfo) 205 if(should_be_bogus(rrset, qinfo)) { 219 struct query_info qinfo; local 230 entry_to_repinfo(e, alloc, region, pkt, &qinfo, &rep) 257 struct query_info qinfo; local 432 struct query_info qinfo; local [all...] |
| perf.c | 452 struct query_info qinfo; local 459 qinfo.qtype = sldns_get_rr_type_by_name(cl); 460 qinfo.qclass = sldns_get_rr_class_by_name(tp); 461 if((qinfo.qtype == 0 && strcmp(cl, "TYPE0") != 0) || 462 (qinfo.qclass == 0 && strcmp(tp, "CLASS0") != 0)) { 466 qinfo.qtype = sldns_get_rr_type_by_name(tp); 467 qinfo.qclass = sldns_get_rr_class_by_name(cl); 468 if((qinfo.qtype == 0 && strcmp(tp, "TYPE0") != 0) || 469 (qinfo.qclass == 0 && strcmp(cl, "CLASS0") != 0)) { 478 qinfo.qname = sldns_str2wire_dname(nm, &qinfo.qname_len) [all...] |
| unitauth.c | 751 struct query_info** qinfo, int* fallback, uint8_t** dp_nm, 778 *qinfo = (struct query_info*)regional_alloc_zero(region, 779 sizeof(**qinfo)); 780 if(!*qinfo) fatal_exit("out of memory"); 781 (*qinfo)->qname = regional_alloc_init(region, buf, dname_len); 782 if(!(*qinfo)->qname) fatal_exit("out of memory"); 783 (*qinfo)->qname_len = dname_len; 784 (*qinfo)->qtype = sldns_wirerr_get_type(buf, len, dname_len); 785 (*qinfo)->qclass = sldns_wirerr_get_class(buf, len, dname_len); 904 q_ans_query(struct q_ans* q, struct auth_zones* az, struct query_info* qinfo, 961 struct query_info* qinfo; local [all...] |
| doqclient.c | 327 struct query_info qinfo; local 331 qinfo.qname = sldns_str2wire_dname(qname, &qinfo.qname_len); 332 if(!qinfo.qname) { 337 qinfo.qtype = sldns_get_rr_type_by_name(qtype); 338 qinfo.qclass = sldns_get_rr_class_by_name(qclass); 339 qinfo.local_alias = NULL; 341 qinfo_query_encode(buf, &qinfo); /* flips buffer */ 342 free(qinfo.qname); 2591 struct query_info* ATTR_UNUSED(qinfo), uint16_t ATTR_UNUSED(flags) [all...] |
| unitmain.c | 1033 static void edns_ede_encode_encodedecode(struct query_info* qinfo, 1039 reply_info_answer_encode(qinfo, rep, 1, rep->flags, pkt, 1069 static void edns_ede_encode_fit_test(struct query_info* qinfo, 1079 edns_ede_encode_encodedecode(qinfo, rep, region, &edns, pkt); 1090 static void edns_ede_encode_notxt_fit_test( struct query_info* qinfo, 1104 + qinfo->qname_len 1110 edns_ede_encode_encodedecode(qinfo, rep, region, &edns, pkt); 1121 static void edns_ede_encode_no_fit_test( struct query_info* qinfo, 1134 + qinfo->qname_len 1140 edns_ede_encode_encodedecode(qinfo, rep, region, &edns, pkt) 1157 struct query_info qinfo; local [all...] |
| /src/external/bsd/unbound/dist/dns64/ |
| dns64.c | 464 struct query_info qinfo; local 470 if (!ptr_to_ipv6((char*)qstate->qinfo.qname, sin6.sin6_addr.s6_addr, 490 qinfo = qstate->qinfo; 491 if (!(qinfo.qname = regional_alloc(qstate->region, MAX_PTR_QNAME_IPV4))) 493 qinfo.qname_len = ipv4_to_ptr(extract_ipv4(sin6.sin6_addr.s6_addr, 495 (char*)qinfo.qname, MAX_PTR_QNAME_IPV4); 499 if(!(*qstate->env->attach_sub)(qstate, &qinfo, qstate->query_flags, 0, 0, 515 struct query_info qinfo; local 520 qinfo = qstate->qinfo [all...] |
| /src/external/bsd/unbound/dist/libunbound/ |
| libworker.c | 576 /** setup qinfo and edns */ 579 struct query_info* qinfo, struct edns_data* edns) 581 qinfo->qtype = (uint16_t)q->res->qtype; 582 qinfo->qclass = (uint16_t)q->res->qclass; 583 qinfo->local_alias = NULL; 584 qinfo->qname = sldns_str2wire_dname(q->res->qname, &qinfo->qname_len); 585 if(!qinfo->qname) { 609 struct query_info qinfo; local 613 if(!setup_qinfo_edns(w, q, &qinfo, &edns)) 692 struct query_info qinfo; local 819 struct query_info qinfo; local [all...] |
| /src/external/bsd/unbound/dist/validator/ |
| val_utils.c | 1305 struct query_info qinfo; local 1325 qinfo.qname = nm; 1326 qinfo.qname_len = nmlen; 1327 qinfo.qtype = LDNS_RR_TYPE_DS; 1328 qinfo.qclass = c; 1329 qinfo.local_alias = NULL; 1331 msg = val_neg_getmsg(env->neg_cache, &qinfo, region, env->rrset_cache,
|
| autotrust.c | 2377 struct query_info qinfo; local 2381 qinfo.qname = regional_alloc_init(env->scratch, tp->name, tp->namelen); 2382 if(!qinfo.qname) { 2386 qinfo.qname_len = tp->namelen; 2387 qinfo.qtype = LDNS_RR_TYPE_DNSKEY; 2388 qinfo.qclass = tp->dclass; 2389 qinfo.local_alias = NULL; 2390 log_query_info(VERB_ALGO, "autotrust probe", &qinfo); 2413 rrset_cache_remove(env->rrset_cache, qinfo.qname, qinfo.qname_len [all...] |
| /src/sys/arch/arm/xscale/ |
| ixp425_qmgr.c | 145 struct qmgrInfo qinfo[IX_QMGR_MAX_NUM_QUEUES]; member in struct:ixpqmgr_softc 270 struct qmgrInfo *qi = &sc->qinfo[i]; 358 struct qmgrInfo *qi = &sc->qinfo[qId]; 379 /* Write the config register; NB must be AFTER qinfo setup */ 402 struct qmgrInfo *qi = &sc->qinfo[qId]; 471 struct qmgrInfo *qi = &sc->qinfo[qId]; 500 struct qmgrInfo *qi = &sc->qinfo[qId]; 541 const struct qmgrInfo *qi = &sc->qinfo[qId]; 683 qi = &sc->qinfo[q]; 698 qi = &sc->qinfo[q] [all...] |
| /src/external/bsd/unbound/dist/daemon/ |
| cachedump.c | 661 /** read qinfo from next three words */ 663 load_qinfo(char* str, struct query_info* qinfo, struct regional* region) 690 qinfo->qtype = sldns_wirerr_get_type(rr, rr_len, dname_len); 691 qinfo->qclass = sldns_wirerr_get_class(rr, rr_len, dname_len); 692 qinfo->qname_len = dname_len; 693 qinfo->qname = (uint8_t*)regional_alloc_init(region, rr, dname_len); 694 qinfo->local_alias = NULL; 695 if(!qinfo->qname) { 710 struct query_info qinfo; local 722 s = load_qinfo(s, &qinfo, region) 969 struct query_info qinfo; local [all...] |
| worker.c | 552 answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, 574 dp = dns_cache_find_delegation(&worker->env, qinfo->qname, 575 qinfo->qname_len, qinfo->qtype, qinfo->qclass, 583 msg->qinfo.local_alias = qinfo->local_alias; 597 if(!inplace_cb_reply_servfail_call(&worker->env, qinfo, NULL, 609 &msg->qinfo, id, flags, edns); 637 if(!inplace_cb_reply_cache_call(&worker->env, qinfo, NULL, msg->rep 1455 struct query_info qinfo; local [all...] |
| remote.c | 3037 char* t = sldns_wire2str_type(sub->s->s.qinfo.qtype); 3038 char* c = sldns_wire2str_class(sub->s->s.qinfo.qclass); 3039 dname_str(sub->s->s.qinfo.qname, nm); 3070 char* t = sldns_wire2str_type(m->s.qinfo.qtype); 3071 char* c = sldns_wire2str_class(m->s.qinfo.qclass); 3072 dname_str(m->s.qinfo.qname, buf); 7339 struct query_info qinfo; local 7341 qinfo.qname_len = z->namelen; 7342 qinfo.qname = z->name; 7343 qinfo.qclass = z->dclass [all...] |
| /src/external/bsd/unbound/dist/services/ |
| mesh.c | 192 cmp = query_info_compare(&a->s.qinfo, &b->s.qinfo); 308 m->s.qinfo.qname, m->s.qinfo.qtype, 309 m->s.qinfo.qclass); 321 /* restore the query - note that the qinfo ptr to 424 void mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo, 450 s = mesh_area_find(mesh, cinfo, qinfo, mesh_flags, 0, 0); 477 s = mesh_state_create(mesh->env, qinfo, cinfo, 481 if(!inplace_cb_reply_servfail_call(mesh->env, qinfo, NULL, NULL 1596 struct query_info qinfo; local 2029 struct query_info* qinfo; local 2113 struct query_info* qinfo = NULL; local [all...] |
| authzone.c | 114 msg_create(struct regional* region, struct query_info* qinfo) 120 msg->qinfo.qname = regional_alloc_init(region, qinfo->qname, 121 qinfo->qname_len); 122 if(!msg->qinfo.qname) 124 msg->qinfo.qname_len = qinfo->qname_len; 125 msg->qinfo.qtype = qinfo->qtype; 126 msg->qinfo.qclass = qinfo->qclass 2798 struct query_info qinfo; local 2924 struct query_info qinfo; local 4232 struct query_info qinfo; local 4248 struct query_info qinfo; local 5413 struct query_info qinfo; local 6606 struct query_info qinfo; local 8426 struct query_info qinfo; local [all...] |
| /src/external/bsd/unbound/dist/util/ |
| module.h | 250 * Called as func(qinfo, qstate, rep, rcode, edns, opt_list_out, repinfo, 253 * qinfo: the query info. 268 typedef int inplace_cb_reply_func_type(struct query_info* qinfo, 276 * Called as func(qinfo, flags, qstate, addr, addrlen, zone, zonelen, region, 279 * qinfo: query info. 292 typedef int inplace_cb_query_func_type(struct query_info* qinfo, uint16_t flags, 326 * lookup_qinfo: the qinfo to lookup for. 357 * @param qinfo: query info. 383 struct outbound_entry* (*send_query)(struct query_info* qinfo, 413 * @param qinfo: what to query for (copied) 628 struct query_info qinfo; member in struct:module_qstate [all...] |
| /src/sys/dev/ic/ |
| mfi.c | 637 struct mfi_init_qinfo *qinfo; local 645 qinfo = (struct mfi_init_qinfo *)((uint8_t *)init + MFI_FRAME_SIZE); 647 memset(qinfo, 0, sizeof *qinfo); 648 qinfo->miq_rq_entries = sc->sc_max_cmds + 1; 649 qinfo->miq_rq_addr_lo = htole32(MFIMEM_DVA(sc->sc_pcq) + 651 qinfo->miq_pi_addr_lo = htole32(MFIMEM_DVA(sc->sc_pcq) + 653 qinfo->miq_ci_addr_lo = htole32(MFIMEM_DVA(sc->sc_pcq) + 657 init->mif_header.mfh_data_len = sizeof *qinfo; 662 qinfo->miq_rq_entries, qinfo->miq_rq_addr_lo [all...] |