Lines Matching refs:dctx
63 struct dns_ctx * dctx;
112 void queue_xmt(SOCKET sock, struct dns_ctx *dctx, sent_pkt *spkt,
452 struct dns_ctx * dctx;
463 dctx = context;
469 dctx->name);
473 dctx->name, gai_strerror(rescode));
475 TRACE(3, ("%s [%s]\n", dctx->name,
516 if (dctx->flags & CTX_UCST) {
518 spkt->dctx = dctx;
521 queue_xmt(sock, dctx, spkt, xmt_delay);
537 struct dns_ctx * dctx,
558 if (strcasecmp(spkt->dctx->name,
559 match->dctx->name))
562 match->dctx->name,
563 spkt->dctx->name);
567 match->dctx->name);
568 dec_pending_ntp(spkt->dctx->name, &spkt->addr);
664 struct dns_ctx *dctx = xctx->spkt->dctx;
679 pkt_len = generate_pkt(&x_pkt, &tv_xmt, dctx->key_id,
680 dctx->key);
690 (u_int)tv_xmt.tv_usec, dctx->name, stoa(dst)));
692 dec_pending_ntp(dctx->name, dst);
723 switch (spkt->dctx->flags & CTX_xCST) {
733 INSIST(!"spkt->dctx->flags neither UCST nor BCST");
743 spkt->dctx->name, xcst, age));
783 switch (spkt->dctx->flags & CTX_xCST) {
793 INSIST(!"spkt->dctx->flags neither UCST nor BCST");
799 hostnameaddr(spkt->dctx->name, server), xcst,
801 dec_pending_ntp(spkt->dctx->name, server);
900 TRACE(1, ("sock_cb: %s %s\n", spkt->dctx->name,
909 if (!spkt->done && (CTX_UCST & spkt->dctx->flags)) {
910 dec_pending_ntp(spkt->dctx->name, &spkt->addr);
916 rc = handle_pkt(rpktl, &r_pkt, &spkt->addr, spkt->dctx->name);