Lines Matching defs:qstate

716 causes_cycle(struct module_qstate* qstate, uint8_t* name, size_t namelen,
726 qstate->env->detect_cycle));
727 return (*qstate->env->detect_cycle)(qstate, &qinf,
728 (uint16_t)(BIT_RD|BIT_CD), qstate->is_priming,
729 qstate->is_valrec);
733 iter_mark_cycle_targets(struct module_qstate* qstate, struct delegpt* dp)
740 if(causes_cycle(qstate, ns->name, ns->namelen,
741 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass) ||
742 causes_cycle(qstate, ns->name, ns->namelen,
743 LDNS_RR_TYPE_A, qstate->qinfo.qclass)) {
748 qstate->qinfo.qclass);
755 iter_mark_pside_cycle_targets(struct module_qstate* qstate, struct delegpt* dp)
762 if(causes_cycle(qstate, ns->name, ns->namelen,
763 LDNS_RR_TYPE_A, qstate->qinfo.qclass)) {
766 LDNS_RR_TYPE_A, qstate->qinfo.qclass);
769 if(causes_cycle(qstate, ns->name, ns->namelen,
770 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass)) {
773 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass);
1461 iter_stub_fwd_no_cache(struct module_qstate *qstate, struct query_info *qinf,
1471 lock_rw_rdlock(&qstate->env->fwds->lock);
1472 lock_rw_rdlock(&qstate->env->hints->lock);
1473 stub = hints_lookup_stub(qstate->env->hints, qinf->qname,
1475 dp = forwards_lookup(qstate->env->fwds, qinf->qname, qinf->qclass,
1491 lock_rw_unlock(&qstate->env->fwds->lock);
1502 lock_rw_unlock(&qstate->env->hints->lock);
1512 lock_rw_unlock(&qstate->env->hints->lock);
1519 lock_rw_unlock(&qstate->env->hints->lock);
1530 lock_rw_unlock(&qstate->env->fwds->lock);
1539 lock_rw_unlock(&qstate->env->fwds->lock);
1542 lock_rw_unlock(&qstate->env->fwds->lock);
1543 lock_rw_unlock(&qstate->env->hints->lock);