pdns  4.2.0-rc1
About: PowerDNS daemon - a high performance authoritative nameserver. Release candidate.
  Fossies Dox: pdns-4.2.0-rc1.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

PacketCache Class Reference

#include <packetcache.hh>

Inheritance diagram for PacketCache:
Collaboration diagram for PacketCache:

Static Public Member Functions

static uint32_t canHashPacket (const std::string &packet, uint16_t *ecsBegin, uint16_t *ecsEnd)
 
static uint32_t canHashPacket (const std::string &packet)
 
static bool queryHeaderMatches (const std::string &cachedQuery, const std::string &query)
 
static bool queryMatches (const std::string &cachedQuery, const std::string &query, const DNSName &qname)
 
static bool queryMatches (const std::string &cachedQuery, const std::string &query, const DNSName &qname, uint16_t ecsBegin, uint16_t ecsEnd)
 

Detailed Description

Definition at line 29 of file packetcache.hh.

Member Function Documentation

◆ canHashPacket() [1/2]

static uint32_t PacketCache::canHashPacket ( const std::string &  packet)
inlinestatic

Definition at line 83 of file packetcache.hh.

References burtle(), and dns_tolower().

◆ canHashPacket() [2/2]

static uint32_t PacketCache::canHashPacket ( const std::string &  packet,
uint16_t *  ecsBegin,
uint16_t *  ecsEnd 
)
inlinestatic

◆ queryHeaderMatches()

static bool PacketCache::queryHeaderMatches ( const std::string &  cachedQuery,
const std::string &  query 
)
inlinestatic

Definition at line 104 of file packetcache.hh.

Referenced by queryMatches().

◆ queryMatches() [1/2]

static bool PacketCache::queryMatches ( const std::string &  cachedQuery,
const std::string &  query,
const DNSName qname 
)
inlinestatic

◆ queryMatches() [2/2]

static bool PacketCache::queryMatches ( const std::string &  cachedQuery,
const std::string &  query,
const DNSName qname,
uint16_t  ecsBegin,
uint16_t  ecsEnd 
)
inlinestatic

Definition at line 124 of file packetcache.hh.

References queryHeaderMatches(), and DNSName::wirelength().


The documentation for this class was generated from the following file: