17 namespace flex_option {
46 if (status == CalloutHandle::NEXT_STEP_DROP) {
61 if (status == CalloutHandle::NEXT_STEP_SKIP) {
66 impl->process<
Pkt4Ptr>(Option::V4, query, response);
67 }
catch (
const std::exception& ex) {
69 .arg(query->getLabel())
87 if (status == CalloutHandle::NEXT_STEP_DROP) {
96 if (status == CalloutHandle::NEXT_STEP_SKIP) {
107 impl->process<
Pkt6Ptr>(Option::V6, query, response);
108 }
catch (
const std::exception& ex) {
110 .arg(query->getLabel())
125 impl->configure(options);
126 }
catch (
const std::exception& ex) {
int load(LibraryHandle &handle)
This function is called when the library is loaded.
boost::shared_ptr< FlexOptionImpl > FlexOptionImplPtr
The type of shared pointers to Flex Option implementations.
const isc::log::MessageID FLEX_OPTION_LOAD_ERROR
int unload()
This function is called when the library is unloaded.
isc::log::Logger flex_option_logger("flex-option-hooks")
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
int pkt4_send(CalloutHandle &handle)
This callout is called at the "pkt4_send" hook.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< Pkt6 > Pkt6Ptr
A pointer to Pkt6 packet.
Per-packet callout handle.
boost::shared_ptr< Pkt4 > Pkt4Ptr
A pointer to Pkt4 object.
CalloutNextStep
Specifies allowed next steps.
boost::shared_ptr< const Element > ConstElementPtr
Defines the logger used by the top-level component of kea-dhcp-ddns.
This file contains several functions and constants that are used for handling commands and responses ...
const isc::log::MessageID FLEX_OPTION_UNLOAD
A generic exception that is thrown if a function is called in a prohibited way.
isc::data::ConstElementPtr getParameter(const std::string &name)
Returns configuration parameter for the library.
Flex Option implementation.
void getArgument(const std::string &name, T &value) const
Get argument.
int pkt6_send(CalloutHandle &handle)
This callout is called at the "pkt6_send" hook.
const isc::log::MessageID FLEX_OPTION_PROCESS_ERROR
int multi_threading_compatible()
This function is called to retrieve the multi-threading compatibility.
CalloutNextStep getStatus() const
Returns the next processing step.