11 #include <boost/shared_ptr.hpp> 16 #define DHCP4_OPTION_SPACE "dhcp4" 17 #define DHCP6_OPTION_SPACE "dhcp6" 18 #define MAPE_V6_OPTION_SPACE "s46-cont-mape-options" 19 #define MAPT_V6_OPTION_SPACE "s46-cont-mapt-options" 20 #define LW_V6_OPTION_SPACE "s46-cont-lw-options" 21 #define V4V6_RULE_OPTION_SPACE "s46-rule-options" 22 #define V4V6_BIND_OPTION_SPACE "s46-v4v6bind-options" 85 OptionSpace(
const std::string& name,
const bool vendor_space =
false);
90 const std::string&
getName()
const {
return (name_); }
94 vendor_space_ =
false;
105 vendor_space_ =
true;
169 OptionSpace6(
const std::string& name,
const uint32_t enterprise_number);
183 uint32_t enterprise_number_;
189 #endif // OPTION_SPACE_H boost::shared_ptr< OptionSpace > OptionSpacePtr
A pointer to OptionSpace object.
static bool validateName(const std::string &name)
Checks that the provided option space name is valid.
uint32_t getEnterpriseNumber() const
Return enterprise number for the option space.
void setVendorSpace()
Mark option space as vendor specific.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
OptionSpace6(const std::string &name)
Constructor for non-vendor-specific options.
const std::string & getName() const
Return option space name.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void clearVendorSpace()
Mark option space as non-vendor space.
InvalidOptionSpace(const char *file, size_t line, const char *what)
OptionSpace(const std::string &name, const bool vendor_space=false)
Constructor.
std::map< std::string, OptionSpacePtr > OptionSpaceCollection
A collection of option spaces.
DHCPv6 option space with enterprise number assigned.
Exception to be thrown when invalid option space is specified.
bool isVendorSpace() const
Check if option space is vendor specific.