7 #ifndef OPTION6_PDEXCLUDE_H
8 #define OPTION6_PDEXCLUDE_H
12 #include <boost/shared_ptr.hpp>
39 const uint8_t delegated_prefix_length,
41 const uint8_t excluded_prefix_length);
79 virtual uint16_t
len()
const;
84 virtual std::string
toText(
int indent = 0)
const;
96 const uint8_t delegated_prefix_length)
const;
100 return (excluded_prefix_length_);
113 uint8_t getSubnetIDLength(
const uint8_t delegated_prefix_length,
114 const uint8_t excluded_prefix_length)
const;
117 uint8_t excluded_prefix_length_;
120 std::vector<uint8_t> subnet_id_;
129 #endif // OPTION6_PDEXCLUDE_H
asiolink::IOAddress getExcludedPrefix(const asiolink::IOAddress &delegated_prefix, const uint8_t delegated_prefix_length) const
Returns excluded prefix.
virtual void pack(isc::util::OutputBuffer &buf) const
Writes option in wire-format to a buffer.
boost::shared_ptr< Option > OptionPtr
virtual uint16_t len() const
Returns length of the complete option (data length + DHCPv6 option header)
DHCPv6 option class representing Prefix Exclude Option (RFC 6603).
Option6PDExclude(const isc::asiolink::IOAddress &delegated_prefix, const uint8_t delegated_prefix_length, const isc::asiolink::IOAddress &excluded_prefix, const uint8_t excluded_prefix_length)
Constructor.
uint8_t getExcludedPrefixLength() const
Returns excluded prefix length.
const std::vector< uint8_t > & getExcludedPrefixSubnetID() const
Returns an excluded prefix in a binary format.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
boost::shared_ptr< Option6PDExclude > Option6PDExcludePtr
Pointer to the Option6PDExclude object.
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual std::string toText(int indent=0) const
Returns Prefix Exclude option in textual format.
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
The IOAddress class represents an IP addresses (version agnostic)
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.