7 #ifndef CTRL_DHCPV4_SRV_H
8 #define CTRL_DHCPV4_SRV_H
33 uint16_t client_port = 0);
44 void init(
const std::string& config_file);
139 static void sessionReader(
void);
150 commandShutdownHandler(
const std::string& command,
163 commandLibReloadHandler(
const std::string& command,
176 commandConfigReloadHandler(
const std::string& command,
188 commandConfigGetHandler(
const std::string& command,
205 commandConfigWriteHandler(
const std::string& command,
218 commandConfigSetHandler(
const std::string& command,
231 commandConfigTestHandler(
const std::string& command,
242 commandDhcpDisableHandler(
const std::string& command,
252 commandDhcpEnableHandler(
const std::string& command,
265 commandVersionGetHandler(
const std::string& command,
277 commandBuildReportHandler(
const std::string& command,
294 commandLeasesReclaimHandler(
const std::string& command,
306 commandServerTagGetHandler(
const std::string& command,
319 commandConfigBackendPullHandler(
const std::string& command,
331 commandStatusGetHandler(
const std::string& command,
344 commandStatisticSetMaxSampleCountAllHandler(
const std::string& command,
357 commandStatisticSetMaxSampleAgeAllHandler(
const std::string& command,
376 void reclaimExpiredLeases(
const size_t max_leases,
const uint16_t timeout,
377 const bool remove_lease,
378 const uint16_t max_unwarned_cycles);
388 void deleteExpiredReclaimedLeases(
const uint32_t secs);
439 boost::shared_ptr<unsigned> failure_count);
void init(const std::string &config_file)
Initializes the server.
isc::data::ConstElementPtr loadConfigFile(const std::string &file_name)
Configure DHCPv4 server using the configuration file specified.
boost::shared_ptr< TimerMgr > TimerMgrPtr
Type definition of the shared pointer to TimerMgr.
isc::data::ConstElementPtr checkConfig(isc::data::ConstElementPtr new_config)
Configuration checker.
boost::shared_ptr< SrvConfig > SrvConfigPtr
Non-const pointer to the SrvConfig.
static isc::data::ConstElementPtr processConfig(isc::data::ConstElementPtr new_config)
Configuration processor.
static isc::data::ConstElementPtr processCommand(const std::string &command, isc::data::ConstElementPtr args)
Command processor.
virtual ~ControlledDhcpv4Srv()
Destructor.
boost::shared_ptr< const Element > ConstElementPtr
void cleanup()
Performs cleanup, immediately before termination.
Defines the logger used by the top-level component of kea-dhcp-ddns.
ControlledDhcpv4Srv(uint16_t server_port=DHCP4_SERVER_PORT, uint16_t client_port=0)
Constructor.
This file contains several functions and constants that are used for handling commands and responses ...
static ControlledDhcpv4Srv * getInstance()
Returns pointer to the sole instance of Dhcpv4Srv.
Controlled version of the DHCPv4 server.
boost::shared_ptr< ReconnectCtl > ReconnectCtlPtr
Pointer to an instance of ReconnectCtl.
void shutdownServer(int exit_value)
Initiates shutdown procedure for the whole DHCPv4 server.