~ubuntu-branches/ubuntu/maverick/pdns/maverick-updates

« back to all changes in this revision

Viewing changes to pdns/recursor_cache.hh

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Haas
  • Date: 2009-02-25 23:25:51 UTC
  • mfrom: (1.1.7 upstream) (12.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090225232551-ts3d9k9q0ti442i9
Tags: 2.9.22-1
New upstream version (closes: #513409).

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  void doSlash(int perc);
40
40
  void doDumpAndClose(int fd);
41
41
  int doWipeCache(const string& name, uint16_t qtype=0xffff);
 
42
  bool doAgeCache(time_t now, const string& name, uint16_t qtype, int32_t newTTL);
42
43
  uint64_t cacheHits, cacheMisses;
43
44
  bool d_followRFC2181;
44
45
 
118
119
  pair<cache_t::iterator, cache_t::iterator> d_cachecache;
119
120
  string d_cachedqname;
120
121
  bool d_cachecachevalid;
 
122
  bool attemptToRefreshNSTTL(const QType& qt, const set<DNSResourceRecord>& content, const CacheEntry& stored);
 
123
 
121
124
};
122
125
string DNSRR2String(const DNSResourceRecord& rr);
123
126
DNSResourceRecord String2DNSRR(const string& qname, const QType& qt, const string& serial, uint32_t ttd);