Kea  1.5.0
ha_callouts.cc File Reference
#include <config.h>
#include <ha_impl.h>
#include <ha_log.h>
#include <asiolink/io_service.h>
#include <cc/command_interpreter.h>
#include <dhcpsrv/network_state.h>
#include <hooks/hooks.h>
+ Include dependency graph for ha_callouts.cc:

Go to the source code of this file.

Namespaces

 isc
 Defines the logger used by the top-level component of kea-dhcp-ddns.
 
 isc::ha
 

Functions

int buffer4_receive (CalloutHandle &handle)
 buffer4_receive callout implementation. More...
 
int buffer6_receive (CalloutHandle &handle)
 buffer6_receive callout implementation. More...
 
int command_processed (CalloutHandle &handle)
 comand_processed callout implementation. More...
 
int continue_command (CalloutHandle &handle)
 ha-continue command handler implementation. More...
 
int dhcp4_srv_configured (CalloutHandle &handle)
 dhcp4_srv_configured callout implementation. More...
 
int dhcp6_srv_configured (CalloutHandle &handle)
 dhcp6_srv_configured callout implementation. More...
 
int heartbeat_command (CalloutHandle &handle)
 Heartbeat command handler implementation. More...
 
int leases4_committed (CalloutHandle &handle)
 leases4_committed callout implementation. More...
 
int leases6_committed (CalloutHandle &handle)
 leases6_committed callout implementation. More...
 
int load (LibraryHandle &handle)
 This function is called when the library is loaded. More...
 
int scopes_command (CalloutHandle &handle)
 ha-scopes command handler implementation. More...
 
int sync_command (CalloutHandle &handle)
 ha-sync command handler implementation. More...
 
int unload ()
 This function is called when the library is unloaded. More...
 

Variables

HAImplPtr isc::ha::impl
 

Function Documentation

◆ buffer4_receive()

int buffer4_receive ( CalloutHandle handle)

buffer4_receive callout implementation.

Parameters
handlecallout handle.

Definition at line 57 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

◆ buffer6_receive()

int buffer6_receive ( CalloutHandle handle)

buffer6_receive callout implementation.

Parameters
handlecallout handle.

Definition at line 108 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

◆ command_processed()

int command_processed ( CalloutHandle handle)

comand_processed callout implementation.

Parameters
handlecallout handle.

Definition at line 140 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

◆ continue_command()

int continue_command ( CalloutHandle handle)

ha-continue command handler implementation.

Definition at line 194 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

Referenced by load().

◆ dhcp4_srv_configured()

int dhcp4_srv_configured ( CalloutHandle handle)

dhcp4_srv_configured callout implementation.

Parameters
handlecallout handle.

Definition at line 38 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getArgument(), isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

◆ dhcp6_srv_configured()

int dhcp6_srv_configured ( CalloutHandle handle)

dhcp6_srv_configured callout implementation.

Parameters
handlecallout handle.

Definition at line 89 of file ha_callouts.cc.

References isc::hooks::CalloutHandle::getArgument(), isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

+ Here is the call graph for this function:

◆ heartbeat_command()

int heartbeat_command ( CalloutHandle handle)

Heartbeat command handler implementation.

Definition at line 154 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

Referenced by load().

◆ leases4_committed()

int leases4_committed ( CalloutHandle handle)

leases4_committed callout implementation.

Parameters
handlecallout handle.

Definition at line 73 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

◆ leases6_committed()

int leases6_committed ( CalloutHandle handle)

leases6_committed callout implementation.

Parameters
handlecallout handle.

Definition at line 124 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

◆ 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 210 of file ha_callouts.cc.

References continue_command(), isc::config::CONTROL_RESULT_ERROR, isc::hooks::LibraryHandle::getParameter(), isc::ha::ha_logger, heartbeat_command(), isc::ha::impl, LOG_ERROR, LOG_INFO, isc::hooks::LibraryHandle::registerCommandCallout(), scopes_command(), and sync_command().

+ Here is the call graph for this function:

◆ scopes_command()

int scopes_command ( CalloutHandle handle)

ha-scopes command handler implementation.

Definition at line 181 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

Referenced by load().

◆ sync_command()

int sync_command ( CalloutHandle handle)

ha-sync command handler implementation.

Definition at line 168 of file ha_callouts.cc.

References isc::ha::ha_logger, isc::ha::impl, and LOG_ERROR.

Referenced by load().

◆ unload()

int unload ( )

This function is called when the library is unloaded.

Returns
0 if deregistration was successful, 1 otherwise

Definition at line 239 of file ha_callouts.cc.

References isc::ha::ha_logger, and LOG_INFO.