14#include <boost/shared_ptr.hpp>
25class AbstractMessageRenderer;
244 void setUDPSize(
const uint16_t udp_size) { udp_size_ = udp_size; }
308 const uint8_t extended_rcode)
const;
317 const uint8_t extended_rcode)
const;
340 std::string
toText()
const;
353 const uint8_t version_;
int version()
returns Kea hooks version.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
The EDNS class represents the EDNS OPT RR defined in RFC2671.
void setUDPSize(const uint16_t udp_size)
Specify the maximum payload size of UDP messages that use this EDNS.
EDNS(const uint8_t version=SUPPORTED_VERSION)
Constructor with the EDNS version.
std::string toText() const
Convert the EDNS to a string.
bool getDNSSECAwareness() const
Returns whether the message sender is DNSSEC aware.
void setDNSSECAwareness(const bool is_aware)
Specifies whether the sender of the message containing this EDNS is DNSSEC aware.
uint8_t getVersion() const
Returns the version of EDNS.
uint32_t toWire(AbstractMessageRenderer &renderer, const uint8_t extended_rcode) const
Render the EDNS in the wire format.
uint16_t getUDPSize() const
Returns the maximum payload size of UDP messages for the sender of the message containing this EDNS.
static const uint8_t SUPPORTED_VERSION
The highest EDNS version this implementation supports.
The Name class encapsulates DNS names.
The RRClass class encapsulates DNS resource record classes.
The RRTTL class encapsulates TTLs used in DNS resource records.
The RRType class encapsulates DNS resource record types.
The Rdata class is an abstract base class that provides a set of common interfaces to manipulate conc...
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
EDNS * createEDNSFromRR(const Name &name, const RRClass &rrclass, const RRType &rrtype, const RRTTL &ttl, const Rdata &rdata, uint8_t &extended_rcode)
Create a new EDNS object from a set of RR parameters, also providing the extended RCODE value.
boost::shared_ptr< const EDNS > ConstEDNSPtr
A pointer-like type pointing to an immutable EDNS object.
boost::shared_ptr< EDNS > EDNSPtr
A pointer-like type pointing to an EDNS object.
Defines the logger used by the top-level component of kea-lfc.