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