]> granicus.if.org Git - pdns/commitdiff
Merge pull request #6749 from rgacogne/dnsdist-cache-dump
authorRemi Gacogne <rgacogne@users.noreply.github.com>
Wed, 4 Jul 2018 08:26:12 +0000 (10:26 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Jul 2018 08:26:12 +0000 (10:26 +0200)
dnsdist: Add the ability to dump a summary of the cache content

1  2 
pdns/dnsdist-cache.cc
pdns/dnsdist-cache.hh
pdns/dnsdist-lua-bindings.cc
pdns/dnsdistdist/docs/reference/config.rst

Simple merge
index c0892ded650e076d2056c121f067f28c5b3277e1,1c4d54edca9151d7ba885832f4a80c3aac505679..e4f6d5bff9338803069018f8c1751c5ea619da2e
@@@ -50,8 -50,9 +50,9 @@@ public
    uint64_t getMaxEntries() const { return d_maxEntries; }
    uint64_t getTTLTooShorts() const { return d_ttlTooShorts; }
    uint64_t getEntriesCount();
+   uint64_t dump(int fd);
  
 -  static uint32_t getMinTTL(const char* packet, uint16_t length);
 +  static uint32_t getMinTTL(const char* packet, uint16_t length, bool* seenNoDataSOA);
  
  private:
  
Simple merge