Lines Matching refs:client
41 #include <named/client.h>
71 * Fail unconditionally and log as a client error.
78 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT, \
92 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT, \
650 ns_client_t *client;
678 xfrout_ctx_create(isc_mem_t *mctx, ns_client_t *client,
709 xfrout_log1(ns_client_t *client, dns_name_t *zonename,
720 ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
737 isc_mem_t *mctx = client->mctx;
738 dns_message_t *request = client->message;
741 dns_transfer_format_t format = client->view->transfer_format;
765 ns_client_log(client,
800 result = dns_zt_find(client->view->zonetable, question_name, 0, NULL,
809 if (! ISC_LIST_EMPTY(client->view->dlz_searched)) {
810 result = dns_dlzallowzonexfr(client->view,
812 &client->peeraddr,
824 ns_client_log(client, DNS_LOGCATEGORY_SECURITY,
859 xfrout_log1(client, question_name, question_class, ISC_LOG_DEBUG(6),
907 xfrout_log1(client, question_name, question_class, ISC_LOG_DEBUG(6),
915 client->view->rdclass, msg, sizeof(msg));
916 CHECK(ns_client_checkacl(client, NULL, msg,
925 (client->attributes & NS_CLIENTATTR_TCP) == 0)
931 isc_netaddr_fromsockaddr(&na, &client->peeraddr);
932 (void)dns_peerlist_peerbyaddr(client->view->peers, &na, &peer);
957 provide_ixfr = client->view->provideixfr;
981 (client->attributes & NS_CLIENTATTR_TCP) == 0)
998 xfrout_log1(client, question_name, question_class,
1031 CHECK(xfrout_ctx_create(mctx, client, request->id,
1043 CHECK(xfrout_ctx_create(mctx, client, request->id,
1066 xfrout_log1(client, question_name, question_class,
1070 xfrout_log1(client, question_name, question_class,
1075 xfrout_log1(client, question_name, question_class,
1084 if ((client->attributes & NS_CLIENTATTR_WANTEXPIRE) != 0 &&
1090 if (secs >= client->now && result == ISC_R_SUCCESS) {
1091 client->attributes |= NS_CLIENTATTR_HAVEEXPIRE;
1092 client->expire = secs - client->now;
1132 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT,
1135 ns_client_error(client, result);
1140 xfrout_ctx_create(isc_mem_t *mctx, ns_client_t *client, unsigned int id,
1160 xfr->client = NULL;
1161 ns_client_attach(client, &xfr->client);
1222 CHECK(dns_timer_setidle(xfr->client->timer,
1226 * Register a shutdown callback with the client, so that we
1227 * can stop the transfer immediately when the client task
1230 xfr->client->shutdown = xfrout_client_shutdown;
1231 xfr->client->shutdown_arg = xfr;
1278 is_tcp = ISC_TF((xfr->client->attributes & NS_CLIENTATTR_TCP) != 0);
1282 * the client message.
1284 msg = xfr->client->message;
1302 if ((xfr->client->attributes & NS_CLIENTATTR_RA) != 0)
1313 if ((xfr->client->attributes & NS_CLIENTATTR_WANTOPT) != 0) {
1316 CHECK(ns_client_addopt(xfr->client, msg, &opt));
1321 xfr->client->attributes &= ~NS_CLIENTATTR_WANTNSID;
1322 xfr->client->attributes &= ~NS_CLIENTATTR_HAVEEXPIRE;
1352 xfr->client->message->rdclass,
1511 CHECK(isc_socket_send(xfr->client->tcpsocket, /* XXX */
1512 ®ion, xfr->client->task,
1518 ns_client_send(xfr->client);
1565 ns_client_t *client = NULL;
1569 xfr->client->shutdown = NULL;
1570 xfr->client->shutdown_arg = NULL;
1590 * We want to detch the client after we have released the memory
1593 ns_client_attach(xfr->client, &client);
1594 ns_client_detach(&xfr->client);
1596 ns_client_detach(&client);
1615 (void)isc_timer_touch(xfr->client->timer);
1626 ns_client_next(xfr->client, ISC_R_SUCCESS);
1647 isc_socket_cancel(xfr->client->tcpsocket, xfr->client->task,
1650 ns_client_next(xfr->client, ISC_R_CANCELED);
1663 * <client>: transfer of <zone>: <message>
1667 xfrout_logv(ns_client_t *client, dns_name_t *zonename,
1672 xfrout_logv(ns_client_t *client, dns_name_t *zonename,
1682 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT,
1691 xfrout_log1(ns_client_t *client, dns_name_t *zonename,
1695 xfrout_logv(client, zonename, rdclass, level, fmt, ap);
1706 xfrout_logv(xfr->client, xfr->qname, xfr->qclass, level, fmt, ap);