summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-cache.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-12-27 21:19:28 +0100
committerTom Gundersen <teg@jklm.no>2015-12-27 21:19:28 +0100
commitf791b677a8798fdfe08e706dccbfa7a5c8e49433 (patch)
tree5730e77ab0ff5a9da4502fb3104ed46493da378f /src/resolve/resolved-dns-cache.h
parent326092991934fe3a02921d1e1278073a5b677dcc (diff)
parentf4461e5641d53f27d6e76e0607bdaa9c0c58c1f6 (diff)
Merge pull request #2225 from poettering/dnssec7
Seventh DNSSEC patchset
Diffstat (limited to 'src/resolve/resolved-dns-cache.h')
-rw-r--r--src/resolve/resolved-dns-cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-cache.h b/src/resolve/resolved-dns-cache.h
index 856c975299..9c85ca4c58 100644
--- a/src/resolve/resolved-dns-cache.h
+++ b/src/resolve/resolved-dns-cache.h
@@ -29,6 +29,8 @@
typedef struct DnsCache {
Hashmap *by_key;
Prioq *by_expiry;
+ unsigned n_hit;
+ unsigned n_miss;
} DnsCache;
#include "resolved-dns-answer.h"
@@ -47,4 +49,6 @@ int dns_cache_check_conflicts(DnsCache *cache, DnsResourceRecord *rr, int owner_
void dns_cache_dump(DnsCache *cache, FILE *f);
bool dns_cache_is_empty(DnsCache *cache);
+unsigned dns_cache_size(DnsCache *cache);
+
int dns_cache_export_shared_to_packet(DnsCache *cache, DnsPacket *p);