kea-custom-hooks
FeM custom hooks libraries for Kea DHCP
Functions
callout.hpp File Reference

Declarations for Kea callout functions. More...

#include <dhcp/dhcp4.h>
#include <hooks/hooks.h>

Go to the source code of this file.

Functions

int lease4_select (isc::hooks::CalloutHandle &)
 
int lease4_renew (isc::hooks::CalloutHandle &)
 

Detailed Description

Declarations for Kea callout functions.

These callout functions are called by Kea upon reaching the respective hook points. The function-names are pre-defined according to the Kea naming conventions, since Kea calls the respective symbols directly. For this reason, callouts need to be defined as extern "C".

All callouts which are run during lease assingment must run fast to prevent congestion during the normal DHCP operation.

Definition in file callout.hpp.

Function Documentation

◆ lease4_renew()

int lease4_renew ( isc::hooks::CalloutHandle &  handle)

Definition at line 22 of file callout.cpp.

◆ lease4_select()

int lease4_select ( isc::hooks::CalloutHandle &  handle)

Definition at line 11 of file callout.cpp.