56 const std::string& proc_name = Daemon::getProcName();
57 if (family == AF_INET) {
58 if (proc_name !=
"kea-dhcp4") {
60 <<
", expected kea-dhcp4");
63 if (proc_name !=
"kea-dhcp6") {
65 <<
", expected kea-dhcp6");
const isc::log::MessageID STAT_CMDS_INIT_OK
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
static CfgMgr & instance()
returns a single instance of Configuration Manager
void registerCommandCallout(const std::string &command_name, CalloutPtr callout)
Register control command handler.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
Implements the logic for processing commands pertaining to stat manipulation.
Per-packet callout handle.
uint16_t getFamily() const
Returns address family.
A generic exception that is thrown when an unexpected error condition occurs.
int stat_lease4_get(CalloutHandle &handle)
This is a command callout for 'stat-lease4-get' command.
int load(LibraryHandle &handle)
This function is called when the library is loaded.
int statLease4GetHandler(hooks::CalloutHandle &handle)
stat-lease4-get command handler
int stat_lease6_get(CalloutHandle &handle)
This is a command callout for 'stat-lease6-get' command.
int statLease6GetHandler(hooks::CalloutHandle &handle)
stat-lease6-get command handler
This file contains several functions and constants that are used for handling commands and responses ...
int unload()
This function is called when the library is unloaded.
int multi_threading_compatible()
This function is called to retrieve the multi-threading compatibility.
const isc::log::MessageID STAT_CMDS_DEINIT_OK
isc::log::Logger stat_cmds_logger("stat-cmds-hooks")