Kea 2.5.8
simple_add.cc
Go to the documentation of this file.
1// Copyright (C) 2020-2023 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 <d2/simple_add.h>
10#include <d2srv/d2_cfg_mgr.h>
11#include <d2srv/d2_log.h>
12
13#include <util/buffer.h>
14#include <dns/rdataclass.h>
15
16#include <functional>
17
18namespace isc {
19namespace d2 {
20
21// SimpleAddTransaction states
24
25// SimpleAddTransaction events
28
32 DdnsDomainPtr& forward_domain,
33 DdnsDomainPtr& reverse_domain,
34 D2CfgMgrPtr& cfg_mgr)
35 : NameChangeTransaction(io_service, ncr, forward_domain, reverse_domain,
36 cfg_mgr) {
37 if (ncr->getChangeType() != isc::dhcp_ddns::CHG_ADD) {
39 "SimpleAddTransaction, request type must be CHG_ADD");
40 }
41}
42
44}
45
46void
48 // Call superclass impl first.
50
51 // Define SimpleAddTransaction events.
52 defineEvent(FQDN_IN_USE_EVT, "FQDN_IN_USE_EVT");
53 defineEvent(FQDN_NOT_IN_USE_EVT, "FQDN_NOT_IN_USE_EVT");
54}
55
56void
58 // Call superclass implementation first to verify its events. These are
59 // events common to all transactions, and they must be defined.
60 // SELECT_SERVER_EVT
61 // SERVER_SELECTED_EVT
62 // SERVER_IO_ERROR_EVT
63 // NO_MORE_SERVERS_EVT
64 // IO_COMPLETED_EVT
65 // UPDATE_OK_EVT
66 // UPDATE_FAILED_EVT
68
69 // Verify SimpleAddTransaction events by attempting to fetch them.
72}
73
74void
76 // Call superclass impl first.
78
79 // Define SimpleAddTransaction states.
80 defineState(READY_ST, "READY_ST",
81 std::bind(&SimpleAddTransaction::readyHandler, this));
82
83 defineState(SELECTING_FWD_SERVER_ST, "SELECTING_FWD_SERVER_ST",
85
86 defineState(SELECTING_REV_SERVER_ST, "SELECTING_REV_SERVER_ST",
88
89 defineState(REPLACING_FWD_ADDRS_ST, "REPLACING_FWD_ADDRS_ST",
91
92 defineState(REPLACING_REV_PTRS_ST, "REPLACING_REV_PTRS_ST",
94
95 defineState(PROCESS_TRANS_OK_ST, "PROCESS_TRANS_OK_ST",
97
98 defineState(PROCESS_TRANS_FAILED_ST, "PROCESS_TRANS_FAILED_ST",
100}
101
102void
104 // Call superclass implementation first to verify its states. These are
105 // states common to all transactions, and they must be defined.
106 // READY_ST
107 // SELECTING_FWD_SERVER_ST
108 // SELECTING_REV_SERVER_ST
109 // PROCESS_TRANS_OK_ST
110 // PROCESS_TRANS_FAILED_ST
112
113 // Verify SimpleAddTransaction states by attempting to fetch them.
116}
117
118void
120 switch(getNextEvent()) {
121 case START_EVT:
122 if (getForwardDomain()) {
123 // Request includes a forward change, do that first.
125 } else {
126 // Reverse change only, transition accordingly.
128 }
129
130 break;
131 default:
132 // Event is invalid.
134 "Wrong event for context: " << getContextStr());
135 }
136}
137
138void
140 switch(getNextEvent()) {
142 // First time through for this transaction, so initialize server
143 // selection.
145 break;
147 // We failed to communicate with current server. Attempt to select
148 // another one below.
149 break;
150 default:
151 // Event is invalid.
153 "Wrong event for context: " << getContextStr());
154 }
155
156 // Select the next server from the list of forward servers.
157 if (selectNextServer()) {
158 // We have a server to try.
160 } else {
161 // Server list is exhausted, so fail the transaction.
163 }
164}
165
166void
168 if (doOnEntry()) {
169 // Clear the update attempts count on initial transition.
171 }
172
173 switch(getNextEvent()) {
175 try {
178 } catch (const std::exception& ex) {
179 // While unlikely, the build might fail if we have invalid
180 // data. Should that be the case, we need to fail the
181 // transaction.
183 .arg(getRequestId())
184 .arg(getNcr()->toText())
185 .arg(ex.what());
187 break;
188 }
189
190 // Call sendUpdate() to initiate the async send. Note it also sets
191 // next event to NOP_EVT.
192 sendUpdate("Forward Add");
193 break;
194
195 case IO_COMPLETED_EVT: {
196 switch (getDnsUpdateStatus()) {
197 case DNSClient::SUCCESS: {
198 // We successfully received a response packet from the server.
199 const dns::Rcode& rcode = getDnsUpdateResponse()->getRcode();
200 if (rcode == dns::Rcode::NOERROR()) {
201 // We were able to add it. Mark it as done.
203
204 // If request calls for reverse update then do that next,
205 // otherwise we can process ok.
206 if (getReverseDomain()) {
208 } else {
210 }
211 } else {
212 // Any other value means cease. Really shouldn't happen.
214 .arg(getRequestId())
215 .arg(getCurrentServer()->toText())
216 .arg(getNcr()->getFqdn())
217 .arg(rcode.getCode());
219 }
220
221 break;
222 }
223
225 // No response from the server, log it and set up
226 // to select the next server for a retry.
228 .arg(getRequestId())
229 .arg(getNcr()->getFqdn())
230 .arg(getCurrentServer()->toText());
231
233 break;
234
235 case DNSClient::OTHER:
236 // We couldn't send to the current server, log it and set up
237 // to select the next server for a retry.
239 .arg(getRequestId())
240 .arg(getNcr()->getFqdn())
241 .arg(getCurrentServer()->toText());
242
244 break;
245
247 // A response was received but was corrupt. Retry it like an IO
248 // error.
250 .arg(getRequestId())
251 .arg(getCurrentServer()->toText())
252 .arg(getNcr()->getFqdn());
253
255 break;
256
257 default:
258 // Any other value and we will fail this transaction, something
259 // bigger is wrong.
261 .arg(getRequestId())
262 .arg(getDnsUpdateStatus())
263 .arg(getNcr()->getFqdn())
264 .arg(getCurrentServer()->toText());
265
267 break;
268 } // end switch on dns_status
269
270 break;
271 } // end case IO_COMPLETE_EVT
272
273 default:
274 // Event is invalid.
276 "Wrong event for context: " << getContextStr());
277 }
278}
279
280void
282 switch(getNextEvent()) {
284 // First time through for this transaction, so initialize server
285 // selection.
287 break;
289 // We failed to communicate with current server. Attempt to select
290 // another one below.
291 break;
292 default:
293 // Event is invalid.
295 "Wrong event for context: " << getContextStr());
296 }
297
298 // Select the next server from the list of forward servers.
299 if (selectNextServer()) {
300 // We have a server to try.
302 } else {
303 // Server list is exhausted, so fail the transaction.
305 }
306}
307
308
309void
311 if (doOnEntry()) {
312 // Clear the update attempts count on initial transition.
314 }
315
316 switch(getNextEvent()) {
318 try {
321 } catch (const std::exception& ex) {
322 // While unlikely, the build might fail if we have invalid
323 // data. Should that be the case, we need to fail the
324 // transaction.
326 .arg(getRequestId())
327 .arg(getNcr()->toText())
328 .arg(ex.what());
330 break;
331 }
332
333 // Call sendUpdate() to initiate the async send. Note it also sets
334 // next event to NOP_EVT.
335 sendUpdate("Reverse Replace");
336 break;
337
338 case IO_COMPLETED_EVT: {
339 switch (getDnsUpdateStatus()) {
340 case DNSClient::SUCCESS: {
341 // We successfully received a response packet from the server.
342 const dns::Rcode& rcode = getDnsUpdateResponse()->getRcode();
343 if (rcode == dns::Rcode::NOERROR()) {
344 // We were able to update the reverse mapping. Mark it as done.
347 } else {
348 // Per RFC4703 any other value means cease.
349 // If we get not authorized should try the next server in
350 // the list? @todo This needs some discussion perhaps.
352 .arg(getRequestId())
353 .arg(getCurrentServer()->toText())
354 .arg(getNcr()->getFqdn())
355 .arg(rcode.getCode());
357 }
358
359 break;
360 }
361
363 // No response from the server, log it and set up
364 // to select the next server for a retry.
366 .arg(getRequestId())
367 .arg(getNcr()->getFqdn())
368 .arg(getCurrentServer()->toText());
369
370 // If we are out of retries on this server, we go back and start
371 // all over on a new server.
373 break;
374
375 case DNSClient::OTHER:
376 // We couldn't send to the current server, log it and set up
377 // to select the next server for a retry.
379 .arg(getRequestId())
380 .arg(getNcr()->getFqdn())
381 .arg(getCurrentServer()->toText());
382
383 // If we are out of retries on this server, we go back and start
384 // all over on a new server.
386 break;
387
389 // A response was received but was corrupt. Retry it like an IO
390 // error.
392 .arg(getRequestId())
393 .arg(getCurrentServer()->toText())
394 .arg(getNcr()->getFqdn());
395
396 // If we are out of retries on this server, we go back and start
397 // all over on a new server.
399 break;
400
401 default:
402 // Any other value and we will fail this transaction, something
403 // bigger is wrong.
406 .arg(getRequestId())
407 .arg(getDnsUpdateStatus())
408 .arg(getNcr()->getFqdn())
409 .arg(getCurrentServer()->toText());
410
412 break;
413 } // end switch on dns_status
414
415 break;
416 } // end case IO_COMPLETE_EVT
417
418 default:
419 // Event is invalid.
421 "Wrong event for context: " << getContextStr());
422 }
423}
424
425void
427 switch(getNextEvent()) {
428 case UPDATE_OK_EVT:
430 .arg(getRequestId())
431 .arg(getNcr()->toText());
433 endModel();
434 break;
435 default:
436 // Event is invalid.
438 "Wrong event for context: " << getContextStr());
439 }
440}
441
442void
444 switch(getNextEvent()) {
449 .arg(getRequestId())
451 endModel();
452 break;
453 default:
454 // Event is invalid.
456 "Wrong event for context: " << getContextStr());
457 }
458}
459
460void
462 // Construct an empty request.
464
465 // Construct dns::Name from NCR fqdn.
466 dns::Name fqdn(dns::Name(getNcr()->getFqdn()));
467
468 // There are no prerequisites.
469
470 // Build the Update Section. First we delete any pre-existing
471 // FQDN/IP and DHCID RRs. Then we add new ones.
472
473 // Create the FQDN/IP 'delete' RR and add it to update section.
474 dns::RRsetPtr update(new dns::RRset(fqdn, dns::RRClass::ANY(),
476
477 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
478
479 // Create the DHCID 'delete' RR and add it to the update section.
480 update.reset(new dns::RRset(fqdn, dns::RRClass::ANY(),
482 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
483
484 // Now make the new RRs.
485 // Create the TTL based on lease length.
486 dns::RRTTL lease_ttl(getNcr()->getLeaseLength());
487
488 // Create the FQDN/IP 'add' RR and add it to the to update section.
489 // Based on RFC 2136, section 2.5.1
490 update.reset(new dns::RRset(fqdn, dns::RRClass::IN(),
491 getAddressRRType(), lease_ttl));
492
493 addLeaseAddressRdata(update);
494 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
495
496 // Now create the FQDN/DHCID 'add' RR and add it to update section.
497 // Based on RFC 2136, section 2.5.1
498 update.reset(new dns::RRset(fqdn, dns::RRClass::IN(),
499 dns::RRType::DHCID(), lease_ttl));
500
501 // We add the DHCID for auditing purposes and in the event
502 // conflict resolution is later enabled.
503 addDhcidRdata(update);
504 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
505
506 // Set the transaction's update request to the new request.
507 setDnsUpdateRequest(request);
508}
509
510void
512 // Construct an empty request.
514
515 // Create the reverse IP address "FQDN".
516 std::string rev_addr = D2CfgMgr::reverseIpAddress(getNcr()->getIpAddress());
517 dns::Name rev_ip(rev_addr);
518
519 // Create the TTL based on lease length.
520 dns::RRTTL lease_ttl(getNcr()->getLeaseLength());
521
522 // There are no prerequisites.
523
524 // Create the FQDN/IP PTR 'delete' RR for this IP and add it to
525 // the update section.
526 dns::RRsetPtr update(new dns::RRset(rev_ip, dns::RRClass::ANY(),
528 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
529
530 // Create the DHCID 'delete' RR and add it to the update section.
531 update.reset(new dns::RRset(rev_ip, dns::RRClass::ANY(),
533 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
534
535 // Create the FQDN/IP PTR 'add' RR, add the FQDN as the PTR Rdata
536 // then add it to update section.
537 update.reset(new dns::RRset(rev_ip, dns::RRClass::IN(),
538 dns::RRType::PTR(), lease_ttl));
539 addPtrRdata(update);
540 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
541
542 // Create the FQDN/IP PTR 'add' RR, add the DHCID Rdata
543 // then add it to update section.
544 update.reset(new dns::RRset(rev_ip, dns::RRClass::IN(),
545 dns::RRType::DHCID(), lease_ttl));
546 addDhcidRdata(update);
547 request->addRRset(D2UpdateMessage::SECTION_UPDATE, update);
548
549 // Set the transaction's update request to the new request.
550 setDnsUpdateRequest(request);
551}
552
553} // namespace isc::d2
554} // namespace isc
static std::string reverseIpAddress(const std::string &address)
Generate a reverse order string for the given IP address.
Definition: d2_cfg_mgr.cc:169
@ TIMEOUT
No response, timeout.
Definition: dns_client.h:60
@ OTHER
Other, unclassified error.
Definition: dns_client.h:63
@ INVALID_RESPONSE
Response received but invalid.
Definition: dns_client.h:62
@ SUCCESS
Response received and is ok.
Definition: dns_client.h:59
Embodies the "life-cycle" required to carry out a DDNS update.
Definition: nc_trans.h:77
static const int SELECTING_FWD_SERVER_ST
State in which forward DNS server selection is done.
Definition: nc_trans.h:91
void retryTransition(const int fail_to_state)
Determines the state and next event based on update attempts.
Definition: nc_trans.cc:287
static const int PROCESS_TRANS_FAILED_ST
State which processes an unsuccessful transaction conclusion.
Definition: nc_trans.h:105
static const int READY_ST
State from which a transaction is started.
Definition: nc_trans.h:83
const D2UpdateMessagePtr & getDnsUpdateResponse() const
Fetches the most recent DNS update response packet.
Definition: nc_trans.cc:554
static const int PROCESS_TRANS_OK_ST
State which processes successful transaction conclusion.
Definition: nc_trans.h:102
static const int UPDATE_OK_EVT
Issued when the attempted update successfully completed.
Definition: nc_trans.h:135
virtual void verifyStates()
Validates the contents of the set of states.
Definition: nc_trans.cc:266
virtual D2UpdateMessagePtr prepNewRequest(DdnsDomainPtr domain)
Creates a new DNS update request based on the given domain.
Definition: nc_trans.cc:344
static const int UPDATE_FAILED_EVT
Issued when the attempted update fails to complete.
Definition: nc_trans.h:141
const dns::RRType & getAddressRRType() const
Returns the DHCP data type for the lease address.
Definition: nc_trans.cc:574
const dhcp_ddns::NameChangeRequestPtr & getNcr() const
Fetches the NameChangeRequest for this transaction.
Definition: nc_trans.cc:426
void initServerSelection(const DdnsDomainPtr &domain)
Initializes server selection from the given DDNS domain.
Definition: nc_trans.cc:456
static const int IO_COMPLETED_EVT
Issued when a DNS update packet exchange has completed.
Definition: nc_trans.h:130
static const int SELECT_SERVER_EVT
Issued when a server needs to be selected.
Definition: nc_trans.h:113
static const int SERVER_IO_ERROR_EVT
Issued when an update fails due to an IO error.
Definition: nc_trans.h:119
std::string getRequestId() const
Fetches the request id that identifies this transaction.
Definition: nc_trans.cc:436
virtual void defineStates()
Adds states defined by NameChangeTransaction to the state set.
Definition: nc_trans.cc:258
void addLeaseAddressRdata(dns::RRsetPtr &rrset)
Adds an RData for the lease address to the given RRset.
Definition: nc_trans.cc:367
virtual void sendUpdate(const std::string &comment="")
Send the update request to the current server.
Definition: nc_trans.cc:193
void setForwardChangeCompleted(const bool value)
Sets the forward change completion flag to the given value.
Definition: nc_trans.cc:329
void addPtrRdata(dns::RRsetPtr &rrset)
Adds an RData for the lease FQDN to the given RRset.
Definition: nc_trans.cc:409
bool selectNextServer()
Selects the next server in the current server list.
Definition: nc_trans.cc:468
void setNcrStatus(const dhcp_ddns::NameChangeStatus &status)
Sets the status of the transaction's NameChangeRequest.
Definition: nc_trans.cc:539
DdnsDomainPtr & getForwardDomain()
Fetches the forward DdnsDomain.
Definition: nc_trans.cc:446
virtual void verifyEvents()
Validates the contents of the set of events.
Definition: nc_trans.cc:243
void addDhcidRdata(dns::RRsetPtr &rrset)
Adds an RData for the lease client's DHCID to the given RRset.
Definition: nc_trans.cc:389
void clearDnsUpdateRequest()
Destroys the current update request packet.
Definition: nc_trans.cc:304
void clearUpdateAttempts()
Resets the update attempts count.
Definition: nc_trans.cc:309
static const int SELECTING_REV_SERVER_ST
State in which reverse DNS server selection is done.
Definition: nc_trans.h:99
DNSClient::Status getDnsUpdateStatus() const
Fetches the most recent DNS update status.
Definition: nc_trans.cc:549
void setDnsUpdateRequest(D2UpdateMessagePtr &request)
Sets the update request packet to the given packet.
Definition: nc_trans.cc:299
static const int NO_MORE_SERVERS_EVT
Issued when there are no more servers from which to select.
Definition: nc_trans.h:125
virtual void defineEvents()
Adds events defined by NameChangeTransaction to the event set.
Definition: nc_trans.cc:228
void setReverseChangeCompleted(const bool value)
Sets the reverse change completion flag to the given value.
Definition: nc_trans.cc:334
const DnsServerInfoPtr & getCurrentServer() const
Fetches the currently selected server.
Definition: nc_trans.cc:534
static const int SERVER_SELECTED_EVT
Issued when a server has been selected.
Definition: nc_trans.h:116
DdnsDomainPtr & getReverseDomain()
Fetches the reverse DdnsDomain.
Definition: nc_trans.cc:451
std::string transactionOutcomeString() const
Returns a string version of transaction outcome.
Definition: nc_trans.cc:171
Thrown if the SimpleAddTransaction encounters a general error.
Definition: simple_add.h:19
void selectingFwdServerHandler()
State handler for SELECTING_FWD_SERVER_ST.
Definition: simple_add.cc:139
virtual void defineEvents()
Adds events defined by SimpleAddTransaction to the event set.
Definition: simple_add.cc:47
static const int FQDN_IN_USE_EVT
Event sent when an add attempt fails with address in use.
Definition: simple_add.h:60
void readyHandler()
State handler for READY_ST.
Definition: simple_add.cc:119
void processAddOkHandler()
State handler for PROCESS_TRANS_OK_ST.
Definition: simple_add.cc:426
static const int REPLACING_REV_PTRS_ST
State that attempts to replace reverse PTR records.
Definition: simple_add.h:55
void selectingRevServerHandler()
State handler for SELECTING_REV_SERVER_ST.
Definition: simple_add.cc:281
SimpleAddTransaction(asiolink::IOServicePtr &io_service, dhcp_ddns::NameChangeRequestPtr &ncr, DdnsDomainPtr &forward_domain, DdnsDomainPtr &reverse_domain, D2CfgMgrPtr &cfg_mgr)
Constructor.
Definition: simple_add.cc:30
void replacingFwdAddrsHandler()
State handler for REPLACING_FWD_ADDRS_ST.
Definition: simple_add.cc:167
void replacingRevPtrsHandler()
State handler for REPLACING_REV_PTRS_ST.
Definition: simple_add.cc:310
virtual void verifyEvents()
Validates the contents of the set of events.
Definition: simple_add.cc:57
void buildReplaceRevPtrsRequest()
Builds a DNS request to replace a reverse DNS entry for an FQDN.
Definition: simple_add.cc:511
static const int FQDN_NOT_IN_USE_EVT
Event sent when replace attempt to fails with address not in use.
Definition: simple_add.h:63
virtual ~SimpleAddTransaction()
Destructor.
Definition: simple_add.cc:43
static const int REPLACING_FWD_ADDRS_ST
State that attempts to add forward address records.
Definition: simple_add.h:52
virtual void verifyStates()
Validates the contents of the set of states.
Definition: simple_add.cc:103
void processAddFailedHandler()
State handler for PROCESS_TRANS_FAILED_ST.
Definition: simple_add.cc:443
virtual void defineStates()
Adds states defined by SimpleAddTransaction to the state set.
Definition: simple_add.cc:75
void buildReplaceFwdAddressRequest()
Builds a DNS request to add/replace a forward DNS entry for an FQDN.
Definition: simple_add.cc:461
The Name class encapsulates DNS names.
Definition: name.h:219
static const RRClass & ANY()
Definition: rrclass.h:298
static const RRClass & IN()
Definition: rrclass.h:304
The RRTTL class encapsulates TTLs used in DNS resource records.
Definition: rrttl.h:51
static const RRType & PTR()
Definition: rrtype.h:303
static const RRType & DHCID()
Definition: rrtype.h:327
The RRset class is a concrete derived class of BasicRRset which contains a pointer to an additional R...
Definition: rrset.h:844
DNS Response Codes (RCODEs) class.
Definition: rcode.h:40
static const Rcode & NOERROR()
A constant object for the NOERROR Rcode (see Rcode::NOERROR_CODE).
Definition: rcode.h:228
uint16_t getCode() const
Returns the Rcode code value.
Definition: rcode.h:106
const EventPtr & getEvent(unsigned int value)
Fetches the event referred to by value.
Definition: state_model.cc:186
void endModel()
Conducts a normal transition to the end of the model.
Definition: state_model.cc:271
void defineState(unsigned int value, const std::string &label, StateHandler handler, const StatePausing &state_pausing=STATE_PAUSE_NEVER)
Adds an state value and associated label to the set of states.
Definition: state_model.cc:196
unsigned int getNextEvent() const
Fetches the model's next event.
Definition: state_model.cc:373
void defineEvent(unsigned int value, const std::string &label)
Adds an event value and associated label to the set of events.
Definition: state_model.cc:170
void transition(unsigned int state, unsigned int event)
Sets up the model to transition into given state with a given event.
Definition: state_model.cc:264
bool doOnEntry()
Checks if on entry flag is true.
Definition: state_model.cc:339
static const int START_EVT
Event issued to start the model execution.
Definition: state_model.h:295
const StatePtr getStateInternal(unsigned int value)
Fetches the state referred to by value.
Definition: state_model.cc:219
std::string getContextStr() const
Convenience method which returns a string rendition of the current state and next event.
Definition: state_model.cc:443
#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_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
Definition: macros.h:20
boost::shared_ptr< D2UpdateMessage > D2UpdateMessagePtr
Pointer to the DNS Update Message.
const isc::log::MessageID DHCP_DDNS_FORWARD_ADD_BUILD_FAILURE
Definition: d2_messages.h:24
boost::shared_ptr< DdnsDomain > DdnsDomainPtr
Defines a pointer for DdnsDomain instances.
Definition: d2_config.h:622
const isc::log::MessageID DHCP_DDNS_FORWARD_ADD_REJECTED
Definition: d2_messages.h:26
const isc::log::MessageID DHCP_DDNS_REVERSE_REPLACE_RESP_CORRUPT
Definition: d2_messages.h:83
boost::shared_ptr< D2CfgMgr > D2CfgMgrPtr
Defines a shared pointer to D2CfgMgr.
Definition: d2_cfg_mgr.h:334
const isc::log::MessageID DHCP_DDNS_ADD_SUCCEEDED
Definition: d2_messages.h:12
const isc::log::MessageID DHCP_DDNS_FORWARD_ADD_IO_ERROR
Definition: d2_messages.h:25
const isc::log::MessageID DHCP_DDNS_REVERSE_REPLACE_TIMEOUT
Definition: d2_messages.h:84
const isc::log::MessageID DHCP_DDNS_ADD_FAILED
Definition: d2_messages.h:11
isc::log::Logger d2_to_dns_logger("d2-to-dns")
Definition: d2_log.h:20
const isc::log::MessageID DHCP_DDNS_FORWARD_ADD_TIMEOUT
Definition: d2_messages.h:28
const isc::log::MessageID DHCP_DDNS_REVERSE_REPLACE_REJECTED
Definition: d2_messages.h:82
const isc::log::MessageID DHCP_DDNS_REVERSE_REPLACE_BUILD_FAILURE
Definition: d2_messages.h:80
const isc::log::MessageID DHCP_DDNS_FORWARD_ADD_BAD_DNSCLIENT_STATUS
Definition: d2_messages.h:23
const isc::log::MessageID DHCP_DDNS_REVERSE_REPLACE_BAD_DNSCLIENT_STATUS
Definition: d2_messages.h:79
const isc::log::MessageID DHCP_DDNS_REVERSE_REPLACE_IO_ERROR
Definition: d2_messages.h:81
const isc::log::MessageID DHCP_DDNS_FORWARD_ADD_RESP_CORRUPT
Definition: d2_messages.h:27
boost::shared_ptr< NameChangeRequest > NameChangeRequestPtr
Defines a pointer to a NameChangeRequest.
Definition: ncr_msg.h:241
boost::shared_ptr< AbstractRRset > RRsetPtr
A pointer-like type pointing to an RRset object.
Definition: rrset.h:50
Defines the logger used by the top-level component of kea-lfc.