Lines Matching defs:server

37 #include <named/server.h>
50 * the server task and the channel task.
55 /* Locked by server task */
196 /* Initialize name server statistics */
369 SET_RESSTATDESC(cookieout, "COOKIE sent with client and server cookie",
376 SET_RESSTATDESC(serverquota, "spilled due to server quota",
1492 generatexml(ns_server_t *server, isc_uint32_t flags,
1538 /* Render server information */
1539 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "server"));
1560 dns_opcodestats_dump(server->opcodestats, opcodestat_dump,
1571 dns_rcodestats_dump(server->rcodestats, rcodestat_dump,
1583 dns_rdatatypestats_dump(server->rcvquerystats, rdtypestat_dump,
1593 result = dump_counters(server->nsstats, isc_statsformat_xml,
1607 result = dump_counters(server->zonestats, isc_statsformat_xml,
1624 result = dump_counters(server->resolverstats,
1634 if (server->dtenv != NULL) {
1661 result = dump_counters(server->sockstats, isc_statsformat_xml,
1671 TRY0(xmlTextWriterEndElement(writer)); /* /server */
1681 result = dump_counters(server->udpinstats4,
1696 result = dump_counters(server->udpoutstats4,
1713 result = dump_counters(server->tcpinstats4,
1728 result = dump_counters(server->tcpoutstats4,
1747 result = dump_counters(server->udpinstats6,
1762 result = dump_counters(server->udpoutstats6,
1779 result = dump_counters(server->tcpinstats6,
1794 result = dump_counters(server->tcpoutstats6,
1813 view = ISC_LIST_HEAD(server->viewlist);
1970 ns_server_t *server = arg;
1978 result = generatexml(server, flags, &msglen, &msg);
2249 generatejson(ns_server_t *server, size_t *msglen,
2323 dns_opcodestats_dump(server->opcodestats,
2342 dns_rcodestats_dump(server->rcodestats, rcodestat_dump,
2360 dns_rdatatypestats_dump(server->rcvquerystats,
2372 /* server stat counters */
2378 result = dump_counters(server->nsstats, isc_statsformat_json,
2398 result = dump_counters(server->zonestats, isc_statsformat_json,
2419 result = dump_counters(server->resolverstats,
2470 view = ISC_LIST_HEAD(server->viewlist);
2613 result = dump_counters(server->sockstats,
2696 CHECK(dump_counters(server->udpinstats4,
2703 CHECK(dump_counters(server->udpoutstats4,
2710 CHECK(dump_counters(server->tcpinstats4,
2717 CHECK(dump_counters(server->tcpoutstats4,
2724 CHECK(dump_counters(server->udpinstats6,
2731 CHECK(dump_counters(server->udpoutstats6,
2738 CHECK(dump_counters(server->tcpinstats6,
2745 CHECK(dump_counters(server->tcpoutstats6,
2834 ns_server_t *server = arg;
2844 result = generatejson(server, &msglen, &msg, &bindstats, flags);
3076 add_listener(ns_server_t *server, ns_statschannel_t **listenerp,
3088 listener = isc_mem_get(server->mctx, sizeof(*listener));
3100 isc_mem_put(server->mctx, listener, sizeof(*listener));
3104 isc_mem_attach(server->mctx, &listener->mctx);
3137 result = isc_httpdmgr_create(server->mctx, sock, task, client_ok,
3145 render_xml_all, server);
3147 render_xml_all, server);
3149 render_xml_all, server);
3151 render_xml_status, server);
3152 isc_httpdmgr_addurl(listener->httpdmgr, "/xml/v3/server",
3153 render_xml_server, server);
3155 render_xml_zones, server);
3157 render_xml_net, server);
3159 render_xml_tasks, server);
3161 render_xml_mem, server);
3163 render_xml_traffic, server);
3167 render_json_all, server);
3169 render_json_all, server);
3171 render_json_status, server);
3172 isc_httpdmgr_addurl(listener->httpdmgr, "/json/v1/server",
3173 render_json_server, server);
3175 render_json_zones, server);
3177 render_json_tasks, server);
3179 render_json_net, server);
3181 render_json_mem, server);
3183 render_json_traffic, server);
3186 render_xsl, server);
3210 update_listener(ns_server_t *server, ns_statschannel_t **listenerp,
3220 for (listener = ISC_LIST_HEAD(server->statschannels);
3261 ns_statschannels_configure(ns_server_t *server, const cfg_obj_t *config,
3346 update_listener(server, &listener,
3355 ISC_LIST_UNLINK(server->statschannels,
3363 r = add_listener(server, &listener,
3386 for (listener = ISC_LIST_HEAD(server->statschannels);
3390 ISC_LIST_UNLINK(server->statschannels, listener, link);
3394 ISC_LIST_APPENDLIST(server->statschannels, new_listeners, link);
3399 ns_statschannels_shutdown(ns_server_t *server) {
3402 while ((listener = ISC_LIST_HEAD(server->statschannels)) != NULL) {
3403 ISC_LIST_UNLINK(server->statschannels, listener, link);
3409 ns_stats_dump(ns_server_t *server, FILE *fp) {
3431 dns_opcodestats_dump(server->opcodestats, opcodestat_dump, &dumparg, 0);
3434 dns_rdatatypestats_dump(server->rcvquerystats, rdtypestat_dump,
3438 dns_rcodestats_dump(server->rcodestats, rcodestat_dump, &dumparg, 0);
3441 for (view = ISC_LIST_HEAD(server->viewlist);
3455 (void) dump_counters(server->nsstats, isc_statsformat_file, fp, NULL,
3460 (void) dump_counters(server->zonestats, isc_statsformat_file, fp, NULL,
3466 (void) dump_counters(server->resolverstats, isc_statsformat_file, fp,
3469 for (view = ISC_LIST_HEAD(server->viewlist);
3485 for (view = ISC_LIST_HEAD(server->viewlist);
3502 for (view = ISC_LIST_HEAD(server->viewlist);
3527 for (view = ISC_LIST_HEAD(server->viewlist);
3542 (void) dump_counters(server->sockstats, isc_statsformat_file, fp, NULL,
3548 for (result = dns_zone_first(server->zonemgr, &zone);