bind  9.17.5
About: BIND 9.17 implements the Domain Name System (DNS) protocols for the Internet (see the Release Notes). Source code distribution. Unstable development release.
  Fossies Dox: bind-9.17.5.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

stats.h File Reference
#include <inttypes.h>
#include <dns/types.h>
Include dependency graph for stats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DNS_STATS_NCOUNTERS   8
 
#define DNS_RDATASTATSTYPE_ATTR_OTHERTYPE   0x0001
 
#define DNS_RDATASTATSTYPE_ATTR_NXRRSET   0x0002
 
#define DNS_RDATASTATSTYPE_ATTR_NXDOMAIN   0x0004
 
#define DNS_RDATASTATSTYPE_ATTR_STALE   0x0008
 
#define DNS_RDATASTATSTYPE_ATTR_ANCIENT   0x0010
 
#define DNS_RDATASTATSTYPE_BASE(type)   ((dns_rdatatype_t)((type)&0xFFFF))
 
#define DNS_RDATASTATSTYPE_ATTR(type)   ((type) >> 16)
 
#define DNS_RDATASTATSTYPE_VALUE(b, a)   (((a) << 16) | (b))
 

Typedefs

typedef void(* dns_generalstats_dumper_t) (isc_statscounter_t, uint64_t, void *)
 
typedef void(* dns_rdatatypestats_dumper_t) (dns_rdatastatstype_t, uint64_t, void *)
 
typedef void(* dns_dnssecsignstats_dumper_t) (dns_keytag_t, uint64_t, void *)
 
typedef void(* dns_opcodestats_dumper_t) (dns_opcode_t, uint64_t, void *)
 
typedef void(* dns_rcodestats_dumper_t) (dns_rcode_t, uint64_t, void *)
 

Enumerations

enum  {
  dns_resstatscounter_queryv4 = 0, dns_resstatscounter_queryv6 = 1, dns_resstatscounter_responsev4 = 2, dns_resstatscounter_responsev6 = 3,
  dns_resstatscounter_nxdomain = 4, dns_resstatscounter_servfail = 5, dns_resstatscounter_formerr = 6, dns_resstatscounter_othererror = 7,
  dns_resstatscounter_edns0fail = 8, dns_resstatscounter_mismatch = 9, dns_resstatscounter_truncated = 10, dns_resstatscounter_lame = 11,
  dns_resstatscounter_retry = 12, dns_resstatscounter_gluefetchv4 = 13, dns_resstatscounter_gluefetchv6 = 14, dns_resstatscounter_gluefetchv4fail = 15,
  dns_resstatscounter_gluefetchv6fail = 16, dns_resstatscounter_val = 17, dns_resstatscounter_valsuccess = 18, dns_resstatscounter_valnegsuccess = 19,
  dns_resstatscounter_valfail = 20, dns_resstatscounter_dispabort = 21, dns_resstatscounter_dispsockfail = 22, dns_resstatscounter_querytimeout = 23,
  dns_resstatscounter_queryrtt0 = 24, dns_resstatscounter_queryrtt1 = 25, dns_resstatscounter_queryrtt2 = 26, dns_resstatscounter_queryrtt3 = 27,
  dns_resstatscounter_queryrtt4 = 28, dns_resstatscounter_queryrtt5 = 29, dns_resstatscounter_nfetch = 30, dns_resstatscounter_disprequdp = 31,
  dns_resstatscounter_dispreqtcp = 32, dns_resstatscounter_buckets = 33, dns_resstatscounter_refused = 34, dns_resstatscounter_cookienew = 35,
  dns_resstatscounter_cookieout = 36, dns_resstatscounter_cookiein = 37, dns_resstatscounter_cookieok = 38, dns_resstatscounter_badvers = 39,
  dns_resstatscounter_badcookie = 40, dns_resstatscounter_zonequota = 41, dns_resstatscounter_serverquota = 42, dns_resstatscounter_nextitem = 43,
  dns_resstatscounter_priming = 44, dns_resstatscounter_max = 45, dns_dnssecstats_asis = 0, dns_dnssecstats_downcase = 1,
  dns_dnssecstats_wildcard = 2, dns_dnssecstats_fail = 3, dns_dnssecstats_max = 4, dns_zonestatscounter_notifyoutv4 = 0,
  dns_zonestatscounter_notifyoutv6 = 1, dns_zonestatscounter_notifyinv4 = 2, dns_zonestatscounter_notifyinv6 = 3, dns_zonestatscounter_notifyrej = 4,
  dns_zonestatscounter_soaoutv4 = 5, dns_zonestatscounter_soaoutv6 = 6, dns_zonestatscounter_axfrreqv4 = 7, dns_zonestatscounter_axfrreqv6 = 8,
  dns_zonestatscounter_ixfrreqv4 = 9, dns_zonestatscounter_ixfrreqv6 = 10, dns_zonestatscounter_xfrsuccess = 11, dns_zonestatscounter_xfrfail = 12,
  dns_zonestatscounter_max = 13, dns_adbstats_nentries = 0, dns_adbstats_entriescnt = 1, dns_adbstats_nnames = 2,
  dns_adbstats_namescnt = 3, dns_adbstats_max = 4, dns_cachestatscounter_hits = 1, dns_cachestatscounter_misses = 2,
  dns_cachestatscounter_queryhits = 3, dns_cachestatscounter_querymisses = 4, dns_cachestatscounter_deletelru = 5, dns_cachestatscounter_deletettl = 6,
  dns_cachestatscounter_max = 7, dns_statscounter_success = 0, dns_statscounter_referral = 1, dns_statscounter_nxrrset = 2,
  dns_statscounter_nxdomain = 3, dns_statscounter_recursion = 4, dns_statscounter_failure = 5, dns_statscounter_duplicate = 6,
  dns_statscounter_dropped = 7, dns_dnstapcounter_success = 0, dns_dnstapcounter_drop = 1, dns_dnstapcounter_max = 2,
  dns_gluecachestatscounter_hits_present = 0, dns_gluecachestatscounter_hits_absent = 1, dns_gluecachestatscounter_inserts_present = 2, dns_gluecachestatscounter_inserts_absent = 3,
  dns_gluecachestatscounter_max = 4
}
 
