21using namespace isc::dhcp;
22using namespace isc::process;
39 if (family == AF_INET) {
40 if (proc_name !=
"kea-dhcp4") {
42 <<
", expected kea-dhcp4");
45 if (proc_name !=
"kea-dhcp6") {
47 <<
", expected kea-dhcp6");
An exception that is thrown if an error occurs while configuring any server.
A generic exception that is thrown when an unexpected error condition occurs.
uint16_t getFamily() const
Returns address family.
static CfgMgr & instance()
returns a single instance of Configuration Manager
static TrackingLeaseMgr & instance()
Return current lease manager.
static bool haveInstance()
Indicates if the lease manager has been instantiated.
virtual void clearClassLeaseCounts()=0
Clears the class-lease count map.
isc::data::ConstElementPtr getParameters()
Get configuration parameter common code.
static std::string getProcName()
returns the process name This value is used as when forming the default PID file name
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< SrvConfig > SrvConfigPtr
Non-const pointer to the SrvConfig.
int load(isc::hooks::LibraryHandle &handle)
Called by the hooks library manager when the library is loaded.
int unload()
Called by the hooks library manager when the library is unloaded.
int multi_threading_compatible()
Return multi-threading compatibility.
Defines the logger used by the top-level component of kea-lfc.
void initialize(isc::dhcp::SrvConfigPtr const &config)
Reinitialize data structures required for limiting.
static LimitManager & instance()
singleton access function