Kea  1.9.9-git
lease_cmds_callouts.cc File Reference
#include <config.h>
#include <lease_cmds.h>
#include <lease_cmds_log.h>
#include <cc/command_interpreter.h>
#include <hooks/hooks.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. More...
 
int lease4_del (CalloutHandle &handle)
 This is a command callout for 'lease4-del' command. More...
 
int lease4_get (CalloutHandle &handle)
 This is a command callout for 'lease4-get' command. More...
 
int lease4_get_all (CalloutHandle &handle)
 This is a command callout for 'lease4-get-all' command. More...
 
int lease4_get_by_client_id (CalloutHandle &handle)
 This is a command callout for 'lease4-get-by-client-id' command. More...
 
int lease4_get_by_hostname (CalloutHandle &handle)
 This is a command callout for 'lease4-get-by-hostname' command. More...
 
int lease4_get_by_hw_address (CalloutHandle &handle)
 This is a command callout for 'lease4-get-by-hw-address' command. More...
 
int lease4_get_page (CalloutHandle &handle)
 This is a command callout for 'lease4-get-page' command. More...
 
int lease4_resend_ddns (CalloutHandle &handle)
 This is a command callout for 'lease4-resend-ddns' command. More...
 
int lease4_update (CalloutHandle &handle)
 This is a command callout for 'lease4-update' command. More...
 
int lease4_wipe (CalloutHandle &handle)
 This is a command callout for 'lease4-wipe' command. More...
 
int lease6_add (CalloutHandle &handle)
 This is a command callout for 'lease6-add' command. More...
 
int lease6_bulk_apply (CalloutHandle &handle)
 This is a command callout for 'lease6-bulk-apply' command. More...
 
int lease6_del (CalloutHandle &handle)
 This is a command callout for 'lease6-del' command. More...
 
int lease6_get (CalloutHandle &handle)
 This is a command callout for 'lease6-get' command. More...
 
int lease6_get_all (CalloutHandle &handle)
 This is a command callout for 'lease6-get-all' command. More...
 
int lease6_get_by_duid (CalloutHandle &handle)
 This is a command callout for 'lease6-get-by-duid' command. More...
 
int lease6_get_by_hostname (CalloutHandle &handle)
 This is a command callout for 'lease6-get-by-hostname' command. More...
 
int lease6_get_page (CalloutHandle &handle)
 This is a command callout for 'lease6-get-page' command. More...
 
int lease6_resend_ddns (CalloutHandle &handle)
 This is a command callout for 'lease6-resend-ddns' command. More...
 
int lease6_update (CalloutHandle &handle)
 This is a command callout for 'lease6-update' command. More...
 
int lease6_wipe (CalloutHandle &handle)
 This is a command callout for 'lease6-wipe' command. More...
 
int load (LibraryHandle &handle)
 This function is called when the library is loaded. More...
 
int multi_threading_compatible ()
 This function is called to retrieve the multi-threading compatibility. More...
 
int unload ()
 This function is called when the library is unloaded. More...
 

Function Documentation

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 31 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 185 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 64 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 86 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 141 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 163 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 130 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 108 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 251 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 207 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 229 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 42 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 53 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 196 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 75 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 97 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 152 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 174 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 119 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 262 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 218 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 240 of file lease_cmds_callouts.cc.

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

Referenced by load().

+ Here is the call graph for this function:

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 314 of file lease_cmds_callouts.cc.

int unload ( )

This function is called when the library is unloaded.

Returns
0 if deregistration was successful, 1 otherwise

Definition at line 306 of file lease_cmds_callouts.cc.

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