enum  {
  dns_sizecounter_in_0 = 0, dns_sizecounter_in_16 = 1, dns_sizecounter_in_32 = 2, dns_sizecounter_in_48 = 3,
  dns_sizecounter_in_64 = 4, dns_sizecounter_in_80 = 5, dns_sizecounter_in_96 = 6, dns_sizecounter_in_112 = 7,
  dns_sizecounter_in_128 = 8, dns_sizecounter_in_144 = 9, dns_sizecounter_in_160 = 10, dns_sizecounter_in_176 = 11,
  dns_sizecounter_in_192 = 12, dns_sizecounter_in_208 = 13, dns_sizecounter_in_224 = 14, dns_sizecounter_in_240 = 15,
  dns_sizecounter_in_256 = 16, dns_sizecounter_in_272 = 17, dns_sizecounter_in_288 = 18, dns_sizecounter_in_max = 19
}
 
enum  {
  dns_sizecounter_out_0 = 0, dns_sizecounter_out_16 = 1, dns_sizecounter_out_32 = 2, dns_sizecounter_out_48 = 3,
  dns_sizecounter_out_64 = 4, dns_sizecounter_out_80 = 5, dns_sizecounter_out_96 = 6, dns_sizecounter_out_112 = 7,
  dns_sizecounter_out_128 = 8, dns_sizecounter_out_144 = 9, dns_sizecounter_out_160 = 10, dns_sizecounter_out_176 = 11,
  dns_sizecounter_out_192 = 12, dns_sizecounter_out_208 = 13, dns_sizecounter_out_224 = 14, dns_sizecounter_out_240 = 15,
  dns_sizecounter_out_256 = 16, dns_sizecounter_out_272 = 17, dns_sizecounter_out_288 = 18, dns_sizecounter_out_304 = 19,
  dns_sizecounter_out_320 = 20, dns_sizecounter_out_336 = 21, dns_sizecounter_out_352 = 22, dns_sizecounter_out_368 = 23,
  dns_sizecounter_out_384 = 24, dns_sizecounter_out_400 = 25, dns_sizecounter_out_416 = 26, dns_sizecounter_out_432 = 27,
  dns_sizecounter_out_448 = 28, dns_sizecounter_out_464 = 29, dns_sizecounter_out_480 = 30, dns_sizecounter_out_496 = 31,
  dns_sizecounter_out_512 = 32, dns_sizecounter_out_528 = 33, dns_sizecounter_out_544 = 34, dns_sizecounter_out_560 = 35,
  dns_sizecounter_out_576 = 36, dns_sizecounter_out_592 = 37, dns_sizecounter_out_608 = 38, dns_sizecounter_out_624 = 39,
  dns_sizecounter_out_640 = 40, dns_sizecounter_out_656 = 41, dns_sizecounter_out_672 = 42, dns_sizecounter_out_688 = 43,
  dns_sizecounter_out_704 = 44, dns_sizecounter_out_720 = 45, dns_sizecounter_out_736 = 46, dns_sizecounter_out_752 = 47,
  dns_sizecounter_out_768 = 48, dns_sizecounter_out_784 = 49, dns_sizecounter_out_800 = 50, dns_sizecounter_out_816 = 51,
  dns_sizecounter_out_832 = 52, dns_sizecounter_out_848 = 53, dns_sizecounter_out_864 = 54, dns_sizecounter_out_880 = 55,
  dns_sizecounter_out_896 = 56, dns_sizecounter_out_912 = 57, dns_sizecounter_out_928 = 58, dns_sizecounter_out_944 = 59,
  dns_sizecounter_out_960 = 60, dns_sizecounter_out_976 = 61, dns_sizecounter_out_992 = 62, dns_sizecounter_out_1008 = 63,
  dns_sizecounter_out_1024 = 64, dns_sizecounter_out_1040 = 65, dns_sizecounter_out_1056 = 66, dns_sizecounter_out_1072 = 67,
  dns_sizecounter_out_1088 = 68, dns_sizecounter_out_1104 = 69, dns_sizecounter_out_1120 = 70, dns_sizecounter_out_1136 = 71,
  dns_sizecounter_out_1152 = 72, dns_sizecounter_out_1168 = 73, dns_sizecounter_out_1184 = 74, dns_sizecounter_out_1200 = 75,
  dns_sizecounter_out_1216 = 76, dns_sizecounter_out_1232 = 77, dns_sizecounter_out_1248 = 78, dns_sizecounter_out_1264 = 79,
  dns_sizecounter_out_1280 = 80, dns_sizecounter_out_1296 = 81, dns_sizecounter_out_1312 = 82, dns_sizecounter_out_1328 = 83,
  dns_sizecounter_out_1344 = 84, dns_sizecounter_out_1360 = 85, dns_sizecounter_out_1376 = 86, dns_sizecounter_out_1392 = 87,
  dns_sizecounter_out_1408 = 88, dns_sizecounter_out_1424 = 89, dns_sizecounter_out_1440 = 90, dns_sizecounter_out_1456 = 91,
  dns_sizecounter_out_1472 = 92, dns_sizecounter_out_1488 = 93, dns_sizecounter_out_1504 = 94, dns_sizecounter_out_1520 = 95,
  dns_sizecounter_out_1536 = 96, dns_sizecounter_out_1552 = 97, dns_sizecounter_out_1568 = 98, dns_sizecounter_out_1584 = 99,
  dns_sizecounter_out_1600 = 100, dns_sizecounter_out_1616 = 101, dns_sizecounter_out_1632 = 102, dns_sizecounter_out_1648 = 103,
  dns_sizecounter_out_1664 = 104, dns_sizecounter_out_1680 = 105, dns_sizecounter_out_1696 = 106, dns_sizecounter_out_1712 = 107,
  dns_sizecounter_out_1728 = 108, dns_sizecounter_out_1744 = 109, dns_sizecounter_out_1760 = 110, dns_sizecounter_out_1776 = 111,
  dns_sizecounter_out_1792 = 112, dns_sizecounter_out_1808 = 113, dns_sizecounter_out_1824 = 114, dns_sizecounter_out_1840 = 115,
  dns_sizecounter_out_1856 = 116, dns_sizecounter_out_1872 = 117, dns_sizecounter_out_1888 = 118, dns_sizecounter_out_1904 = 119,
  dns_sizecounter_out_1920 = 120, dns_sizecounter_out_1936 = 121, dns_sizecounter_out_1952 = 122, dns_sizecounter_out_1968 = 123,
  dns_sizecounter_out_1984 = 124, dns_sizecounter_out_2000 = 125, dns_sizecounter_out_2016 = 126, dns_sizecounter_out_2032 = 127,
  dns_sizecounter_out_2048 = 128, dns_sizecounter_out_2064 = 129, dns_sizecounter_out_2080 = 130, dns_sizecounter_out_2096 = 131,
  dns_sizecounter_out_2112 = 132, dns_sizecounter_out_2128 = 133, dns_sizecounter_out_2144 = 134, dns_sizecounter_out_2160 = 135,
  dns_sizecounter_out_2176 = 136, dns_sizecounter_out_2192 = 137, dns_sizecounter_out_2208 = 138, dns_sizecounter_out_2224 = 139,
  dns_sizecounter_out_2240 = 140, dns_sizecounter_out_2256 = 141, dns_sizecounter_out_2272 = 142, dns_sizecounter_out_2288 = 143,
  dns_sizecounter_out_2304 = 144, dns_sizecounter_out_2320 = 145, dns_sizecounter_out_2336 = 146, dns_sizecounter_out_2352 = 147,
  dns_sizecounter_out_2368 = 148, dns_sizecounter_out_2384 = 149, dns_sizecounter_out_2400 = 150, dns_sizecounter_out_2416 = 151,
  dns_sizecounter_out_2432 = 152, dns_sizecounter_out_2448 = 153, dns_sizecounter_out_2464 = 154, dns_sizecounter_out_2480 = 155,
  dns_sizecounter_out_2496 = 156, dns_sizecounter_out_2512 = 157, dns_sizecounter_out_2528 = 158, dns_sizecounter_out_2544 = 159,
  dns_sizecounter_out_2560 = 160, dns_sizecounter_out_2576 = 161, dns_sizecounter_out_2592 = 162, dns_sizecounter_out_2608 = 163,
  dns_sizecounter_out_2624 = 164, dns_sizecounter_out_2640 = 165, dns_sizecounter_out_2656 = 166, dns_sizecounter_out_2672 = 167,
  dns_sizecounter_out_2688 = 168, dns_sizecounter_out_2704 = 169, dns_sizecounter_out_2720 = 170, dns_sizecounter_out_2736 = 171,
  dns_sizecounter_out_2752 = 172, dns_sizecounter_out_2768 = 173, dns_sizecounter_out_2784 = 174, dns_sizecounter_out_2800 = 175,
  dns_sizecounter_out_2816 = 176, dns_sizecounter_out_2832 = 177, dns_sizecounter_out_2848 = 178, dns_sizecounter_out_2864 = 179,
  dns_sizecounter_out_2880 = 180, dns_sizecounter_out_2896 = 181, dns_sizecounter_out_2912 = 182, dns_sizecounter_out_2928 = 183,
  dns_sizecounter_out_2944 = 184, dns_sizecounter_out_2960 = 185, dns_sizecounter_out_2976 = 186, dns_sizecounter_out_2992 = 187,
  dns_sizecounter_out_3008 = 188, dns_sizecounter_out_3024 = 189, dns_sizecounter_out_3040 = 190, dns_sizecounter_out_3056 = 191,
  dns_sizecounter_out_3072 = 192, dns_sizecounter_out_3088 = 193, dns_sizecounter_out_3104 = 194, dns_sizecounter_out_3120 = 195,
  dns_sizecounter_out_3136 = 196, dns_sizecounter_out_3152 = 197, dns_sizecounter_out_3168 = 198, dns_sizecounter_out_3184 = 199,
  dns_sizecounter_out_3200 = 200, dns_sizecounter_out_3216 = 201, dns_sizecounter_out_3232 = 202, dns_sizecounter_out_3248 = 203,
  dns_sizecounter_out_3264 = 204, dns_sizecounter_out_3280 = 205, dns_sizecounter_out_3296 = 206, dns_sizecounter_out_3312 = 207,
  dns_sizecounter_out_3328 = 208, dns_sizecounter_out_3344 = 209, dns_sizecounter_out_3360 = 210, dns_sizecounter_out_3376 = 211,
  dns_sizecounter_out_3392 = 212, dns_sizecounter_out_3408 = 213, dns_sizecounter_out_3424 = 214, dns_sizecounter_out_3440 = 215,
  dns_sizecounter_out_3456 = 216, dns_sizecounter_out_3472 = 217, dns_sizecounter_out_3488 = 218, dns_sizecounter_out_3504 = 219,
  dns_sizecounter_out_3520 = 220, dns_sizecounter_out_3536 = 221, dns_sizecounter_out_3552 = 222, dns_sizecounter_out_3568 = 223,
  dns_sizecounter_out_3584 = 224, dns_sizecounter_out_3600 = 225, dns_sizecounter_out_3616 = 226, dns_sizecounter_out_3632 = 227,
  dns_sizecounter_out_3648 = 228, dns_sizecounter_out_3664 = 229, dns_sizecounter_out_3680 = 230, dns_sizecounter_out_3696 = 231,
  dns_sizecounter_out_3712 = 232, dns_sizecounter_out_3728 = 233, dns_sizecounter_out_3744 = 234, dns_sizecounter_out_3760 = 235,
  dns_sizecounter_out_3776 = 236, dns_sizecounter_out_3792 = 237, dns_sizecounter_out_3808 = 238, dns_sizecounter_out_3824 = 239,
  dns_sizecounter_out_3840 = 240, dns_sizecounter_out_3856 = 241, dns_sizecounter_out_3872 = 242, dns_sizecounter_out_3888 = 243,
  dns_sizecounter_out_3904 = 244, dns_sizecounter_out_3920 = 245, dns_sizecounter_out_3936 = 246, dns_sizecounter_out_3952 = 247,
  dns_sizecounter_out_3968 = 248, dns_sizecounter_out_3984 = 249, dns_sizecounter_out_4000 = 250, dns_sizecounter_out_4016 = 251,
  dns_sizecounter_out_4032 = 252, dns_sizecounter_out_4048 = 253, dns_sizecounter_out_4064 = 254, dns_sizecounter_out_4080 = 255,
  dns_sizecounter_out_4096 = 256, dns_sizecounter_out_max = 257
}
 
