7 #ifndef OPTION6_ADDRLST_H
8 #define OPTION6_ADDRLST_H
12 #include <boost/shared_ptr.hpp>
62 virtual std::string
toText(
int indent = 0)
const;
85 virtual uint16_t
len()
const;
97 #endif // OPTION_ADDRLST_H
void pack(isc::util::OutputBuffer &buf) const
Assembles on-wire form of this option.
boost::shared_ptr< Option > OptionPtr
DHCPv6 Option class for handling list of IPv6 addresses.
virtual std::string toText(int indent=0) const
Returns string representation of the option.
boost::shared_ptr< Option6AddrLst > Option6AddrLstPtr
Pointer to the Option6AddrLst object.
std::vector< isc::asiolink::IOAddress > AddressContainer
a container for (IPv6) addresses
void setAddress(const isc::asiolink::IOAddress &addr)
Sets a single address.
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received data.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
Option6AddrLst(uint16_t type, const AddressContainer &addrs)
Constructor used during option generation.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
AddressContainer getAddresses() const
Returns vector with addresses.
void setAddresses(const AddressContainer &addrs)
Sets list of addresses.
The IOAddress class represents an IP addresses (version agnostic)
virtual uint16_t len() const
Returns length of the complete option (data length + DHCPv4/DHCPv6 option header) ...