Lines Matching defs:qstate

717 causes_cycle(struct module_qstate* qstate, uint8_t* name, size_t namelen,
727 qstate->env->detect_cycle));
728 return (*qstate->env->detect_cycle)(qstate, &qinf,
729 (uint16_t)(BIT_RD|BIT_CD), qstate->is_priming,
730 qstate->is_valrec);
734 iter_mark_cycle_targets(struct module_qstate* qstate, struct delegpt* dp)
741 if(causes_cycle(qstate, ns->name, ns->namelen,
742 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass) ||
743 causes_cycle(qstate, ns->name, ns->namelen,
744 LDNS_RR_TYPE_A, qstate->qinfo.qclass)) {
749 qstate->qinfo.qclass);
756 iter_mark_pside_cycle_targets(struct module_qstate* qstate, struct delegpt* dp)
763 if(causes_cycle(qstate, ns->name, ns->namelen,
764 LDNS_RR_TYPE_A, qstate->qinfo.qclass)) {
767 LDNS_RR_TYPE_A, qstate->qinfo.qclass);
770 if(causes_cycle(qstate, ns->name, ns->namelen,
771 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass)) {
774 LDNS_RR_TYPE_AAAA, qstate->qinfo.qclass);
1462 iter_stub_fwd_no_cache(struct module_qstate *qstate, struct query_info *qinf,
1472 lock_rw_rdlock(&qstate->env->fwds->lock);
1473 lock_rw_rdlock(&qstate->env->hints->lock);
1474 stub = hints_lookup_stub(qstate->env->hints, qinf->qname,
1476 dp = forwards_lookup(qstate->env->fwds, qinf->qname, qinf->qclass,
1492 lock_rw_unlock(&qstate->env->fwds->lock);
1503 lock_rw_unlock(&qstate->env->hints->lock);
1513 lock_rw_unlock(&qstate->env->hints->lock);
1520 lock_rw_unlock(&qstate->env->hints->lock);
1531 lock_rw_unlock(&qstate->env->fwds->lock);
1540 lock_rw_unlock(&qstate->env->fwds->lock);
1543 lock_rw_unlock(&qstate->env->fwds->lock);
1544 lock_rw_unlock(&qstate->env->hints->lock);