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);
110 virtual std::string
toText(
int indent = 0)
const;
117 uint8_t length) {
addr_ = prefix; prefix_len_ = length; }
122 virtual uint16_t
len()
const;
134 void mask(OptionBuffer::const_iterator begin,
135 OptionBuffer::const_iterator end,
The IOAddress class represents an IP addresses (version agnostic)
isc::asiolink::IOAddress addr_
contains an IPv6 address
Class that represents IAPREFIX option in DHCPv6.
static const size_t OPTION6_IAPREFIX_LEN
length of the fixed part of the IAPREFIX option
virtual std::string toText(int indent=0) const
Returns string representation of the option.
uint8_t getLength() const
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.
void setPrefix(const isc::asiolink::IOAddress &prefix, uint8_t length)
sets address in this option.
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).
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
virtual uint16_t len() const
returns data length (data length + DHCPv4/DHCPv6 option header)
void pack(isc::util::OutputBuffer &buf, bool check=true) const
Writes option in wire-format.
virtual bool valid() const
returns if option is valid (e.g.
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< Option6IAPrefix > Option6IAPrefixPtr
Pointer to the Option6IAPrefix object.
std::vector< uint8_t > OptionBuffer
buffer types used in DHCP code.
boost::shared_ptr< Option > OptionPtr
Defines the logger used by the top-level component of kea-lfc.