Lines Matching refs:state
537 gai_resstate_t *state;
545 state = isc_mem_get(mctx, sizeof(*state));
546 if (state == NULL)
557 isc_mem_put(mctx, state, sizeof(*state));
565 dns_fixedname_init(&state->fixedname);
566 state->qname = dns_fixedname_name(&state->fixedname);
567 result = dns_name_fromtext(state->qname, &b, qdomain, 0, NULL);
569 isc_mem_put(mctx, state, sizeof(*state));
578 state->trans6 = NULL;
579 state->trans4 = NULL;
581 state->trans4 = isc_mem_get(mctx, sizeof(gai_restrans_t));
582 if (state->trans4 == NULL) {
583 isc_mem_put(mctx, state, sizeof(*state));
586 state->trans4->error = 0;
587 state->trans4->xid = NULL;
588 state->trans4->resstate = state;
589 state->trans4->is_inprogress = ISC_TRUE;
590 state->trans4->ai_sentinel.ai_next = NULL;
593 state->trans6 = isc_mem_get(mctx, sizeof(gai_restrans_t));
594 if (state->trans6 == NULL) {
595 if (state->trans4 != NULL)
596 isc_mem_put(mctx, state->trans4,
597 sizeof(*state->trans4));
598 isc_mem_put(mctx, state, sizeof(*state));
601 state->trans6->error = 0;
602 state->trans6->xid = NULL;
603 state->trans6->resstate = state;
604 state->trans6->is_inprogress = ISC_TRUE;
605 state->trans6->ai_sentinel.ai_next = NULL;
608 state->mctx = mctx;
609 state->head = head;
610 ISC_LINK_INIT(state, link);
612 *statep = state;
647 * state list, depending on the number of labels contained in the
842 * We're done for this state. If there is no other outstanding
843 * state, we can exit.
853 * of the state list (i.e., at the highest search priority)