Kea 2.7.6
|
Classes | |
class | D2Dhcid |
Container class for handling the DHCID value within a NameChangeRequest. More... | |
class | DhcidRdataComputeError |
Exception thrown when there is an error occurred during computation of the DHCID. More... | |
class | NameChangeListener |
Abstract interface for receiving NameChangeRequests. More... | |
class | NameChangeRequest |
Represents a DHCP-DDNS client request. More... | |
class | NameChangeSender |
Abstract interface for sending NameChangeRequests. More... | |
class | NameChangeUDPListener |
Provides the ability to receive NameChangeRequests via UDP socket. More... | |
class | NameChangeUDPSender |
Provides the ability to send NameChangeRequests via UDP socket. More... | |
class | NcrListenerError |
Exception thrown if an NcrListenerError encounters a general error. More... | |
class | NcrListenerOpenError |
Exception thrown if an error occurs during IO source open. More... | |
class | NcrListenerReceiveError |
Exception thrown if an error occurs initiating an IO receive. More... | |
class | NcrMessageError |
Exception thrown when NameChangeRequest marshalling error occurs. More... | |
class | NcrSenderError |
Thrown when a NameChangeSender encounters an error. More... | |
class | NcrSenderOpenError |
Exception thrown if an error occurs during IO source open. More... | |
class | NcrSenderQueueFull |
Exception thrown if an error occurs initiating an IO send. More... | |
class | NcrSenderSendError |
Exception thrown if an error occurs initiating an IO send. More... | |
class | NcrUDPError |
Thrown when a UDP level exception occurs. More... | |
class | UDPCallback |
Implements the callback class passed into UDPSocket calls. More... | |
Typedefs | |
typedef std::map< std::string, isc::data::ConstElementPtr > | ElementMap |
Defines a map of Elements, keyed by their string name. | |
typedef boost::shared_ptr< NameChangeListener > | NameChangeListenerPtr |
Defines a smart pointer to an instance of a listener. | |
typedef boost::shared_ptr< NameChangeRequest > | NameChangeRequestPtr |
Defines a pointer to a NameChangeRequest. | |
typedef boost::shared_ptr< NameChangeSender > | NameChangeSenderPtr |
Defines a smart pointer to an instance of a sender. | |
typedef isc::asiolink::UDPSocket< UDPCallback > | NameChangeUDPSocket |
Convenience type for UDP socket based listener. | |
typedef boost::shared_array< uint8_t > | RawBufferPtr |
Defines a dynamically allocated shared array. | |
typedef std::function< void(const bool, const UDPCallback *)> | UDPCompletionHandler |
Defines a function pointer for NameChangeRequest completion handlers. | |
typedef boost::shared_ptr< asiolink::UDPEndpoint > | UDPEndpointPtr |
Enumerations | |
enum | ConflictResolutionMode { CHECK_WITH_DHCID , NO_CHECK_WITH_DHCID , CHECK_EXISTS_WITH_DHCID , NO_CHECK_WITHOUT_DHCID } |
enum | NameChangeFormat { FMT_JSON } |
Defines the list of data wire formats supported. More... | |
enum | NameChangeProtocol { NCR_UDP , NCR_TCP } |
Defines the list of socket protocols supported. More... | |
enum | NameChangeStatus { ST_NEW , ST_PENDING , ST_COMPLETED , ST_FAILED } |
Defines the runtime processing status values for requests. More... | |
enum | NameChangeType { CHG_ADD , CHG_REMOVE } |
Defines the types of DNS updates that can be requested. More... | |
Functions | |
std::string | ConflictResolutionModeToString (const ConflictResolutionMode &mode) |
Function which converts ConflictResolutionMode enums to text labels. | |
std::string | ncrFormatToString (NameChangeFormat format) |
Function which converts NameChangeFormat enums to text labels. | |
std::string | ncrProtocolToString (NameChangeProtocol protocol) |
Function which converts NameChangeProtocol enums to text labels. | |
std::ostream & | operator<< (std::ostream &os, const D2Dhcid &dhcid) |
ConflictResolutionMode | StringToConflictResolutionMode (const std::string &mode_str) |
Function which converts string to ConflictResolutionMode enum values. | |
NameChangeFormat | stringToNcrFormat (const std::string &fmt_str) |
Function which converts labels to NameChangeFormat enum values. | |
NameChangeProtocol | stringToNcrProtocol (const std::string &protocol_str) |
Function which converts text labels to NameChangeProtocol enums. | |
typedef std::map<std::string, isc::data::ConstElementPtr> isc::dhcp_ddns::ElementMap |
typedef boost::shared_ptr<NameChangeListener> isc::dhcp_ddns::NameChangeListenerPtr |
typedef boost::shared_ptr<NameChangeRequest> isc::dhcp_ddns::NameChangeRequestPtr |
Defines a pointer to a NameChangeRequest.
typedef boost::shared_ptr<NameChangeSender> isc::dhcp_ddns::NameChangeSenderPtr |
typedef boost::shared_array<uint8_t> isc::dhcp_ddns::RawBufferPtr |
typedef std::function<void(const bool, const UDPCallback*)> isc::dhcp_ddns::UDPCompletionHandler |
Defines a function pointer for NameChangeRequest completion handlers.
typedef boost::shared_ptr<asiolink::UDPEndpoint> isc::dhcp_ddns::UDPEndpointPtr |
std::string isc::dhcp_ddns::ConflictResolutionModeToString | ( | const ConflictResolutionMode & | mode | ) |
Function which converts ConflictResolutionMode enums to text labels.
mode | ConflictResolutionMode enum value to convert to string. |
Definition at line 66 of file ncr_msg.cc.
References CHECK_EXISTS_WITH_DHCID, CHECK_WITH_DHCID, NO_CHECK_WITH_DHCID, and NO_CHECK_WITHOUT_DHCID.
Referenced by isc::dhcp_ddns::NameChangeRequest::toJSON(), and isc::dhcp_ddns::NameChangeRequest::toText().
std::string isc::dhcp_ddns::ncrFormatToString | ( | NameChangeFormat | format | ) |
Function which converts NameChangeFormat enums to text labels.
format | enum value to convert to label |
Definition at line 35 of file ncr_msg.cc.
References FMT_JSON.
Referenced by isc::d2::D2SimpleParser::parse(), isc::dhcp::D2ClientConfigParser::parse(), isc::d2::D2CfgContext::toElement(), isc::dhcp::D2ClientConfig::toElement(), isc::d2::D2Params::toText(), isc::d2::D2Params::validateContents(), and isc::dhcp::D2ClientConfig::validateContents().
std::string isc::dhcp_ddns::ncrProtocolToString | ( | NameChangeProtocol | protocol | ) |
Function which converts NameChangeProtocol enums to text labels.
protocol | enum value to convert to label |
Definition at line 36 of file ncr_io.cc.
References NCR_TCP, and NCR_UDP.
Referenced by isc::d2::D2SimpleParser::parse(), isc::dhcp::D2ClientConfigParser::parse(), isc::d2::D2Process::reconfigureQueueMgr(), isc::d2::D2CfgContext::toElement(), isc::dhcp::D2ClientConfig::toElement(), isc::d2::D2Params::toText(), isc::d2::D2Params::validateContents(), and isc::dhcp::D2ClientConfig::validateContents().
std::ostream & isc::dhcp_ddns::operator<< | ( | std::ostream & | os, |
const D2Dhcid & | dhcid ) |
Definition at line 255 of file ncr_msg.cc.
References isc::dhcp_ddns::D2Dhcid::toStr().
ConflictResolutionMode isc::dhcp_ddns::StringToConflictResolutionMode | ( | const std::string & | mode_str | ) |
Function which converts string to ConflictResolutionMode enum values.
mode_str | text to convert to an enum. Valid string values: "check-with-dhcid", "no-check-with-dhcid", "check-exists-with-dhcid", "no-check-without-dhcid" |
isc::BadValue | if given a string value which does not map to an enum value. |
Definition at line 45 of file ncr_msg.cc.
References CHECK_EXISTS_WITH_DHCID, CHECK_WITH_DHCID, isc_throw, NO_CHECK_WITH_DHCID, and NO_CHECK_WITHOUT_DHCID.
Referenced by isc::dhcp::Dhcpv6Srv::createNameChangeRequests(), and isc::dhcp_ddns::NameChangeRequest::setConflictResolutionMode().
NameChangeFormat isc::dhcp_ddns::stringToNcrFormat | ( | const std::string & | fmt_str | ) |
Function which converts labels to NameChangeFormat enum values.
fmt_str | text to convert to an enum. Valid string values: "JSON" |
isc::BadValue | if given a string value which does not map to an enum value. |
Definition at line 26 of file ncr_msg.cc.
NameChangeProtocol isc::dhcp_ddns::stringToNcrProtocol | ( | const std::string & | protocol_str | ) |
Function which converts text labels to NameChangeProtocol enums.
protocol_str | text to convert to an enum. Valid string values: "UDP", "TCP" |
isc::BadValue | if given a string value which does not map to an enum value. |
|
extern |
Definition at line 11 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeUDPListener::receiveCompletionHandler().
isc::log::Logger isc::dhcp_ddns::dhcp_ddns_logger | ( | "libdhcp-ddns" | ) |
Defines the logger used within lib dhcp_ddns.
Define the logger for the "dhcp_ddns" logging.
Definition at line 18 of file dhcp_ddns_log.h.
Referenced by isc::dhcp_ddns::NameChangeListener::invokeRecvHandler(), isc::dhcp_ddns::NameChangeUDPListener::receiveCompletionHandler(), isc::dhcp_ddns::NameChangeUDPSender::sendCompletionHandler(), isc::dhcp_ddns::NameChangeListener::stopListening(), and isc::dhcp_ddns::NameChangeSender::stopSending().
|
extern |
Definition at line 12 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeSender::stopSending().
|
extern |
Definition at line 13 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeListener::stopListening().
|
extern |
Definition at line 14 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeListener::invokeRecvHandler().
|
extern |
Definition at line 15 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeSender::stopSending().
|
extern |
Definition at line 16 of file dhcp_ddns_messages.h.
|
extern |
Definition at line 17 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeUDPSender::sendCompletionHandler().
|
extern |
Definition at line 18 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeUDPListener::receiveCompletionHandler().
|
extern |
Definition at line 19 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeUDPListener::receiveCompletionHandler().
|
extern |
Definition at line 20 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeUDPSender::sendCompletionHandler().
|
extern |
Definition at line 21 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeUDPSender::sendCompletionHandler().
|
extern |
Definition at line 22 of file dhcp_ddns_messages.h.
|
extern |
Definition at line 23 of file dhcp_ddns_messages.h.
Referenced by isc::dhcp_ddns::NameChangeListener::invokeRecvHandler().
|
extern |
Definition at line 24 of file dhcp_ddns_messages.h.