Kea  1.5.0
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_page (CalloutHandle &handle)
 This is a command callout for 'lease4-get-page' 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_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_page (CalloutHandle &handle)
 This is a command callout for 'lease6-get-page' 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 unload ()
 This function is called when the library is unloaded. More...
 

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 31 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 119 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 53 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 75 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_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 97 of file lease_cmds_callouts.cc.

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

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

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

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

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

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 130 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 64 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 86 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_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 108 of file lease_cmds_callouts.cc.

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

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

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

Referenced by load().

+ Here is the call graph for this function:

◆ load()

int load ( LibraryHandle handle)

This function is called when the library is loaded.

Parameters
handlelibrary handle
Returns
0 when initialization is successful, 1 otherwise

Definition at line 183 of file lease_cmds_callouts.cc.

References lease4_add(), lease4_del(), lease4_get(), lease4_get_all(), lease4_get_page(), lease4_update(), lease4_wipe(), lease6_add(), lease6_del(), lease6_get(), lease6_get_all(), lease6_get_page(), lease6_update(), lease6_wipe(), isc::lease_cmds::lease_cmds_logger, LOG_INFO, and isc::hooks::LibraryHandle::registerCommandCallout().

+ Here is the call graph for this function:

◆ unload()

int unload ( )

This function is called when the library is unloaded.

Returns
0 if deregistration was successful, 1 otherwise

Definition at line 206 of file lease_cmds_callouts.cc.

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