enum  dnssecsignstats_type_t { dns_dnssecsignstats_sign = 1, dns_dnssecsignstats_refresh = 2 }
 

Functions

ISC_LANG_BEGINDECLS isc_result_t dns_generalstats_create (isc_mem_t *mctx, dns_stats_t **statsp, int ncounters)
 
isc_result_t dns_rdatatypestats_create (isc_mem_t *mctx, dns_stats_t **statsp)
 
isc_result_t dns_rdatasetstats_create (isc_mem_t *mctx, dns_stats_t **statsp)
 
isc_result_t dns_opcodestats_create (isc_mem_t *mctx, dns_stats_t **statsp)
 
isc_result_t dns_rcodestats_create (isc_mem_t *mctx, dns_stats_t **statsp)
 
isc_result_t dns_dnssecsignstats_create (isc_mem_t *mctx, dns_stats_t **statsp)
 
void dns_stats_attach (dns_stats_t *stats, dns_stats_t **statsp)
 
void dns_stats_detach (dns_stats_t **statsp)
 
void dns_generalstats_increment (dns_stats_t *stats, isc_statscounter_t counter)
 
void dns_rdatatypestats_increment (dns_stats_t *stats, dns_rdatatype_t type)
 
void dns_rdatasetstats_increment (dns_stats_t *stats, dns_rdatastatstype_t rrsettype)
 
