7 #ifndef OPTION6_IAPREFIX_H
8 #define OPTION6_IAPREFIX_H
65 uint8_t prefix_length, uint32_t preferred, uint32_t
valid);
75 OptionBuffer::const_iterator end);
109 virtual std::string
toText(
int indent = 0)
const;
116 uint8_t length) {
addr_ = prefix; prefix_len_ = length; }
121 virtual uint16_t
len()
const;
133 void mask(OptionBuffer::const_iterator begin,
134 OptionBuffer::const_iterator end,
147 #endif // OPTION_IAPREFIX_H
virtual std::string toText(int indent=0) const
Returns string representation of the option.
isc::asiolink::IOAddress addr_
contains an IPv6 address
boost::shared_ptr< Option > OptionPtr
void setPrefix(const isc::asiolink::IOAddress &prefix, uint8_t length)
sets address in this option.
uint8_t getLength() const
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
std::vector< uint8_t > OptionBuffer
buffer types used in DHCP code.
virtual uint16_t len() const
returns data length (data length + DHCPv4/DHCPv6 option header)
boost::shared_ptr< Option6IAPrefix > Option6IAPrefixPtr
Pointer to the Option6IAPrefix object.
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
Defines the logger used by the top-level component of kea-dhcp-ddns.
static const size_t OPTION6_IAPREFIX_LEN
length of the fixed part of the IAPREFIX option
void pack(isc::util::OutputBuffer &buf) const
Writes option in wire-format.
Option6IAPrefix(uint16_t type, const isc::asiolink::IOAddress &addr, uint8_t prefix_length, uint32_t preferred, uint32_t valid)
Constructor, used for options constructed (during transmission).
The IOAddress class represents an IP addresses (version agnostic)
Class that represents IAPREFIX option in DHCPv6.
virtual bool valid() const
returns if option is valid (e.g.