45 bool convenient_notation =
false);
80 std::string
toText(
int indent = 0)
const override;
86 uint16_t
len()
const override;
113 bool convenient_notation_;
Represents DNR Instance which is used both in DHCPv4 and DHCPv6 Encrypted DNS Option.
Represents DHCPv6 Encrypted DNS Option (code 144).
uint16_t len() const override
Returns length of the complete option (data length + DHCPv4/DHCPv6 option header)
Option6Dnr(OptionBufferConstIter begin, OptionBufferConstIter end, bool convenient_notation=false)
Constructor of the Option from on-wire data.
void packAddresses(isc::util::OutputBuffer &buf) const override
Writes the IP address(es) in the wire format into a buffer.
void unpackAddresses(OptionBufferConstIter &begin, OptionBufferConstIter end) override
Unpacks IP address(es) from wire data and stores it/them in ip_addresses_.
std::string toText(int indent=0) const override
Returns string representation of the option.
void unpack(OptionBufferConstIter begin, OptionBufferConstIter end) override
Parses received wire data buffer.
void pack(util::OutputBuffer &buf, bool check=false) const override
Writes option in wire-format to a buffer.
OptionPtr clone() const override
Copies this option and returns a pointer to the copy.
void check() const
A protected method used for option correctness.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
boost::shared_ptr< Option6Dnr > Option6DnrPtr
A pointer to the Option6Dnr object.
boost::shared_ptr< Option > OptionPtr
Defines the logger used by the top-level component of kea-lfc.