Lines Matching refs:client

51 #include <named/client.h>
81 * Fail unconditionally and log as a client error.
88 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT, \
102 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT, \
833 ns_client_t *client;
860 xfrout_ctx_create(isc_mem_t *mctx, ns_client_t *client,
890 xfrout_log1(ns_client_t *client, dns_name_t *zonename,
901 ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
918 isc_mem_t *mctx = client->mctx;
919 dns_message_t *request = client->message;
922 dns_transfer_format_t format = client->view->transfer_format;
946 ns_client_log(client,
981 result = dns_zt_find(client->view->zonetable, question_name, 0, NULL,
991 if (client->view->dlzdatabase != NULL) {
992 result = dns_dlzallowzonexfr(client->view,
994 &client->peeraddr,
1006 ns_client_log(client, DNS_LOGCATEGORY_SECURITY,
1045 xfrout_log1(client, question_name, question_class, ISC_LOG_DEBUG(6),
1093 xfrout_log1(client, question_name, question_class, ISC_LOG_DEBUG(6),
1106 client->view->rdclass, msg, sizeof(msg));
1107 CHECK(ns_client_checkacl(client, NULL, msg,
1118 (client->attributes & NS_CLIENTATTR_TCP) == 0)
1124 isc_netaddr_fromsockaddr(&na, &client->peeraddr);
1125 (void)dns_peerlist_peerbyaddr(client->view->peers, &na, &peer);
1151 provide_ixfr = client->view->provideixfr;
1176 (client->attributes & NS_CLIENTATTR_TCP) == 0)
1197 xfrout_log1(client, question_name, question_class,
1231 CHECK(xfrout_ctx_create(mctx, client, request->id,
1243 CHECK(xfrout_ctx_create(mctx, client, request->id,
1265 xfrout_log1(client, question_name, question_class,
1269 xfrout_log1(client, question_name, question_class,
1306 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT,
1309 ns_client_error(client, result);
1314 xfrout_ctx_create(isc_mem_t *mctx, ns_client_t *client, unsigned int id,
1334 xfr->client = NULL;
1335 ns_client_attach(client, &xfr->client);
1397 CHECK(dns_timer_setidle(xfr->client->timer,
1401 * Register a shutdown callback with the client, so that we
1402 * can stop the transfer immediately when the client task
1405 xfr->client->shutdown = xfrout_client_shutdown;
1406 xfr->client->shutdown_arg = xfr;
1452 if ((xfr->client->attributes & NS_CLIENTATTR_TCP) == 0) {
1455 * the client message.
1457 msg = xfr->client->message;
1475 if ((xfr->client->attributes & NS_CLIENTATTR_RA) != 0)
1510 xfr->client->message->rdclass,
1645 if ((xfr->client->attributes & NS_CLIENTATTR_TCP) != 0) {
1664 CHECK(isc_socket_send(xfr->client->tcpsocket, /* XXX */
1665 &region, xfr->client->task,
1671 ns_client_send(xfr->client);
1718 ns_client_t *client = NULL;
1722 xfr->client->shutdown = NULL;
1723 xfr->client->shutdown_arg = NULL;
1743 * We want to detch the client after we have released the memory
1746 ns_client_attach(xfr->client, &client);
1747 ns_client_detach(&xfr->client);
1749 ns_client_detach(&client);
1768 (void)isc_timer_touch(xfr->client->timer);
1779 ns_client_next(xfr->client, ISC_R_SUCCESS);
1800 isc_socket_cancel(xfr->client->tcpsocket, xfr->client->task,
1803 ns_client_next(xfr->client, ISC_R_CANCELED);
1816 * <client>: transfer of <zone>: <message>
1820 xfrout_logv(ns_client_t *client, dns_name_t *zonename,
1825 xfrout_logv(ns_client_t *client, dns_name_t *zonename,
1835 ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT,
1844 xfrout_log1(ns_client_t *client, dns_name_t *zonename,
1848 xfrout_logv(client, zonename, rdclass, level, fmt, ap);
1859 xfrout_logv(xfr->client, xfr->qname, xfr->qclass, level, fmt, ap);