void dns_rdatasetstats_decrement (dns_stats_t *stats, dns_rdatastatstype_t rrsettype)
 
void dns_opcodestats_increment (dns_stats_t *stats, dns_opcode_t code)
 
void dns_rcodestats_increment (dns_stats_t *stats, dns_opcode_t code)
 
void dns_dnssecsignstats_increment (dns_stats_t *stats, dns_keytag_t id, uint8_t alg, dnssecsignstats_type_t operation)
 
void dns_generalstats_dump (dns_stats_t *stats, dns_generalstats_dumper_t dump_fn, void *arg, unsigned int options)
 
void dns_rdatatypestats_dump (dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn, void *arg, unsigned int options)
 
void dns_rdatasetstats_dump (dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn, void *arg, unsigned int options)
 
void dns_dnssecsignstats_dump (dns_stats_t *stats, dnssecsignstats_type_t operation, dns_dnssecsignstats_dumper_t dump_fn, void *arg, unsigned int options)
 
void dns_opcodestats_dump (dns_stats_t *stats, dns_opcodestats_dumper_t dump_fn, void *arg, unsigned int options)
 
void dns_rcodestats_dump (dns_stats_t *stats, dns_rcodestats_dumper_t dump_fn, void *arg, unsigned int options)
 
isc_result_t dns_stats_alloccounters (isc_mem_t *mctx, uint64_t **ctrp)
 
void dns_stats_freecounters (isc_mem_t *mctx, uint64_t **ctrp)
 

Variables

LIBDNS_EXTERNAL_DATA const char * dns_statscounter_names []
 

Macro Definition Documentation

◆ DNS_RDATASTATSTYPE_ATTR

#define DNS_RDATASTATSTYPE_ATTR (   type)    ((type) >> 16)

Definition at line 491 of file stats.h.

◆ DNS_RDATASTATSTYPE_ATTR_ANCIENT

#define DNS_RDATASTATSTYPE_ATTR_ANCIENT   0x0010

Definition at line 485 of file stats.h.

◆ DNS_RDATASTATSTYPE_ATTR_NXDOMAIN

#define DNS_RDATASTATSTYPE_ATTR_NXDOMAIN   0x0004

Definition at line 483 of file stats.h.

◆ DNS_RDATASTATSTYPE_ATTR_NXRRSET

#define DNS_RDATASTATSTYPE_ATTR_NXRRSET   0x0002

Definition at line 482 of file stats.h.

◆ DNS_RDATASTATSTYPE_ATTR_OTHERTYPE

#define DNS_RDATASTATSTYPE_ATTR_OTHERTYPE   0x0001

Definition at line 481 of file stats.h.

◆ DNS_RDATASTATSTYPE_ATTR_STALE

#define DNS_RDATASTATSTYPE_ATTR_STALE   0x0008

