diff options
Diffstat (limited to 'dnsdist-rings.hh')
-rw-r--r-- | dnsdist-rings.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dnsdist-rings.hh b/dnsdist-rings.hh index 6bd93af..084044f 100644 --- a/dnsdist-rings.hh +++ b/dnsdist-rings.hh @@ -58,10 +58,12 @@ struct Rings { struct timespec when; struct dnsheader dh; unsigned int usec; - unsigned int size; + uint16_t size; uint16_t qtype; // outgoing protocol dnsdist::Protocol protocol; + + bool isACacheHit() const; }; struct Shard @@ -236,7 +238,7 @@ private: #endif } - void insertResponseLocked(boost::circular_buffer<Response>& ring, const struct timespec& when, const ComboAddress& requestor, const DNSName& name, uint16_t qtype, unsigned int usec, unsigned int size, const struct dnsheader& dh, const ComboAddress& backend, dnsdist::Protocol protocol) + void insertResponseLocked(boost::circular_buffer<Response>& ring, const struct timespec& when, const ComboAddress& requestor, const DNSName& name, uint16_t qtype, unsigned int usec, uint16_t size, const struct dnsheader& dh, const ComboAddress& backend, dnsdist::Protocol protocol) { if (!ring.full()) { d_nbResponseEntries++; |