31 "a different layout");
44 "a different layout");
75 begin +=
sizeof(uint32_t);
77 begin +=
sizeof(uint32_t);
80 begin +=
sizeof(uint32_t);
99 output <<
": iaid=" <<
iaid_ <<
", t1=" <<
t1_ <<
", t2=" <<
t2_
102 return (output.str());
112 length += it.second->len();
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
A generic exception that is thrown if a parameter given to a method would refer to or modify out-of-r...
uint32_t iaid_
keeps IA identifier
static const size_t OPTION6_IA_LEN
Length of IA_NA and IA_PD content.
uint32_t t1_
keeps T1 timer value
virtual uint16_t len() const
returns complete length of option
Option6IA(uint16_t type, uint32_t iaid)
Ctor, used for constructed options, usually during transmission.
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
void pack(isc::util::OutputBuffer &buf, bool check=true) const
Writes option in wire-format to buf, returns pointer to first unused byte after stored option.
virtual std::string toText(int indent=0) const
Provides human readable text representation.
uint32_t t2_
keeps T2 timer value
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.
uint16_t type_
option type (0-255 for DHCPv4, 0-65535 for DHCPv6)
std::string headerToText(const int indent=0, const std::string &type_name="") const
Returns option header in the textual format.
std::string suboptionsToText(const int indent=0) const
Returns collection of suboptions in the textual format.
void setEncapsulatedSpace(const std::string &encapsulated_space)
Sets the name of the option space encapsulated by this option.
uint16_t getType() const
Returns option type (0-255 for DHCPv4, 0-65535 for DHCPv6)
void unpackOptions(const OptionBuffer &buf)
Builds a collection of sub options from the buffer.
void packOptions(isc::util::OutputBuffer &buf, bool check=true) const
Store sub options in a buffer.
static const size_t OPTION6_HDR_LEN
length of any DHCPv6 option header
OptionCollection options_
collection for storing suboptions
OptionPtr cloneInternal() const
Copies this option and returns a pointer to the copy.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
void writeUint16(uint16_t data)
Write an unsigned 16-bit integer in host byte order into the buffer in network byte order.
void writeUint32(uint32_t data)
Write an unsigned 32-bit integer in host byte order into the buffer in network byte order.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
std::vector< uint8_t > OptionBuffer
buffer types used in DHCP code.
boost::shared_ptr< Option > OptionPtr
uint32_t readUint32(void const *const buffer, size_t const length)
uint32_t wrapper over readUint.
Defines the logger used by the top-level component of kea-lfc.
#define DHCP6_OPTION_SPACE