Definition at line 484 of file stats.h.

◆ DNS_RDATASTATSTYPE_BASE

#define DNS_RDATASTATSTYPE_BASE (   type)    ((dns_rdatatype_t)((type)&0xFFFF))

Definition at line 490 of file stats.h.

◆ DNS_RDATASTATSTYPE_VALUE

#define DNS_RDATASTATSTYPE_VALUE (   b,
 
)    (((a) << 16) | (b))

Definition at line 492 of file stats.h.

◆ DNS_STATS_NCOUNTERS

#define DNS_STATS_NCOUNTERS   8

Definition at line 442 of file stats.h.

Typedef Documentation

◆ dns_dnssecsignstats_dumper_t

typedef void(* dns_dnssecsignstats_dumper_t) (dns_keytag_t, uint64_t, void *)

Definition at line 508 of file stats.h.

◆ dns_generalstats_dumper_t

typedef void(* dns_generalstats_dumper_t) (isc_statscounter_t, uint64_t, void *)

Definition at line 505 of file stats.h.

◆ dns_opcodestats_dumper_t

typedef void(* dns_opcodestats_dumper_t) (dns_opcode_t, uint64_t, void *)

Definition at line 509 of file stats.h.

◆ dns_rcodestats_dumper_t

typedef void(* dns_rcodestats_dumper_t) (dns_rcode_t, uint64_t, void *)

Definition at line 510 of file stats.h.

◆ dns_rdatatypestats_dumper_t

typedef void(* dns_rdatatypestats_dumper_t) (dns_rdatastatstype_t, uint64_t, void *)

Definition at line 506 of file stats.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
dns_resstatscounter_queryv4 
dns_resstatscounter_queryv6 
dns_resstatscounter_responsev4 
dns_resstatscounter_responsev6 
dns_resstatscounter_nxdomain 
dns_resstatscounter_servfail 
dns_resstatscounter_formerr 
dns_resstatscounter_othererror 
dns_resstatscounter_edns0fail 
dns_resstatscounter_mismatch 
dns_resstatscounter_truncated 
dns_resstatscounter_lame 
dns_resstatscounter_retry 
dns_resstatscounter_gluefetchv4 
dns_resstatscounter_gluefetchv6 
dns_resstatscounter_gluefetchv4fail 
dns_resstatscounter_gluefetchv6fail 
dns_resstatscounter_val 
dns_resstatscounter_valsuccess 
dns_resstatscounter_valnegsuccess 
dns_resstatscounter_valfail 
dns_resstatscounter_dispabort 
dns_resstatscounter_dispsockfail 
dns_resstatscounter_querytimeout 
dns_resstatscounter_queryrtt0 
dns_resstatscounter_queryrtt1 
dns_resstatscounter_queryrtt2 
dns_resstatscounter_queryrtt3 
dns_resstatscounter_queryrtt4 
dns_resstatscounter_queryrtt5 
dns_resstatscounter_nfetch 
dns_resstatscounter_disprequdp 
dns_resstatscounter_dispreqtcp 
dns_resstatscounter_buckets 
dns_resstatscounter_refused 
dns_resstatscounter_cookienew 
dns_resstatscounter_cookieout 
dns_resstatscounter_cookiein 
dns_resstatscounter_cookieok 
dns_resstatscounter_badvers 
dns_resstatscounter_badcookie 
dns_resstatscounter_zonequota 
dns_resstatscounter_serverquota 
dns_resstatscounter_nextitem 
dns_resstatscounter_priming 
dns_resstatscounter_max 
dns_dnssecstats_asis 
dns_dnssecstats_downcase 
dns_dnssecstats_wildcard 
dns_dnssecstats_fail 
dns_dnssecstats_max 
dns_zonestatscounter_notifyoutv4 
dns_zonestatscounter_notifyoutv6 
dns_zonestatscounter_notifyinv4 
dns_zonestatscounter_notifyinv6 
dns_zonestatscounter_notifyrej 
dns_zonestatscounter_soaoutv4 
dns_zonestatscounter_soaoutv6 
dns_zonestatscounter_axfrreqv4 
dns_zonestatscounter_axfrreqv6 
dns_zonestatscounter_ixfrreqv4 
dns_zonestatscounter_ixfrreqv6 
dns_zonestatscounter_xfrsuccess 
dns_zonestatscounter_xfrfail 
dns_zonestatscounter_max 
dns_adbstats_nentries 
dns_adbstats_entriescnt 
dns_adbstats_nnames 
dns_adbstats_namescnt 
dns_adbstats_max 
dns_cachestatscounter_hits 
dns_cachestatscounter_misses 
dns_cachestatscounter_queryhits 
dns_cachestatscounter_querymisses 
dns_cachestatscounter_deletelru 
dns_cachestatscounter_deletettl 
dns_cachestatscounter_max 
dns_statscounter_success 
dns_statscounter_referral 
dns_statscounter_nxrrset 
dns_statscounter_nxdomain 
dns_statscounter_recursion 
dns_statscounter_failure 
dns_statscounter_duplicate 
dns_statscounter_dropped 
dns_dnstapcounter_success 
dns_dnstapcounter_drop 
dns_dnstapcounter_max 
dns_gluecachestatscounter_hits_present 
dns_gluecachestatscounter_hits_absent 
dns_gluecachestatscounter_inserts_present 
dns_gluecachestatscounter_inserts_absent 
dns_gluecachestatscounter_max 

Definition at line 24 of file stats.h.

◆ anonymous enum

