pdns  4.3.0
About: PowerDNS daemon - a high performance authoritative nameserver.
  Fossies Dox: pdns-4.3.0.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

PacketCache Class Reference

#include <packetcache.hh>

Inheritance diagram for PacketCache:
[legend]
Collaboration diagram for PacketCache:
[legend]

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 27 of file packetcache.hh.

Member Function Documentation

◆ canHashPacket() [1/2]

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

Definition at line 81 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 102 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

Definition at line 111 of file packetcache.hh.

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

Referenced by AuthPacketCache::entryMatches().

◆ 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 122 of file packetcache.hh.

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


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