Kea 3.3.4
nc_trans.cc
Go to the documentation of this file.
1// Copyright (C) 2013-2026 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#include <config.h>
8
9#include <d2srv/d2_log.h>
10#include <d2srv/nc_trans.h>
12#include <dns/rdata.h>
13#include <dns/rdataclass.h>
14#include <hooks/hooks.h>
15#include <hooks/hooks_manager.h>
16#include <boost/algorithm/string.hpp>
17#include <sstream>
18
19using namespace isc::dns;
20using namespace isc::hooks;
21using namespace isc::util;
22
23namespace {
24
26struct NcTransHooks {
27 int hooks_index_select_key_;
28
30 NcTransHooks() {
31 hooks_index_select_key_ = HooksManager::registerHook("select_key");
32 }
33};
34
35// Declare a Hooks object. As this is outside any function or method, it
36// will be instantiated (and the constructor run) when the module is loaded.
37// As a result, the hook indexes will be defined before any method in this
38// module is called.
39
40NcTransHooks Hooks;
41
42}
43
44namespace isc {
45namespace d2 {
46
47// Common transaction states
53
55
56// Common transaction events
64
66
68
72 DdnsDomainPtr& forward_domain,
73 DdnsDomainPtr& reverse_domain,
74 D2CfgMgrPtr& cfg_mgr)
75 : io_service_(io_service), ncr_(ncr), forward_domain_(forward_domain),
76 reverse_domain_(reverse_domain), dns_client_(), dns_update_request_(),
77 dns_update_status_(DNSClient::OTHER), dns_update_response_(),
78 forward_change_completed_(false), reverse_change_completed_(false),
79 current_server_list_(), current_server_(), next_server_pos_(0),
80 update_attempts_(0), cfg_mgr_(cfg_mgr), tsig_key_() {
83 if (!io_service_) {
84 isc_throw(NameChangeTransactionError, "IOServicePtr cannot be null");
85 }
86
87 if (!ncr_) {
89 "NameChangeRequest cannot be null");
90 }
91
92 if (!forward_domain_ && !reverse_domain_) {
94 "Forward and reverse change cannot both be empty");
95 }
96
97 if (!cfg_mgr_) {
99 "Configuration manager cannot be null");
100 }
101}
102
105
106void
115
116void
118 // Stow the completion status and re-enter the run loop with the event
119 // set to indicate IO completed.
120 // runModel is exception safe so we are good to call it here.
121 // It won't exit until we hit the next IO wait or the state model ends.
122 setDnsUpdateStatus(status);
125 .arg(getRequestId())
126 .arg(current_server_->toText())
127 .arg(responseString());
128
130}
131
132std::string
134 std::ostringstream stream;
135 switch (getDnsUpdateStatus()) {
137 stream << "SUCCESS, rcode: ";
138 if (getDnsUpdateResponse()) {
139 stream << getDnsUpdateResponse()->getRcode().toText();
140 } else {
141 stream << " update response is NULL";
142 }
143 break;
145 stream << "TIMEOUT";
146 break;
148 stream << "IO_STOPPED";
149 break;
151 stream << "INVALID_RESPONSE";
152 break;
153 case DNSClient::OTHER:
154 stream << "OTHER";
155 break;
156 default:
157 stream << "UNKNOWN(" << getDnsUpdateStatus() << ")";
158 break;
159
160 }
161
162 return (stream.str());
163}
164
165std::string
167 std::ostringstream stream;
168 stream << "Status: " << (getNcrStatus() == dhcp_ddns::ST_COMPLETED
169 ? "Completed, " : "Failed, ")
170 << "Event: " << getEventLabel(getNextEvent()) << ", ";
171
172 if (forward_domain_) {
173 stream << " Forward change:" << (getForwardChangeCompleted()
174 ? " completed, " : " failed, ");
175 }
176
177 if (reverse_domain_) {
178 stream << " Reverse change:" << (getReverseChangeCompleted()
179 ? " completed, " : " failed, ");
180 }
181
182 stream << " request: " << ncr_->toText();
183 return (stream.str());
184}
185
186
187void
188NameChangeTransaction::sendUpdate(const std::string& comment) {
189 try {
190 ++update_attempts_;
191 // @todo add logic to add/replace TSIG key info in request if
192 // use_tsig_ is true. We should be able to navigate to the TSIG key
193 // for the current server. If not we would need to add that.
194
195 D2ParamsPtr d2_params = cfg_mgr_->getD2Params();
196 dns_client_->doUpdate(io_service_, current_server_->getIpAddress(),
197 current_server_->getPort(), *dns_update_request_,
198 d2_params->getDnsServerTimeout(), tsig_key_);
199 // Message is on its way, so the next event should be NOP_EVT.
203 .arg(getRequestId())
204 .arg(comment)
205 .arg(current_server_->toText());
206 } catch (const std::exception& ex) {
207 // We were unable to initiate the send.
208 // It is presumed that any throw from doUpdate is due to a programmatic
209 // error, such as an unforeseen permutation of data, rather than an IO
210 // failure. IO errors should be caught by the underlying asiolink
211 // mechanisms and manifested as an unsuccessful IO status in the
212 // DNSClient callback. Any problem here most likely means the request
213 // is corrupt in some way and cannot be completed, therefore we will
214 // log it and transition it to failure.
216 .arg(getRequestId())
217 .arg(ex.what());
219 }
220}
221
222void
224 // Call superclass impl first.
226
227 // Define NCT events.
228 defineEvent(SELECT_SERVER_EVT, "SELECT_SERVER_EVT");
229 defineEvent(SERVER_SELECTED_EVT, "SERVER_SELECTED_EVT");
230 defineEvent(SERVER_IO_ERROR_EVT, "SERVER_IO_ERROR_EVT");
231 defineEvent(NO_MORE_SERVERS_EVT, "NO_MORE_SERVERS_EVT");
232 defineEvent(IO_COMPLETED_EVT, "IO_COMPLETED_EVT");
233 defineEvent(UPDATE_OK_EVT, "UPDATE_OK_EVT");
234 defineEvent(UPDATE_FAILED_EVT, "UPDATE_FAILED_EVT");
235}
236
237void
251
252void
254 // Call superclass impl first.
256 // This class is "abstract" in that it does not supply handlers for its
257 // states, derivations must do that therefore they must define them.
258}
259
260void
262 // Call superclass impl first.
264
265 // Verify NCT states. This ensures that derivations provide the handlers.
271}
272
273void
280
281void
283 if (update_attempts_ < MAX_UPDATE_TRIES_PER_SERVER) {
284 // Re-enter the current state with same server selected.
286 } else {
287 // Transition to given fail_to_state state if we are out
288 // of retries.
289 transition(fail_to_state, SERVER_IO_ERROR_EVT);
290 }
291}
292
293void
295 dns_update_request_ = request;
296}
297
298void
300 dns_update_request_.reset();
301}
302
303void
305 update_attempts_ = 0;
306}
307
308void
310 dns_update_status_ = status;
311}
312
313void
315 dns_update_response_ = response;
316}
317
318void
320 dns_update_response_.reset();
321}
322
323void
325 forward_change_completed_ = value;
326}
327
328void
330 reverse_change_completed_ = value;
331}
332
333void
335 update_attempts_ = value;
336}
337
340 if (!domain) {
342 "prepNewRequest - domain cannot be null");
343 }
344
345 try {
346 // Create a "blank" update request.
348 OUTBOUND));
349 // Set the query id
350 request->setId(cryptolink::generateQid());
351 // Construct the Zone Section.
352 dns::Name zone_name(domain->getName());
353 request->setZone(zone_name, dns::RRClass::IN());
354 return (request);
355 } catch (const std::exception& ex) {
356 isc_throw(NameChangeTransactionError, "Cannot create new request :"
357 << ex.what());
358 }
359}
360
361void
363 if (!rrset) {
365 "addLeaseAddressRdata - RRset cannot cannot be null");
366 }
367
368 try {
369 // Manufacture an RData from the lease address then add it to the RR.
371 if (ncr_->isV4()) {
372 rdata.reset(new dns::rdata::in::A(ncr_->getIpAddress()));
373 } else {
374 rdata.reset(new dns::rdata::in::AAAA(ncr_->getIpAddress()));
375 }
376 rrset->addRdata(rdata);
377 } catch (const std::exception& ex) {
378 isc_throw(NameChangeTransactionError, "Cannot add address rdata: "
379 << ex.what());
380 }
381}
382
383void
385 if (!rrset) {
387 "addDhcidRdata - RRset cannot cannot be null");
388 }
389
390 try {
391 const std::vector<uint8_t>& ncr_dhcid = ncr_->getDhcid().getBytes();
392 util::InputBuffer buffer(ncr_dhcid.data(), ncr_dhcid.size());
394 DHCID(buffer, ncr_dhcid.size()));
395 rrset->addRdata(rdata);
396 } catch (const std::exception& ex) {
397 isc_throw(NameChangeTransactionError, "Cannot add DCHID rdata: "
398 << ex.what());
399 }
400
401}
402
403void
405 if (!rrset) {
407 "addPtrRdata - RRset cannot cannot be null");
408 }
409
410 try {
412 PTR(getNcr()->getFqdn()));
413 rrset->addRdata(rdata);
414 } catch (const std::exception& ex) {
415 isc_throw(NameChangeTransactionError, "Cannot add PTR rdata: "
416 << ex.what());
417 }
418}
419
422 return (ncr_);
423}
424
425const TransactionKey&
427 return (ncr_->getDhcid());
428}
429
430const std::string&
432 return (ncr_->getFqdn());
433}
434
435std::string
437 return (ncr_->getFqdnLower());
438}
439
442 return (ncr_->getIOAddress());
443}
444
445std::string
447 return (ncr_->getRequestId());
448}
449
452 return (ncr_->getStatus());
453}
454
457 return (forward_domain_);
458}
459
462 return (reverse_domain_);
463}
464
465void
467 if (!domain) {
469 "initServerSelection called with an empty domain");
470 }
471
472 current_server_list_ = domain->getServers();
473 next_server_pos_ = 0;
474 current_server_.reset();
475}
476
477bool
479 for (;;) {
480 if ((current_server_list_) &&
481 (next_server_pos_ < current_server_list_->size())) {
482 current_server_ = (*current_server_list_)[next_server_pos_];
483 // Toss out any previous response.
484 dns_update_response_.reset();
485
486 // Set the tsig_key to that of the current server.
487 if (!selectTSIGKey()) {
488 ++next_server_pos_;
489 continue;
490 }
491
492 // @todo Protocol is set on DNSClient constructor. We need
493 // to propagate a configuration value downward, probably starting
494 // at global, then domain, finishing by server.
495 // Once that is supported we need to add it here.
496 dns_client_.reset(new DNSClient(dns_update_response_, this,
498 ++next_server_pos_;
499 return (true);
500 }
501
502 return (false);
503 }
504}
505
506bool
508 TSIGKeyInfoPtr tsig_key_info = current_server_->getTSIGKeyInfo();
509 if (tsig_key_info) {
510 tsig_key_ = tsig_key_info->getTSIGKey();
511 } else {
512 tsig_key_.reset();
513 }
514
515 // This hook point allows hooks libraries to overwrite the TSIG key.
516 if (HooksManager::calloutsPresent(Hooks.hooks_index_select_key_)) {
518
519 callout_handle->setArgument("current_server", current_server_);
520 callout_handle->setArgument("tsig_key", tsig_key_);
521
522 HooksManager::callCallouts(Hooks.hooks_index_select_key_,
523 *callout_handle);
524
525 // This server is skipped because the status is not NEXT_STEP_CONTINUE.
526 if (callout_handle->getStatus() != CalloutHandle::NEXT_STEP_CONTINUE) {
527 return (false);
528 }
529
530 // Reread the TSIG key.
531 callout_handle->getArgument("tsig_key", tsig_key_);
532 }
533
534 return (true);
535}
536
537
538const DNSClientPtr&
540 return (dns_client_);
541}
542
543const DnsServerInfoPtr&
545 return (current_server_);
546}
547
548void
550 return (ncr_->setStatus(status));
551}
552
555 return (dns_update_request_);
556}
557
560 return (dns_update_status_);
561}
562
565 return (dns_update_response_);
566}
567
568bool
570 return (forward_change_completed_);
571}
572
573bool
575 return (reverse_change_completed_);
576}
577
578size_t
580 return (update_attempts_);
581}
582
583const dns::RRType&
585 return (ncr_->isV4() ? dns::RRType::A() : dns::RRType::AAAA());
586}
587
588void
590 forward_domain_ = domain;
591}
592
593void
595 reverse_domain_ = domain;
596}
597
598} // namespace isc::d2
599} // namespace isc
@ NEXT_STEP_CONTINUE
continue normally
The D2UpdateMessage encapsulates a DNS Update message.
The DNSClient class handles communication with the DNS server.
Definition dns_client.h:49
Status
A status code of the DNSClient.
Definition dns_client.h:60
@ IO_STOPPED
IO was stopped.
Definition dns_client.h:63
@ TIMEOUT
No response, timeout.
Definition dns_client.h:62
@ OTHER
Other, unclassified error.
Definition dns_client.h:65
@ INVALID_RESPONSE
Response received but invalid.
Definition dns_client.h:64
@ SUCCESS
Response received and is ok.
Definition dns_client.h:61
Thrown if the transaction encounters a general error.
Definition nc_trans.h:28
static const int SELECTING_FWD_SERVER_ST
State in which forward DNS server selection is done.
Definition nc_trans.h:92
void setReverseDomain(DdnsDomainPtr domain)
Sets the reverse DdnsDomain.
Definition nc_trans.cc:594
void retryTransition(const int fail_to_state)
Determines the state and next event based on update attempts.
Definition nc_trans.cc:282
virtual void onModelFailure(const std::string &explanation)
Handler for fatal model execution errors.
Definition nc_trans.cc:274
virtual void operator()(DNSClient::Status status)
Serves as the DNSClient IO completion event handler.
Definition nc_trans.cc:117
static const int PROCESS_TRANS_FAILED_ST
State which processes an unsuccessful transaction conclusion.
Definition nc_trans.h:106
static const unsigned int MAX_UPDATE_TRIES_PER_SERVER
Maximum times to attempt a single update on a given server.
Definition nc_trans.h:155
const asiolink::IOAddress & getIOAddress() const
Fetches the request IP address.
Definition nc_trans.cc:441
static const int READY_ST
State from which a transaction is started.
Definition nc_trans.h:84
void setForwardDomain(DdnsDomainPtr domain)
Sets the forward DdnsDomain.
Definition nc_trans.cc:589
const D2UpdateMessagePtr & getDnsUpdateResponse() const
Fetches the most recent DNS update response packet.
Definition nc_trans.cc:564
static const int PROCESS_TRANS_OK_ST
State which processes successful transaction conclusion.
Definition nc_trans.h:103
const std::string & getFqdn() const
Fetches the request FQDN.
Definition nc_trans.cc:431
static const int UPDATE_OK_EVT
Issued when the attempted update successfully completed.
Definition nc_trans.h:136
const DNSClientPtr & getDNSClient() const
Fetches the DNSClient instance.
Definition nc_trans.cc:539
virtual void verifyStates()
Validates the contents of the set of states.
Definition nc_trans.cc:261
void startTransaction()
Begins execution of the transaction.
Definition nc_trans.cc:107
virtual D2UpdateMessagePtr prepNewRequest(DdnsDomainPtr domain)
Creates a new DNS update request based on the given domain.
Definition nc_trans.cc:339
NameChangeTransaction(asiolink::IOServicePtr &io_service, dhcp_ddns::NameChangeRequestPtr &ncr, DdnsDomainPtr &forward_domain, DdnsDomainPtr &reverse_domain, D2CfgMgrPtr &cfg_mgr)
Constructor.
Definition nc_trans.cc:70
static const int UPDATE_FAILED_EVT
Issued when the attempted update fails to complete.
Definition nc_trans.h:142
const D2UpdateMessagePtr & getDnsUpdateRequest() const
Fetches the current DNS update request packet.
Definition nc_trans.cc:554
const dns::RRType & getAddressRRType() const
Returns the DHCP data type for the lease address.
Definition nc_trans.cc:584
const dhcp_ddns::NameChangeRequestPtr & getNcr() const
Fetches the NameChangeRequest for this transaction.
Definition nc_trans.cc:421
void initServerSelection(const DdnsDomainPtr &domain)
Initializes server selection from the given DDNS domain.
Definition nc_trans.cc:466
static const int IO_COMPLETED_EVT
Issued when a DNS update packet exchange has completed.
Definition nc_trans.h:131
static const int NCT_DERIVED_STATE_MIN
Value at which custom states in a derived class should begin.
Definition nc_trans.h:109
static const int SELECT_SERVER_EVT
Issued when a server needs to be selected.
Definition nc_trans.h:114
static const int SERVER_IO_ERROR_EVT
Issued when an update fails due to an IO error.
Definition nc_trans.h:120
std::string getRequestId() const
Fetches the request id that identifies this transaction.
Definition nc_trans.cc:446
virtual void defineStates()
Adds states defined by NameChangeTransaction to the state set.
Definition nc_trans.cc:253
const TransactionKey & getTransactionKey() const
Fetches the unique key that identifies this transaction.
Definition nc_trans.cc:426
void setUpdateAttempts(const size_t value)
Sets the update attempt count to the given value.
Definition nc_trans.cc:334
std::string getFqdnLower() const
Fetches the request FQDN converted to lower-case.
Definition nc_trans.cc:436
void addLeaseAddressRdata(dns::RRsetPtr &rrset)
Adds an RData for the lease address to the given RRset.
Definition nc_trans.cc:362
bool getForwardChangeCompleted() const
Returns whether the forward change has completed or not.
Definition nc_trans.cc:569
virtual void sendUpdate(const std::string &comment="")
Send the update request to the current server.
Definition nc_trans.cc:188
void setForwardChangeCompleted(const bool value)
Sets the forward change completion flag to the given value.
Definition nc_trans.cc:324
void addPtrRdata(dns::RRsetPtr &rrset)
Adds an RData for the lease FQDN to the given RRset.
Definition nc_trans.cc:404
void setDnsUpdateResponse(D2UpdateMessagePtr &response)
Sets the update response packet to the given packet.
Definition nc_trans.cc:314
bool selectNextServer()
Selects the next server in the current server list.
Definition nc_trans.cc:478
void setNcrStatus(const dhcp_ddns::NameChangeStatus &status)
Sets the status of the transaction's NameChangeRequest.
Definition nc_trans.cc:549
DdnsDomainPtr & getForwardDomain()
Fetches the forward DdnsDomain.
Definition nc_trans.cc:456
bool selectTSIGKey()
Selects the TSIG key.
Definition nc_trans.cc:507
virtual void verifyEvents()
Validates the contents of the set of events.
Definition nc_trans.cc:238
void addDhcidRdata(dns::RRsetPtr &rrset)
Adds an RData for the lease client's DHCID to the given RRset.
Definition nc_trans.cc:384
void clearDnsUpdateRequest()
Destroys the current update request packet.
Definition nc_trans.cc:299
void clearUpdateAttempts()
Resets the update attempts count.
Definition nc_trans.cc:304
static const int SELECTING_REV_SERVER_ST
State in which reverse DNS server selection is done.
Definition nc_trans.h:100
DNSClient::Status getDnsUpdateStatus() const
Fetches the most recent DNS update status.
Definition nc_trans.cc:559
void setDnsUpdateStatus(const DNSClient::Status &status)
Sets the update status to the given status value.
Definition nc_trans.cc:309
void setDnsUpdateRequest(D2UpdateMessagePtr &request)
Sets the update request packet to the given packet.
Definition nc_trans.cc:294
bool getReverseChangeCompleted() const
Returns whether the reverse change has completed or not.
Definition nc_trans.cc:574
static const int NO_MORE_SERVERS_EVT
Issued when there are no more servers from which to select.
Definition nc_trans.h:126
dhcp_ddns::NameChangeStatus getNcrStatus() const
Fetches the NameChangeRequest status of the transaction.
Definition nc_trans.cc:451
static const int NCT_DERIVED_EVENT_MIN
Value at which custom events in a derived class should begin.
Definition nc_trans.h:145
virtual void defineEvents()
Adds events defined by NameChangeTransaction to the event set.
Definition nc_trans.cc:223
void clearDnsUpdateResponse()
Destroys the current update response packet.
Definition nc_trans.cc:319
std::string responseString() const
Returns a string version of the current response status and rcode.
Definition nc_trans.cc:133
void setReverseChangeCompleted(const bool value)
Sets the reverse change completion flag to the given value.
Definition nc_trans.cc:329
size_t getUpdateAttempts() const
Fetches the update attempt count for the current update.
Definition nc_trans.cc:579
const DnsServerInfoPtr & getCurrentServer() const
Fetches the currently selected server.
Definition nc_trans.cc:544
static const int SERVER_SELECTED_EVT
Issued when a server has been selected.
Definition nc_trans.h:117
DdnsDomainPtr & getReverseDomain()
Fetches the reverse DdnsDomain.
Definition nc_trans.cc:461
std::string transactionOutcomeString() const
Returns a string version of transaction outcome.
Definition nc_trans.cc:166
virtual ~NameChangeTransaction()
Destructor.
Definition nc_trans.cc:103
The Name class encapsulates DNS names.
Definition name.h:217
static const RRClass & IN()
Definition rrclass.h:304
The RRType class encapsulates DNS resource record types.
Definition rrtype.h:96
static const RRType & AAAA()
Definition rrtype.h:315
static const RRType & A()
Definition rrtype.h:279
static int registerHook(const std::string &name)
Register Hook.
static bool calloutsPresent(int index)
Are callouts present?
static boost::shared_ptr< CalloutHandle > createCalloutHandle()
Return callout handle.
static void callCallouts(int index, CalloutHandle &handle)
Calls the callouts for a given hook.
The InputBuffer class is a buffer abstraction for manipulating read-only data.
Definition buffer.h:81
const StatePtr getStateInternal(int value)
Fetches the state referred to by value.
virtual void defineEvents()
Populates the set of events.
virtual void verifyStates()
Validates the contents of the set of states.
void defineEvent(int value, const std::string &label)
Adds an event value and associated label to the set of events.
virtual void verifyEvents()
Validates the contents of the set of events.
static const int NOP_EVT
Signifies that no event has occurred.
int getCurrState() const
Fetches the model's current state.
std::string getEventLabel(const int event) const
Fetches the label associated with an event value.
void startModel(const int start_state)
Begins execution of the model.
const EventPtr & getEvent(int value)
Fetches the event referred to by value.
virtual void defineStates()
Populates the set of states.
virtual void runModel(int event)
Processes events through the state model.
void transition(int state, int event)
Sets up the model to transition into given state with a given event.
int getNextEvent() const
Fetches the model's next event.
void postNextEvent(int event)
Sets the next event to the given event value.
Dhcp4Hooks Hooks
Definition dhcp4_srv.cc:213
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
Definition macros.h:32
#define LOG_DEBUG(LOGGER, LEVEL, MESSAGE)
Macro to conveniently test debug output and log it.
Definition macros.h:14
const isc::log::MessageID DHCP_DDNS_STARTING_TRANSACTION
Definition d2_messages.h:89
boost::shared_ptr< D2UpdateMessage > D2UpdateMessagePtr
Pointer to the DNS Update Message.
boost::shared_ptr< DdnsDomain > DdnsDomainPtr
Defines a pointer for DdnsDomain instances.
Definition d2_config.h:624
boost::shared_ptr< D2CfgMgr > D2CfgMgrPtr
Defines a shared pointer to D2CfgMgr.
Definition d2_cfg_mgr.h:389
boost::shared_ptr< DnsServerInfo > DnsServerInfoPtr
Defines a pointer for DnsServerInfo instances.
Definition d2_config.h:554
isc::log::Logger d2_to_dns_logger("d2-to-dns")
Definition d2_log.h:20
const isc::log::MessageID DHCP_DDNS_TRANS_SEND_ERROR
Definition d2_messages.h:91
boost::shared_ptr< TSIGKeyInfo > TSIGKeyInfoPtr
Defines a pointer for TSIGKeyInfo instances.
Definition d2_config.h:416
boost::shared_ptr< DNSClient > DNSClientPtr
Definition dns_client.h:22
const isc::log::MessageID DHCP_DDNS_STATE_MODEL_UNEXPECTED_ERROR
Definition d2_messages.h:90
boost::shared_ptr< D2Params > D2ParamsPtr
Defines a pointer for D2Params instances.
Definition d2_config.h:257
isc::dhcp_ddns::D2Dhcid TransactionKey
Defines the type used as the unique key for transactions.
Definition nc_trans.h:36
const isc::log::MessageID DHCP_DDNS_UPDATE_RESPONSE_RECEIVED
Definition d2_messages.h:94
const isc::log::MessageID DHCP_DDNS_UPDATE_REQUEST_SENT
Definition d2_messages.h:93
NameChangeStatus
Defines the runtime processing status values for requests.
Definition ncr_msg.h:55
boost::shared_ptr< NameChangeRequest > NameChangeRequestPtr
Defines a pointer to a NameChangeRequest.
Definition ncr_msg.h:245
boost::shared_ptr< const Rdata > ConstRdataPtr
Definition rdata.h:69
boost::shared_ptr< AbstractRRset > RRsetPtr
A pointer-like type pointing to an RRset object.
Definition rrset.h:50
boost::shared_ptr< CalloutHandle > CalloutHandlePtr
A shared pointer to a CalloutHandle object.
const int DBGLVL_TRACE_DETAIL
Trace detailed operations.
Defines the logger used by the top-level component of kea-lfc.
This file defines the class NameChangeTransaction.