anonymous enum
Enumerator
dns_sizecounter_in_0 
dns_sizecounter_in_16 
dns_sizecounter_in_32 
dns_sizecounter_in_48 
dns_sizecounter_in_64 
dns_sizecounter_in_80 
dns_sizecounter_in_96 
dns_sizecounter_in_112 
dns_sizecounter_in_128 
dns_sizecounter_in_144 
dns_sizecounter_in_160 
dns_sizecounter_in_176 
dns_sizecounter_in_192 
dns_sizecounter_in_208 
dns_sizecounter_in_224 
dns_sizecounter_in_240 
dns_sizecounter_in_256 
dns_sizecounter_in_272 
dns_sizecounter_in_288 
dns_sizecounter_in_max 

Definition at line 159 of file stats.h.

◆ anonymous enum

anonymous enum
Enumerator
dns_sizecounter_out_0 
dns_sizecounter_out_16 
dns_sizecounter_out_32 
dns_sizecounter_out_48 
dns_sizecounter_out_64 
dns_sizecounter_out_80 
dns_sizecounter_out_96 
dns_sizecounter_out_112 
dns_sizecounter_out_128 
dns_sizecounter_out_144 
dns_sizecounter_out_160 
dns_sizecounter_out_176 
dns_sizecounter_out_192 
dns_sizecounter_out_208 
dns_sizecounter_out_224 
dns_sizecounter_out_240 
dns_sizecounter_out_256 
dns_sizecounter_out_272 
dns_sizecounter_out_288 
dns_sizecounter_out_304 
dns_sizecounter_out_320 
dns_sizecounter_out_336 
dns_sizecounter_out_352 
dns_sizecounter_out_368 
dns_sizecounter_out_384 
dns_sizecounter_out_400 
dns_sizecounter_out_416 
dns_sizecounter_out_432 
dns_sizecounter_out_448 
dns_sizecounter_out_464 
dns_sizecounter_out_480 
dns_sizecounter_out_496 
dns_sizecounter_out_512 
dns_sizecounter_out_528 
dns_sizecounter_out_544 
dns_sizecounter_out_560 
dns_sizecounter_out_576 
dns_sizecounter_out_592 
dns_sizecounter_out_608 
dns_sizecounter_out_624 
dns_sizecounter_out_640 
dns_sizecounter_out_656 
dns_sizecounter_out_672 
dns_sizecounter_out_688 
dns_sizecounter_out_704 
dns_sizecounter_out_720 
dns_sizecounter_out_736 
dns_sizecounter_out_752 
dns_sizecounter_out_768 
dns_sizecounter_out_784 
dns_sizecounter_out_800 
dns_sizecounter_out_816 
dns_sizecounter_out_832 
dns_sizecounter_out_848 
dns_sizecounter_out_864 
dns_sizecounter_out_880 
dns_sizecounter_out_896 
dns_sizecounter_out_912 
dns_sizecounter_out_928 
dns_sizecounter_out_944 
dns_sizecounter_out_960 
dns_sizecounter_out_976 
dns_sizecounter_out_992 
dns_sizecounter_out_1008 
dns_sizecounter_out_1024 
dns_sizecounter_out_1040 
dns_sizecounter_out_1056 
dns_sizecounter_out_1072 
dns_sizecounter_out_1088 
dns_sizecounter_out_1104 
dns_sizecounter_out_1120 
dns_sizecounter_out_1136 
dns_sizecounter_out_1152 
dns_sizecounter_out_1168 
dns_sizecounter_out_1184 
dns_sizecounter_out_1200 
dns_sizecounter_out_1216 
dns_sizecounter_out_1232 
dns_sizecounter_out_1248 
dns_sizecounter_out_1264 
dns_sizecounter_out_1280 
dns_sizecounter_out_1296 
dns_sizecounter_out_1312 
dns_sizecounter_out_1328 
dns_sizecounter_out_1344 
dns_sizecounter_out_1360 
dns_sizecounter_out_1376 
dns_sizecounter_out_1392 
dns_sizecounter_out_1408 
dns_sizecounter_out_1424 
dns_sizecounter_out_1440 
dns_sizecounter_out_1456 
dns_sizecounter_out_1472 
dns_sizecounter_out_1488 
dns_sizecounter_out_1504 
dns_sizecounter_out_1520 
dns_sizecounter_out_1536 
dns_sizecounter_out_1552 
dns_sizecounter_out_1568 
dns_sizecounter_out_1584 
dns_sizecounter_out_1600 
dns_sizecounter_out_1616 
dns_sizecounter_out_1632 
dns_sizecounter_out_1648 
dns_sizecounter_out_1664 
dns_sizecounter_out_1680 
dns_sizecounter_out_1696 
dns_sizecounter_out_1712 
dns_sizecounter_out_1728 
dns_sizecounter_out_1744 
dns_sizecounter_out_1760 
dns_sizecounter_out_1776 
dns_sizecounter_out_1792 
dns_sizecounter_out_1808 
dns_sizecounter_out_1824 
dns_sizecounter_out_1840 
dns_sizecounter_out_1856 
dns_sizecounter_out_1872 
dns_sizecounter_out_1888 
dns_sizecounter_out_1904 
dns_sizecounter_out_1920 
dns_sizecounter_out_1936 
dns_sizecounter_out_1952 
dns_sizecounter_out_1968 
dns_sizecounter_out_1984 
dns_sizecounter_out_2000 
dns_sizecounter_out_2016 
dns_sizecounter_out_2032 
dns_sizecounter_out_2048 
dns_sizecounter_out_2064 
dns_sizecounter_out_2080 
dns_sizecounter_out_2096 
dns_sizecounter_out_2112 
dns_sizecounter_out_2128 
dns_sizecounter_out_2144 
dns_sizecounter_out_2160 
dns_sizecounter_out_2176 
dns_sizecounter_out_2192 
dns_sizecounter_out_2208 
dns_sizecounter_out_2224 
dns_sizecounter_out_2240 
dns_sizecounter_out_2256 
dns_sizecounter_out_2272 
dns_sizecounter_out_2288 
dns_sizecounter_out_2304 
dns_sizecounter_out_2320 
dns_sizecounter_out_2336 
dns_sizecounter_out_2352 
dns_sizecounter_out_2368 
dns_sizecounter_out_2384 
dns_sizecounter_out_2400 
dns_sizecounter_out_2416 
dns_sizecounter_out_2432 
dns_sizecounter_out_2448 
dns_sizecounter_out_2464 
dns_sizecounter_out_2480 
dns_sizecounter_out_2496 
dns_sizecounter_out_2512 
dns_sizecounter_out_2528 
dns_sizecounter_out_2544 
dns_sizecounter_out_2560 
dns_sizecounter_out_2576 
dns_sizecounter_out_2592 
dns_sizecounter_out_2608 
dns_sizecounter_out_2624 
dns_sizecounter_out_2640 
dns_sizecounter_out_2656 
dns_sizecounter_out_2672 
dns_sizecounter_out_2688 
dns_sizecounter_out_2704 
dns_sizecounter_out_2720 
dns_sizecounter_out_2736 
dns_sizecounter_out_2752 
dns_sizecounter_out_2768 
dns_sizecounter_out_2784 
dns_sizecounter_out_2800 
dns_sizecounter_out_2816 
dns_sizecounter_out_2832 
dns_sizecounter_out_2848 
dns_sizecounter_out_2864 
dns_sizecounter_out_2880 
dns_sizecounter_out_2896 
dns_sizecounter_out_2912 
dns_sizecounter_out_2928 
dns_sizecounter_out_2944 
dns_sizecounter_out_2960 
dns_sizecounter_out_2976 
dns_sizecounter_out_2992 
dns_sizecounter_out_3008 
dns_sizecounter_out_3024 
dns_sizecounter_out_3040 
dns_sizecounter_out_3056 
dns_sizecounter_out_3072 
dns_sizecounter_out_3088 
dns_sizecounter_out_3104 
dns_sizecounter_out_3120 
dns_sizecounter_out_3136 
dns_sizecounter_out_3152 
dns_sizecounter_out_3168 
dns_sizecounter_out_3184 
dns_sizecounter_out_3200 
dns_sizecounter_out_3216 
dns_sizecounter_out_3232 
dns_sizecounter_out_3248 
dns_sizecounter_out_3264 
dns_sizecounter_out_3280 
dns_sizecounter_out_3296 
dns_sizecounter_out_3312 
dns_sizecounter_out_3328 
dns_sizecounter_out_3344 
dns_sizecounter_out_3360 
dns_sizecounter_out_3376 
dns_sizecounter_out_3392 
dns_sizecounter_out_3408 
dns_sizecounter_out_3424 
dns_sizecounter_out_3440 
dns_sizecounter_out_3456 
dns_sizecounter_out_3472 
dns_sizecounter_out_3488 
dns_sizecounter_out_3504 
dns_sizecounter_out_3520 
dns_sizecounter_out_3536 
dns_sizecounter_out_3552 
dns_sizecounter_out_3568 
dns_sizecounter_out_3584 
dns_sizecounter_out_3600 
dns_sizecounter_out_3616 
dns_sizecounter_out_3632 
dns_sizecounter_out_3648 
dns_sizecounter_out_3664 
dns_sizecounter_out_3680 
dns_sizecounter_out_3696 
dns_sizecounter_out_3712 
dns_sizecounter_out_3728 
dns_sizecounter_out_3744 
dns_sizecounter_out_3760 
dns_sizecounter_out_3776 
dns_sizecounter_out_3792 
dns_sizecounter_out_3808 
dns_sizecounter_out_3824 
dns_sizecounter_out_3840 
dns_sizecounter_out_3856 
dns_sizecounter_out_3872 
dns_sizecounter_out_3888 
dns_sizecounter_out_3904 
dns_sizecounter_out_3920 
dns_sizecounter_out_3936 
dns_sizecounter_out_3952 
dns_sizecounter_out_3968 
dns_sizecounter_out_3984 
dns_sizecounter_out_4000 
dns_sizecounter_out_4016 
dns_sizecounter_out_4032 
dns_sizecounter_out_4048 
dns_sizecounter_out_4064 
dns_sizecounter_out_4080 
dns_sizecounter_out_4096 
dns_sizecounter_out_max 

