7 #ifndef OPTION6_IAADDR_H
8 #define OPTION6_IAADDR_H
12 #include <boost/shared_ptr.hpp>
37 uint32_t preferred, uint32_t
valid);
46 Option6IAAddr(uint32_t type, OptionBuffer::const_iterator begin,
47 OptionBuffer::const_iterator end);
73 toText(
int indent = 0)
const;
112 virtual uint16_t
len()
const;
128 #endif // OPTION_IA_H
static const size_t OPTION6_IAADDR_LEN
length of the fixed part of the IAADDR option
virtual uint16_t len() const
returns data length (data length + DHCPv4/DHCPv6 option header)
Option6IAAddr(uint16_t type, const isc::asiolink::IOAddress &addr, uint32_t preferred, uint32_t valid)
Constructor, used for options constructed (during transmission).
unsigned int valid_
contains valid-lifetime timer (in seconds)
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
isc::asiolink::IOAddress addr_
contains an IPv6 address
boost::shared_ptr< Option > OptionPtr
virtual std::string toText(int indent=0) const
Returns string representation of the option.
isc::asiolink::IOAddress getAddress() const
Returns address contained within this option.
void setPreferred(unsigned int pref)
Sets preferred lifetime (in seconds)
void setValid(unsigned int valid)
Sets valid lifetime (in seconds).
unsigned int getPreferred() const
Returns preferred lifetime of an address.
void setAddress(const isc::asiolink::IOAddress &addr)
sets address in this option.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
unsigned int getValid() const
Returns valid lifetime of an address.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
Defines the logger used by the top-level component of kea-dhcp-ddns.
The IOAddress class represents an IP addresses (version agnostic)
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.
unsigned int preferred_
contains preferred-lifetime timer (in seconds)
void pack(isc::util::OutputBuffer &buf) const
Writes option in wire-format.
boost::shared_ptr< Option6IAAddr > Option6IAAddrPtr
A pointer to the isc::dhcp::Option6IAAddr object.
virtual bool valid() const
returns if option is valid (e.g.