Kea 2.7.5
|
The Kea Control Agent features "Hooks" API that allows the user-written code to be integrated with the Control Agent and handle some of the control commands. The hooks library can be either used to provide support for the new commands (not supported natively by the Control Agent) or "override" implementation of the existing handlers. The hooks library signals to the Control Agent that it has processed the given command by setting "next step status" value to SKIP.
The hooks library can also be used to perform some additional tasks related to reception of the control command instead of handling it, e.g. logging or notifying some external service about reception of the command.
The callout handle attached to the "request" argument can keep a pointer to the hook address space which prevents the hook to be unloaded when the "config-get" or "config-reload" command is executed.
The "next step status" of the "auth" callout point can be set to any value other than CONTINUE to ask the callout handle to be reset. This must be done when the command is "config-get" or "config-reload" or when the "response" callout point is not used or when the callout context does not transmit values between the "auth" and "response" callout points.