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