Lines Matching refs:client
46 #include <named/client.h>
99 * Fail unconditionally and log as a client error.
114 update_log(client, zone, LOGLEVEL_PROTOCOL, \
139 update_log(client, zone, LOGLEVEL_PROTOCOL, \
167 update_log(client, zone, LOGLEVEL_PROTOCOL, \
188 update_log(client, zone, LOGLEVEL_PROTOCOL, \
197 #define TCPCLIENT(client) (((client)->attributes & NS_CLIENTATTR_TCP) != 0)
247 static isc_result_t send_forward_event(ns_client_t *client, dns_zone_t *zone);
254 update_log(ns_client_t *client, dns_zone_t *zone,
258 update_log(ns_client_t *client, dns_zone_t *zone,
266 if (client == NULL || zone == NULL)
281 ns_client_log(client, NS_LOGCATEGORY_UPDATE, NS_LOGMODULE_UPDATE,
312 checkqueryacl(ns_client_t *client, dns_acl_t *queryacl, dns_name_t *zonename,
320 result = ns_client_checkaclsilent(client, NULL, queryacl, ISC_TRUE);
323 dns_rdataclass_format(client->view->rdclass, classbuf,
329 ns_client_log(client, NS_LOGCATEGORY_UPDATE_SECURITY,
335 dns_rdataclass_format(client->view->rdclass, classbuf,
339 ns_client_log(client, NS_LOGCATEGORY_UPDATE_SECURITY,
347 * Override the default acl logging when checking whether a client
361 checkupdateacl(ns_client_t *client, dns_acl_t *acl, const char *message,
376 result = ns_client_checkaclsilent(client, NULL, acl, ISC_FALSE);
385 if (client->signer != NULL) {
386 dns_name_format(client->signer, namebuf, sizeof(namebuf));
387 ns_client_log(client, NS_LOGCATEGORY_UPDATE_SECURITY,
393 dns_rdataclass_format(client->view->rdclass, classbuf,
396 ns_client_log(client, NS_LOGCATEGORY_UPDATE_SECURITY,
867 /* The address of the client. */
1508 send_update_event(ns_client_t *client, dns_zone_t *zone) {
1515 isc_event_allocate(client->mctx, client, DNS_EVENT_UPDATE,
1523 ns_client_attach(client, &evclient);
1524 INSIST(client->nupdates == 0);
1525 client->nupdates++;
1538 respond(ns_client_t *client, isc_result_t result) {
1541 msg_result = dns_message_reply(client->message, ISC_TRUE);
1544 client->message->rcode = dns_result_torcode(result);
1546 ns_client_send(client);
1554 ns_client_next(client, msg_result);
1558 ns_update_start(ns_client_t *client, isc_result_t sigresult) {
1559 dns_message_t *request = client->message;
1592 result = dns_zt_find(client->view->zonetable, zonename, 0, NULL,
1617 CHECK(send_update_event(client, zone));
1620 CHECK(checkupdateacl(client, dns_zone_getforwardacl(zone),
1623 CHECK(send_forward_event(client, zone));
1637 * We are still in the client task context, so we can
1640 respond(client, result);
1692 check_mx(ns_client_t *client, dns_zone_t *zone,
1742 update_log(client, zone, ISC_LOG_ERROR,
1748 update_log(client, zone, ISC_LOG_WARNING,
1774 update_log(client, zone, ISC_LOG_ERROR,
1779 update_log(client, zone, ISC_LOG_ERROR,
1785 update_log(client, zone, ISC_LOG_ERROR,
1923 check_dnssec(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
1975 update_log(client, zone, ISC_LOG_ERROR,
1983 CHECK(dns_nsec3_maxiterations(db, ver, client->mctx, &max));
1985 update_log(client, zone, ISC_LOG_ERROR,
2000 add_nsec3param_records(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
2015 update_log(client, zone, ISC_LOG_DEBUG(3),
2482 ns_client_t *client = (ns_client_t *)event->ev_arg;
2490 isc_mem_t *mctx = client->mctx;
2492 dns_message_t *request = client->message;
2522 CHECK(checkqueryacl(client, dns_zone_getqueryacl(zone), zonename,
2645 update_log(client, zone, LOGLEVEL_DEBUG,
2653 CHECK(checkupdateacl(client, dns_zone_getupdateacl(zone),
2655 else if (client->signer == NULL && !TCPCLIENT(client))
2656 CHECK(checkupdateacl(client, NULL, "update", zonename,
2707 update_log(client, zone, ISC_LOG_WARNING,
2715 * "Unlike traditional dynamic update, the client
2737 isc_netaddr_fromsockaddr(&netaddr, &client->peeraddr);
2739 if (client->message->tsigkey != NULL)
2740 tsigkey = client->message->tsigkey->key;
2744 (ssutable, client->signer, name, &netaddr,
2745 ISC_TF(TCPCLIENT(client)),
2754 client->signer,
2756 ISC_TF(TCPCLIENT(client)),
2768 update_log(client, zone, LOGLEVEL_DEBUG,
2801 update_log(client, zone, LOGLEVEL_PROTOCOL,
2813 update_log(client, zone,
2824 update_log(client, zone,
2838 update_log(client, zone,
2851 update_log(client, zone,
2860 update_log(client, zone,
2871 update_log(client, zone, LOGLEVEL_PROTOCOL,
2886 update_log(client, zone,
2900 update_log(client, zone, LOGLEVEL_PROTOCOL,
2909 update_log(client, zone,
2940 update_log(client, zone, LOGLEVEL_PROTOCOL,
2992 update_log(client, zone,
3011 update_log(client, zone, LOGLEVEL_PROTOCOL,
3026 update_log(client, zone,
3045 update_log(client, zone,
3057 update_log(client, zone,
3069 update_log(client, zone, LOGLEVEL_PROTOCOL,
3084 CHECK(check_dnssec(client, zone, db, ver, &diff));
3090 update_log(client, zone, LOGLEVEL_PROTOCOL,
3100 update_log(client, zone, LOGLEVEL_PROTOCOL,
3130 CHECK(check_mx(client, zone, db, ver, &diff));
3144 update_log(client, zone, LOGLEVEL_PROTOCOL,
3158 CHECK(add_nsec3param_records(client, zone, db, ver, &diff));
3175 log.arg = client;
3180 update_log(client, zone,
3192 update_log(client, zone, ISC_LOG_ERROR,
3204 update_log(client, zone, LOGLEVEL_DEBUG,
3227 update_log(client, zone, LOGLEVEL_DEBUG,
3272 update_log(client, zone, ISC_LOG_ERROR,
3304 update_log(client, zone, ISC_LOG_ERROR,
3310 update_log(client, zone, LOGLEVEL_DEBUG, "redundant request");
3321 update_log(client, zone, LOGLEVEL_DEBUG,
3345 isc_task_send(client->task, &event);
3354 ns_client_t *client = (ns_client_t *) event->ev_arg;
3359 INSIST(task == client->task);
3361 INSIST(client->nupdates > 0);
3375 client->nupdates--;
3376 respond(client, uev->result);
3378 ns_client_detach(&client);
3387 ns_client_t *client = (ns_client_t *)event->ev_arg;
3391 INSIST(client->nupdates > 0);
3392 client->nupdates--;
3393 respond(client, DNS_R_SERVFAIL);
3395 ns_client_detach(&client);
3402 ns_client_t *client = uev->ev_arg;
3416 isc_task_send(client->task, ISC_EVENT_PTR(&uev));
3423 ns_client_t *client = (ns_client_t *)event->ev_arg;
3427 INSIST(client->nupdates > 0);
3428 client->nupdates--;
3429 ns_client_sendraw(client, uev->answer);
3432 ns_client_detach(&client);
3439 ns_client_t *client = (ns_client_t *)event->ev_arg;
3442 result = dns_zone_forwardupdate(zone, client->message,
3447 isc_task_send(client->task, &event);
3456 send_forward_event(ns_client_t *client, dns_zone_t *zone) {
3465 * This may take some time so replace this client.
3467 if (!client->mortal && (client->attributes & NS_CLIENTATTR_TCP) == 0)
3468 CHECK(ns_client_replace(client));
3471 isc_event_allocate(client->mctx, client, DNS_EVENT_UPDATE,
3479 ns_client_attach(client, &evclient);
3480 INSIST(client->nupdates == 0);
3481 client->nupdates++;
3489 ns_client_log(client, NS_LOGCATEGORY_UPDATE, NS_LOGMODULE_UPDATE,