Definition at line 182 of file stats.h.

◆ dnssecsignstats_type_t

Enumerator
dns_dnssecsignstats_sign 
dns_dnssecsignstats_refresh 

Definition at line 497 of file stats.h.

Function Documentation

◆ dns_dnssecsignstats_create()

isc_result_t dns_dnssecsignstats_create ( isc_mem_t mctx,
dns_stats_t **  statsp 
)

Definition at line 240 of file stats.c.

References create_stats(), dns_statstype_dnssec, dnssecsign_max_keys, mctx, and REQUIRE.

Referenced by named_zone_configure().

◆ dns_dnssecsignstats_dump()

void dns_dnssecsignstats_dump ( dns_stats_t stats,
dnssecsignstats_type_t  operation,
dns_dnssecsignstats_dumper_t  dump_fn,
void *  arg,
unsigned int  options 
)

◆ dns_dnssecsignstats_increment()

◆ dns_generalstats_create()

ISC_LANG_BEGINDECLS isc_result_t dns_generalstats_create ( isc_mem_t mctx,
dns_stats_t **  statsp,
int  ncounters 
)

Definition at line 198 of file stats.c.

References create_stats(), dns_statstype_general, mctx, and REQUIRE.

◆ dns_generalstats_dump()

void dns_generalstats_dump ( dns_stats_t stats,
dns_generalstats_dumper_t  dump_fn,
void *  arg,
unsigned int  options 
)

Definition at line 425 of file stats.c.

