28 :enabled_(false), subnet4o6_(std::make_pair(
asiolink::
IOAddress(
"::"), 128u), true) {
66 subnet4o6_ = std::make_pair(subnet, prefix);
73 return (interface_id_);
The IOAddress class represents an IP addresses (version agnostic)
A template representing an optional value.
A wrapper interface for the ASIO library.
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< Option > OptionPtr
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.
This structure contains information about DHCP4o6 (RFC7341)
void setIface4o6(const std::string &iface)
Sets the 4o6-interface.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Cfg4o6()
the default constructor.
util::Optional< std::string > getIface4o6() const
Returns the DHCP4o6 interface.
util::Optional< std::pair< asiolink::IOAddress, uint8_t > > getSubnet4o6() const
Returns prefix/len for the IPv6 subnet.
void setSubnet4o6(const asiolink::IOAddress &subnet, uint8_t prefix)
Sets the prefix/length information (content of the 4o6-subnet).
void enabled(bool enabled)
Sets the DHCP4o6 enabled status.
bool enabled() const
Returns whether the DHCP4o6 is enabled or not.
OptionPtr getInterfaceId() const
Returns the interface-id.
void setInterfaceId(const OptionPtr &opt)
Sets the interface-id.