Lines Matching refs:server
42 #include <named/server.h>
55 * the server task and the channel task.
60 /* Locked by server task */
138 /* Initialize name server statistics */
778 generatexml(ns_server_t *server, int *buflen, xmlChar **buf) {
821 view = ISC_LIST_HEAD(server->viewlist);
886 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "server"));
896 dns_opcodestats_dump(server->opcodestats, opcodestat_dump, &dumparg,
904 dns_rdatatypestats_dump(server->rcvquerystats, rdtypestat_dump,
910 result = dump_counters(server->nsstats, statsformat_xml, writer,
918 result = dump_counters(server->zonestats, statsformat_xml, writer,
929 result = dump_counters(server->resolverstats, statsformat_xml, writer,
936 result = dump_counters(server->sockstats, statsformat_xml, writer,
943 TRY0(xmlTextWriterEndElement(writer)); /* server */
986 ns_server_t *server = arg;
992 result = generatexml(server, &msglen, &msg);
1083 add_listener(ns_server_t *server, ns_statschannel_t **listenerp,
1095 listener = isc_mem_get(server->mctx, sizeof(*listener));
1107 isc_mem_put(server->mctx, listener, sizeof(*listener));
1111 isc_mem_attach(server->mctx, &listener->mctx);
1144 result = isc_httpdmgr_create(server->mctx, sock, task, client_ok,
1151 isc_httpdmgr_addurl(listener->httpdmgr, "/", render_index, server);
1154 server);
1178 update_listener(ns_server_t *server, ns_statschannel_t **listenerp,
1188 for (listener = ISC_LIST_HEAD(server->statschannels);
1229 ns_statschannels_configure(ns_server_t *server, const cfg_obj_t *config,
1300 update_listener(server, &listener,
1309 ISC_LIST_UNLINK(server->statschannels,
1317 r = add_listener(server, &listener,
1340 for (listener = ISC_LIST_HEAD(server->statschannels);
1344 ISC_LIST_UNLINK(server->statschannels, listener, link);
1348 ISC_LIST_APPENDLIST(server->statschannels, new_listeners, link);
1353 ns_statschannels_shutdown(ns_server_t *server) {
1356 while ((listener = ISC_LIST_HEAD(server->statschannels)) != NULL) {
1357 ISC_LIST_UNLINK(server->statschannels, listener, link);
1363 ns_stats_dump(ns_server_t *server, FILE *fp) {
1384 dns_opcodestats_dump(server->opcodestats, opcodestat_dump, &dumparg, 0);
1387 dns_rdatatypestats_dump(server->rcvquerystats, rdtypestat_dump,
1391 for (view = ISC_LIST_HEAD(server->viewlist);
1405 (void) dump_counters(server->nsstats, statsformat_file, fp, NULL,
1410 (void) dump_counters(server->zonestats, statsformat_file, fp, NULL,
1416 (void) dump_counters(server->resolverstats, statsformat_file, fp, NULL,
1419 for (view = ISC_LIST_HEAD(server->viewlist);
1434 for (view = ISC_LIST_HEAD(server->viewlist);
1451 (void) dump_counters(server->sockstats, statsformat_file, fp, NULL,
1457 for (result = dns_zone_first(server->zonemgr, &zone);