7 #ifndef CTRL_DHCPV6_SRV_H
8 #define CTRL_DHCPV6_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);
boost::shared_ptr< TimerMgr > TimerMgrPtr
Type definition of the shared pointer to TimerMgr.
virtual void shutdownServer(int exit_value)
Initiates shutdown procedure for the whole DHCPv6 server.
static ControlledDhcpv6Srv * getInstance()
Returns pointer to the sole instance of Dhcpv6Srv.
static isc::data::ConstElementPtr processCommand(const std::string &command, isc::data::ConstElementPtr args)
Command processor.
virtual ~ControlledDhcpv6Srv()
Destructor.
ControlledDhcpv6Srv(uint16_t server_port=DHCP6_SERVER_PORT, uint16_t client_port=0)
Constructor.
boost::shared_ptr< SrvConfig > SrvConfigPtr
Non-const pointer to the SrvConfig.
void init(const std::string &config_file)
Initializes the server.
static isc::data::ConstElementPtr processConfig(isc::data::ConstElementPtr new_config)
Configuration processor.
boost::shared_ptr< const Element > ConstElementPtr
Defines the logger used by the top-level component of kea-dhcp-ddns.
This file contains several functions and constants that are used for handling commands and responses ...
void cleanup()
Performs cleanup, immediately before termination.
isc::data::ConstElementPtr checkConfig(isc::data::ConstElementPtr new_config)
Configuration checker.
Controlled version of the DHCPv6 server.
boost::shared_ptr< ReconnectCtl > ReconnectCtlPtr
Pointer to an instance of ReconnectCtl.
isc::data::ConstElementPtr loadConfigFile(const std::string &file_name)
Configure DHCPv6 server using the configuration file specified.