Kea 2.7.5
lease_cmds_callouts.cc File Reference
#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>
+ Include dependency graph for lease_cmds_callouts.cc:

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.
 

Function Documentation

◆ lease4_add()

int lease4_add ( CalloutHandle & handle)

This is a command callout for 'lease4-add' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 35 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseAddHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_del()

int lease4_del ( CalloutHandle & handle)

This is a command callout for 'lease4-del' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 189 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease4DelHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_get()

int lease4_get ( CalloutHandle & handle)

This is a command callout for 'lease4-get' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 68 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_get_all()

int lease4_get_all ( CalloutHandle & handle)

This is a command callout for 'lease4-get-all' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 90 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetAllHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_get_by_client_id()

int lease4_get_by_client_id ( CalloutHandle & handle)

This is a command callout for 'lease4-get-by-client-id' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 145 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetByClientIdHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_get_by_hostname()

int lease4_get_by_hostname ( CalloutHandle & handle)

This is a command callout for 'lease4-get-by-hostname' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 167 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetByHostnameHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_get_by_hw_address()

int lease4_get_by_hw_address ( CalloutHandle & handle)

This is a command callout for 'lease4-get-by-hw-address' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 134 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetByHwAddressHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_get_page()

int lease4_get_page ( CalloutHandle & handle)

This is a command callout for 'lease4-get-page' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 112 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetPageHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_resend_ddns()

int lease4_resend_ddns ( CalloutHandle & handle)

This is a command callout for 'lease4-resend-ddns' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 255 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease4ResendDdnsHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_update()

int lease4_update ( CalloutHandle & handle)

This is a command callout for 'lease4-update' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 211 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease4UpdateHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_wipe()

int lease4_wipe ( CalloutHandle & handle)

This is a command callout for 'lease4-wipe' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 233 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease4WipeHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease4_write()

int lease4_write ( CalloutHandle & handle)

This is a command callout for 'lease4-write' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 277 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseWriteHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_add()

int lease6_add ( CalloutHandle & handle)

This is a command callout for 'lease6-add' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 46 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseAddHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_bulk_apply()

int lease6_bulk_apply ( CalloutHandle & handle)

This is a command callout for 'lease6-bulk-apply' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 57 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease6BulkApplyHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_del()

int lease6_del ( CalloutHandle & handle)

This is a command callout for 'lease6-del' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 200 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease6DelHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_get()

int lease6_get ( CalloutHandle & handle)

This is a command callout for 'lease6-get' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 79 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_get_all()

int lease6_get_all ( CalloutHandle & handle)

This is a command callout for 'lease6-get-all' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 101 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetAllHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_get_by_duid()

int lease6_get_by_duid ( CalloutHandle & handle)

This is a command callout for 'lease6-get-by-duid' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 156 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetByDuidHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_get_by_hostname()

int lease6_get_by_hostname ( CalloutHandle & handle)

This is a command callout for 'lease6-get-by-hostname' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 178 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetByHostnameHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_get_page()

int lease6_get_page ( CalloutHandle & handle)

This is a command callout for 'lease6-get-page' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 if an error occurs, 3 if no leases are returned.

Definition at line 123 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseGetPageHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_resend_ddns()

int lease6_resend_ddns ( CalloutHandle & handle)

This is a command callout for 'lease6-resend-ddns' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 266 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease6ResendDdnsHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_update()

int lease6_update ( CalloutHandle & handle)

This is a command callout for 'lease6-update' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 222 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease6UpdateHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_wipe()

int lease6_wipe ( CalloutHandle & handle)

This is a command callout for 'lease6-wipe' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 244 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::lease6WipeHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ lease6_write()

int lease6_write ( CalloutHandle & handle)

This is a command callout for 'lease6-write' command.

Parameters
handleCallout handle used to retrieve a command and provide a response.
Returns
0 if this callout has been invoked successfully, 1 otherwise.

Definition at line 288 of file lease_cmds_callouts.cc.

References isc::lease_cmds::LeaseCmds::leaseWriteHandler().

Referenced by load().

+ Here is the call graph for this function:

◆ load()

◆ multi_threading_compatible()

int multi_threading_compatible ( )

This function is called to retrieve the multi-threading compatibility.

Returns
1 which means compatible with multi-threading.

Definition at line 357 of file lease_cmds_callouts.cc.

◆ unload()

int unload ( )

This function is called when the library is unloaded.

Returns
0 if deregistration was successful, 1 otherwise

Definition at line 349 of file lease_cmds_callouts.cc.

References LEASE_CMDS_DEINIT_OK, isc::lease_cmds::lease_cmds_logger, and LOG_INFO.