get_dns_stats: Expose total cache size and cached text entries

It wasn't possible from script land to determine the total size
of the cache table held by the DNS_Mgr. Add the total and also
also the TEXT entries count.
This commit is contained in:
Arne Welzel 2023-03-03 10:48:50 +01:00
parent 16bdcd27bd
commit 2251c67e56
6 changed files with 16 additions and 0 deletions

View file

@ -757,6 +757,8 @@ type DNSStats: record {
pending: count; ##< Current pending queries.
cached_hosts: count; ##< Number of cached hosts.
cached_addresses: count; ##< Number of cached addresses.
cached_texts: count; ##< Number of cached text entries.
cached_total: count; ##< Total number of cached entries.
};
## Statistics about number of gaps in TCP connections.