References arg, DNS_STATS_VALID, dns_statstype_general, isc_stats_dump(), and REQUIRE.

◆ dns_generalstats_increment()

void dns_generalstats_increment ( dns_stats_t stats,
isc_statscounter_t  counter 
)

Definition at line 255 of file stats.c.

References DNS_STATS_VALID, dns_statstype_general, isc_stats_increment(), and REQUIRE.

◆ dns_opcodestats_create()

isc_result_t dns_opcodestats_create ( isc_mem_t mctx,
dns_stats_t **  statsp 
)

Definition at line 225 of file stats.c.

References create_stats(), dns_statstype_opcode, mctx, and REQUIRE.

Referenced by ns_server_create().

◆ dns_opcodestats_dump()

void dns_opcodestats_dump ( dns_stats_t stats,
dns_opcodestats_dumper_t  dump_fn,
void *  arg,
unsigned int  options 
)

Definition at line 581 of file stats.c.

References arg, DNS_STATS_VALID, dns_statstype_opcode, isc_stats_dump(), opcode_dumpcb(), and REQUIRE.

Referenced by named_stats_dump().

◆ dns_opcodestats_increment()

void dns_opcodestats_increment ( dns_stats_t stats,
dns_opcode_t  code 
)

Definition at line 345 of file stats.c.

References DNS_STATS_VALID, dns_statstype_opcode, isc_stats_increment(), and REQUIRE.

Referenced by ns__client_request().

◆ dns_rcodestats_create()

isc_result_t dns_rcodestats_create ( isc_mem_t mctx,
dns_stats_t **  statsp 
)

Definition at line 232 of file stats.c.

References create_stats(), dns_rcode_badcookie, dns_statstype_rcode, mctx, and REQUIRE.

Referenced by ns_server_create().

◆ dns_rcodestats_dump()

void dns_rcodestats_dump ( dns_stats_t stats,
dns_rcodestats_dumper_t  dump_fn,
void *  arg,
unsigned int  options 
)

Definition at line 593 of file stats.c.

References arg, DNS_STATS_VALID, dns_statstype_rcode, isc_stats_dump(), rcode_dumpcb(), and REQUIRE.

Referenced by named_stats_dump().

◆ dns_rcodestats_increment()

void dns_rcodestats_increment ( dns_stats_t stats,
dns_opcode_t  code 
)

Definition at line 352 of file stats.c.

References dns_rcode_badcookie, DNS_STATS_VALID, dns_statstype_rcode, isc_stats_increment(), and REQUIRE.

Referenced by ns_client_send().

◆ dns_rdatasetstats_create()

isc_result_t dns_rdatasetstats_create ( isc_mem_t mctx,
dns_stats_t **  statsp 
)

Definition at line 217 of file stats.c.

References create_stats(), dns_statstype_rdataset, mctx, RDTYPECOUNTER_MAXVAL, and REQUIRE.

Referenced by dns_rbtdb_create().

◆ dns_rdatasetstats_decrement()

void dns_rdatasetstats_decrement ( dns_stats_t stats,
dns_rdatastatstype_t  rrsettype 
)

Definition at line 336 of file stats.c.

References DNS_STATS_VALID, dns_statstype_rdataset, REQUIRE, and update_rdatasetstats().

Referenced by update_rrsetstats().

◆ dns_rdatasetstats_dump()

void dns_rdatasetstats_dump ( dns_stats_t stats,
dns_rdatatypestats_dumper_t  dump_fn,
void *  arg,
unsigned int  options 
)

Definition at line 506 of file stats.c.

References arg, DNS_STATS_VALID, dns_statstype_rdataset, isc_stats_dump(), rdataset_dumpcb(), and REQUIRE.

Referenced by named_stats_dump().

◆ dns_rdatasetstats_increment()

void dns_rdatasetstats_increment ( dns_stats_t stats,
dns_rdatastatstype_t  rrsettype 
)

Definition at line 327 of file stats.c.

References DNS_STATS_VALID, dns_statstype_rdataset, REQUIRE, and update_rdatasetstats().

Referenced by update_rrsetstats().

◆ dns_rdatatypestats_create()

isc_result_t dns_rdatatypestats_create ( isc_mem_t mctx,
dns_stats_t **  statsp 
)

◆ dns_rdatatypestats_dump()

void dns_rdatatypestats_dump ( dns_stats_t stats,
dns_rdatatypestats_dumper_t  dump_fn,
void *  arg,
unsigned int  options 
)

Definition at line 457 of file stats.c.

References arg, DNS_STATS_VALID, dns_statstype_rdtype, isc_stats_dump(), rdatatype_dumpcb(), and REQUIRE.

Referenced by named_stats_dump().

◆ dns_rdatatypestats_increment()

void dns_rdatatypestats_increment ( dns_stats_t stats,
dns_rdatatype_t  type 
)

◆ dns_stats_alloccounters()

isc_result_t dns_stats_alloccounters ( isc_mem_t mctx,
uint64_t **  ctrp 
)

Definition at line 613 of file stats.c.

References DNS_STATS_NCOUNTERS, isc_mem_get, ISC_R_NOMEMORY, ISC_R_SUCCESS, and mctx.

◆ dns_stats_attach()

void dns_stats_attach ( dns_stats_t stats,
dns_stats_t **  statsp 
)

◆ dns_stats_detach()

◆ dns_stats_freecounters()

void dns_stats_freecounters ( isc_mem_t mctx,
uint64_t **  ctrp 
)

Definition at line 627 of file stats.c.

References DNS_STATS_NCOUNTERS, isc_mem_put, and mctx.

Variable Documentation

◆ dns_statscounter_names

LIBDNS_EXTERNAL_DATA const char* dns_statscounter_names[]
extern

Obsolete variables and functions follow:

Definition at line 607 of file stats.c.