Kea 2.7.5
|
#include <config.h>
#include <lease_cmds.h>
#include <lease_cmds_log.h>
#include <cc/command_interpreter.h>
#include <dhcpsrv/cfgmgr.h>
#include <hooks/hooks.h>
#include <process/daemon.h>
Go to the source code of this file.
Functions | |
int | lease4_add (CalloutHandle &handle) |
This is a command callout for 'lease4-add' command. | |
int | lease4_del (CalloutHandle &handle) |
This is a command callout for 'lease4-del' command. | |
int | lease4_get (CalloutHandle &handle) |
This is a command callout for 'lease4-get' command. | |
int | lease4_get_all (CalloutHandle &handle) |
This is a command callout for 'lease4-get-all' command. | |
int | lease4_get_by_client_id (CalloutHandle &handle) |
This is a command callout for 'lease4-get-by-client-id' command. | |
int | lease4_get_by_hostname (CalloutHandle &handle) |
This is a command callout for 'lease4-get-by-hostname' command. | |
int | lease4_get_by_hw_address (CalloutHandle &handle) |
This is a command callout for 'lease4-get-by-hw-address' command. | |
int | lease4_get_page (CalloutHandle &handle) |
This is a command callout for 'lease4-get-page' command. | |
int | lease4_resend_ddns (CalloutHandle &handle) |
This is a command callout for 'lease4-resend-ddns' command. | |
int | lease4_update (CalloutHandle &handle) |
This is a command callout for 'lease4-update' command. | |
int | lease4_wipe (CalloutHandle &handle) |
This is a command callout for 'lease4-wipe' command. | |
int | lease4_write (CalloutHandle &handle) |
This is a command callout for 'lease4-write' command. | |
int | lease6_add (CalloutHandle &handle) |
This is a command callout for 'lease6-add' command. | |
int | lease6_bulk_apply (CalloutHandle &handle) |
This is a command callout for 'lease6-bulk-apply' command. | |
int | lease6_del (CalloutHandle &handle) |
This is a command callout for 'lease6-del' command. | |
int | lease6_get (CalloutHandle &handle) |
This is a command callout for 'lease6-get' command. | |
int | lease6_get_all (CalloutHandle &handle) |
This is a command callout for 'lease6-get-all' command. | |
int | lease6_get_by_duid (CalloutHandle &handle) |
This is a command callout for 'lease6-get-by-duid' command. | |
int | lease6_get_by_hostname (CalloutHandle &handle) |
This is a command callout for 'lease6-get-by-hostname' command. | |
int | lease6_get_page (CalloutHandle &handle) |
This is a command callout for 'lease6-get-page' command. | |
int | lease6_resend_ddns (CalloutHandle &handle) |
This is a command callout for 'lease6-resend-ddns' command. | |
int | lease6_update (CalloutHandle &handle) |
This is a command callout for 'lease6-update' command. | |
int | lease6_wipe (CalloutHandle &handle) |
This is a command callout for 'lease6-wipe' command. | |
int | lease6_write (CalloutHandle &handle) |
This is a command callout for 'lease6-write' command. | |
int | load (LibraryHandle &handle) |
This function is called when the library is loaded. | |
int | multi_threading_compatible () |
This function is called to retrieve the multi-threading compatibility. | |
int | unload () |
This function is called when the library is unloaded. | |
int lease4_add | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-add' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 35 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseAddHandler().
Referenced by load().
int lease4_del | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-del' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 189 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease4DelHandler().
Referenced by load().
int lease4_get | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-get' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 68 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetHandler().
Referenced by load().
int lease4_get_all | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-get-all' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 90 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetAllHandler().
Referenced by load().
int lease4_get_by_client_id | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-get-by-client-id' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 145 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetByClientIdHandler().
Referenced by load().
int lease4_get_by_hostname | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-get-by-hostname' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 167 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetByHostnameHandler().
Referenced by load().
int lease4_get_by_hw_address | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-get-by-hw-address' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 134 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetByHwAddressHandler().
Referenced by load().
int lease4_get_page | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-get-page' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 112 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetPageHandler().
Referenced by load().
int lease4_resend_ddns | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-resend-ddns' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 255 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease4ResendDdnsHandler().
Referenced by load().
int lease4_update | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-update' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 211 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease4UpdateHandler().
Referenced by load().
int lease4_wipe | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-wipe' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 233 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease4WipeHandler().
Referenced by load().
int lease4_write | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-write' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 277 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseWriteHandler().
Referenced by load().
int lease6_add | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-add' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 46 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseAddHandler().
Referenced by load().
int lease6_bulk_apply | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-bulk-apply' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 57 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease6BulkApplyHandler().
Referenced by load().
int lease6_del | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-del' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 200 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease6DelHandler().
Referenced by load().
int lease6_get | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-get' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 79 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetHandler().
Referenced by load().
int lease6_get_all | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-get-all' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 101 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetAllHandler().
Referenced by load().
int lease6_get_by_duid | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-get-by-duid' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 156 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetByDuidHandler().
Referenced by load().
int lease6_get_by_hostname | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-get-by-hostname' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 178 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetByHostnameHandler().
Referenced by load().
int lease6_get_page | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-get-page' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 123 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseGetPageHandler().
Referenced by load().
int lease6_resend_ddns | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-resend-ddns' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 266 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease6ResendDdnsHandler().
Referenced by load().
int lease6_update | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-update' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 222 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease6UpdateHandler().
Referenced by load().
int lease6_wipe | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-wipe' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 244 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::lease6WipeHandler().
Referenced by load().
int lease6_write | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-write' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 288 of file lease_cmds_callouts.cc.
References isc::lease_cmds::LeaseCmds::leaseWriteHandler().
Referenced by load().
int load | ( | LibraryHandle & | handle | ) |
This function is called when the library is loaded.
handle | library handle |
Definition at line 297 of file lease_cmds_callouts.cc.
References isc::process::Daemon::getProcName(), isc::dhcp::CfgMgr::instance(), isc_throw, lease4_add(), lease4_del(), lease4_get(), lease4_get_all(), lease4_get_by_client_id(), lease4_get_by_hostname(), lease4_get_by_hw_address(), lease4_get_page(), lease4_resend_ddns(), lease4_update(), lease4_wipe(), lease4_write(), lease6_add(), lease6_bulk_apply(), lease6_del(), lease6_get(), lease6_get_all(), lease6_get_by_duid(), lease6_get_by_hostname(), lease6_get_page(), lease6_resend_ddns(), lease6_update(), lease6_wipe(), lease6_write(), LEASE_CMDS_INIT_OK, isc::lease_cmds::lease_cmds_logger, LOG_INFO, and isc::hooks::LibraryHandle::registerCommandCallout().
int multi_threading_compatible | ( | ) |
This function is called to retrieve the multi-threading compatibility.
Definition at line 357 of file lease_cmds_callouts.cc.
int unload | ( | ) |
This function is called when the library is unloaded.
Definition at line 349 of file lease_cmds_callouts.cc.
References LEASE_CMDS_DEINIT_OK, isc::lease_cmds::lease_cmds_logger, and LOG_INFO.