![]() |
Kea 3.1.9
|
#include <config.h>#include <lease_cmds.h>#include <lease_cmds_log.h>#include <binding_variables.h>#include <cc/command_interpreter.h>#include <dhcpsrv/cfgmgr.h>#include <hooks/hooks.h>#include <process/daemon.h>#include <sflq_cmds.h>Go to the source code of this file.
Namespaces | |
| namespace | isc |
| Defines the logger used by the top-level component of kea-lfc. | |
| namespace | isc::lease_cmds |
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_by_state (CalloutHandle &handle) |
| This is a command callout for 'lease4-get-by-state' command. | |
| int | lease4_get_page (CalloutHandle &handle) |
| This is a command callout for 'lease4-get-page' command. | |
| int | lease4_offer (CalloutHandle &handle) |
| lease4_offer callout implementation. | |
| 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_by_hw_address (CalloutHandle &handle) |
| This is a command callout for 'lease6-get-by-hw-address' command. | |
| int | lease6_get_by_state (CalloutHandle &handle) |
| This is a command callout for 'lease6-get-by-state' 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 | leases4_committed (CalloutHandle &handle) |
| leases4_committed callout implementation. | |
| int | leases6_committed (CalloutHandle &handle) |
| leases6_committed callout implementation. | |
| 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 | sflq_pool4_del (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool4-del' command. | |
| int | sflq_pool4_get_all (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool4-get-all' command. | |
| int | sflq_pool4_get_by_range (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool4-get-by-range' command. | |
| int | sflq_pool4_get_by_subnet (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool4-get-by-subnet' command. | |
| int | sflq_pool4_rebuild (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool4-rebuild' command. | |
| int | sflq_pool6_del (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool6-del' command. | |
| int | sflq_pool6_get_all (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool6-get-all' command. | |
| int | sflq_pool6_get_by_range (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool6-get-by-range' command. | |
| int | sflq_pool6_get_by_subnet (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool6-get-by-subnet' command. | |
| int | sflq_pool6_rebuild (CalloutHandle &handle) |
| This is a command callout for 'sflq-pool6-rebuild' command. | |
| int | unload () |
| This function is called when the library is unloaded. | |
Variables | |
| BindingVariableMgrPtr | isc::lease_cmds::binding_var_mgr |
| Singleton that manages configured binding variables. | |
| 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 47 of file lease_cmds_callouts.cc.
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 234 of file lease_cmds_callouts.cc.
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 80 of file lease_cmds_callouts.cc.
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 102 of file lease_cmds_callouts.cc.
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 168 of file lease_cmds_callouts.cc.
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 212 of file lease_cmds_callouts.cc.
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 146 of file lease_cmds_callouts.cc.
Referenced by load().
| int lease4_get_by_state | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease4-get-by-state' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 190 of file lease_cmds_callouts.cc.
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 124 of file lease_cmds_callouts.cc.
Referenced by load().
| int lease4_offer | ( | CalloutHandle & | handle | ) |
lease4_offer callout implementation.
| handle | callout handle. |
Definition at line 548 of file lease_cmds_callouts.cc.
References isc::lease_cmds::binding_var_mgr, isc::hooks::CalloutHandle::getStatus(), LEASE_CMDS_LEASE4_OFFER_FAILED, isc::lease_cmds::lease_cmds_logger, LOG_ERROR, CalloutHandle::NEXT_STEP_DROP, and CalloutHandle::NEXT_STEP_SKIP.
| 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 300 of file lease_cmds_callouts.cc.
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 256 of file lease_cmds_callouts.cc.
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 278 of file lease_cmds_callouts.cc.
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 322 of file lease_cmds_callouts.cc.
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 58 of file lease_cmds_callouts.cc.
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 69 of file lease_cmds_callouts.cc.
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 245 of file lease_cmds_callouts.cc.
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 91 of file lease_cmds_callouts.cc.
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 113 of file lease_cmds_callouts.cc.
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 179 of file lease_cmds_callouts.cc.
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 223 of file lease_cmds_callouts.cc.
Referenced by load().
| int lease6_get_by_hw_address | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-get-by-hw-address' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 157 of file lease_cmds_callouts.cc.
Referenced by load().
| int lease6_get_by_state | ( | CalloutHandle & | handle | ) |
This is a command callout for 'lease6-get-by-state' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 201 of file lease_cmds_callouts.cc.
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 135 of file lease_cmds_callouts.cc.
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 311 of file lease_cmds_callouts.cc.
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 267 of file lease_cmds_callouts.cc.
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 289 of file lease_cmds_callouts.cc.
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 333 of file lease_cmds_callouts.cc.
Referenced by load().
| int leases4_committed | ( | CalloutHandle & | handle | ) |
leases4_committed callout implementation.
| handle | callout handle. |
Definition at line 570 of file lease_cmds_callouts.cc.
References isc::lease_cmds::binding_var_mgr, isc::hooks::CalloutHandle::getStatus(), LEASE_CMDS_LEASES4_COMMITTED_FAILED, isc::lease_cmds::lease_cmds_logger, LOG_ERROR, CalloutHandle::NEXT_STEP_DROP, and CalloutHandle::NEXT_STEP_SKIP.
| int leases6_committed | ( | CalloutHandle & | handle | ) |
leases6_committed callout implementation.
| handle | callout handle. |
Definition at line 592 of file lease_cmds_callouts.cc.
References isc::lease_cmds::binding_var_mgr, isc::hooks::CalloutHandle::getStatus(), LEASE_CMDS_LEASES6_COMMITTED_FAILED, isc::lease_cmds::lease_cmds_logger, LOG_ERROR, CalloutHandle::NEXT_STEP_DROP, and CalloutHandle::NEXT_STEP_SKIP.
| int load | ( | LibraryHandle & | handle | ) |
This function is called when the library is loaded.
| handle | library handle |
Definition at line 452 of file lease_cmds_callouts.cc.
References isc::lease_cmds::binding_var_mgr, isc::dhcp::CfgMgr::getFamily(), isc::hooks::LibraryHandle::getParameters(), 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_by_state(), 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_by_hw_address(), lease6_get_by_state(), lease6_get_page(), lease6_resend_ddns(), lease6_update(), lease6_wipe(), lease6_write(), LEASE_CMDS_INIT_OK, LEASE_CMDS_LOAD_ERROR, isc::lease_cmds::lease_cmds_logger, LOG_ERROR, LOG_INFO, isc::hooks::LibraryHandle::registerCommandCallout(), sflq_pool4_del(), sflq_pool4_get_all(), sflq_pool4_get_by_range(), sflq_pool4_get_by_subnet(), sflq_pool4_rebuild(), sflq_pool6_del(), sflq_pool6_get_all(), sflq_pool6_get_by_range(), sflq_pool6_get_by_subnet(), and sflq_pool6_rebuild().
| int multi_threading_compatible | ( | ) |
This function is called to retrieve the multi-threading compatibility.
Definition at line 541 of file lease_cmds_callouts.cc.
| int sflq_pool4_del | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool4-del' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 388 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool4DelHandler().
Referenced by load().
| int sflq_pool4_get_all | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool4-get-all' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 355 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool4GetAllHandler().
Referenced by load().
| int sflq_pool4_get_by_range | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool4-get-by-range' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 377 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool4GetByRangeHandler().
Referenced by load().
| int sflq_pool4_get_by_subnet | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool4-get-by-subnet' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 366 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool4GetBySubnetHandler().
Referenced by load().
| int sflq_pool4_rebuild | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool4-rebuild' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 344 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool4RebuildHandler().
Referenced by load().
| int sflq_pool6_del | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool6-del' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 443 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool6DelHandler().
Referenced by load().
| int sflq_pool6_get_all | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool6-get-all' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 410 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool6GetAllHandler().
Referenced by load().
| int sflq_pool6_get_by_range | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool6-get-by-range' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 432 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool6GetByRangeHandler().
Referenced by load().
| int sflq_pool6_get_by_subnet | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool6-get-by-subnet' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 421 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool6GetBySubnetHandler().
Referenced by load().
| int sflq_pool6_rebuild | ( | CalloutHandle & | handle | ) |
This is a command callout for 'sflq-pool6-rebuild' command.
| handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 399 of file lease_cmds_callouts.cc.
References isc::lease_cmds::SflqCmds::sflqPool6RebuildHandler().
Referenced by load().
| int unload | ( | ) |
This function is called when the library is unloaded.
Definition at line 533 of file lease_cmds_callouts.cc.
References LEASE_CMDS_DEINIT_OK, isc::lease_cmds::lease_cmds_logger, and LOG_INFO.