summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp_ddns
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2021-10-07 19:26:38 +0200
committerRazvan Becheriu <razvan@isc.org>2021-10-08 13:47:19 +0200
commit2e4a094bfdf4073020c2578b7bc09645d0e71ddb (patch)
tree22f902c1ddce220afeae83a0a2854ef50979b743 /src/lib/dhcp_ddns
parent[#2089] check keys stats in unittests (diff)
downloadkea-2e4a094bfdf4073020c2578b7bc09645d0e71ddb.tar.xz
kea-2e4a094bfdf4073020c2578b7bc09645d0e71ddb.zip
[#2089] added ncr unittests
Diffstat (limited to 'src/lib/dhcp_ddns')
-rw-r--r--src/lib/dhcp_ddns/ncr_udp.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dhcp_ddns/ncr_udp.cc b/src/lib/dhcp_ddns/ncr_udp.cc
index fc46f5b651..43629d1818 100644
--- a/src/lib/dhcp_ddns/ncr_udp.cc
+++ b/src/lib/dhcp_ddns/ncr_udp.cc
@@ -163,12 +163,12 @@ NameChangeUDPListener::receiveCompletionHandler(const bool successful,
try {
ncr = NameChangeRequest::fromFormat(format_, input_buffer);
isc::stats::StatsMgr::instance().addValue("ncr-received",
- static_cast<int64_t>(0));
+ static_cast<int64_t>(1));
} catch (const NcrMessageError& ex) {
// log it and go back to listening
LOG_ERROR(dhcp_ddns_logger, DHCP_DDNS_INVALID_NCR).arg(ex.what());
isc::stats::StatsMgr::instance().addValue("ncr-invalid",
- static_cast<int64_t>(0));
+ static_cast<int64_t>(1));
// Queue up the next receive.
// NOTE: We must call the base class, NEVER doReceive
@@ -187,7 +187,7 @@ NameChangeUDPListener::receiveCompletionHandler(const bool successful,
LOG_ERROR(dhcp_ddns_logger, DHCP_DDNS_NCR_UDP_RECV_ERROR)
.arg(error_code.message());
isc::stats::StatsMgr::instance().addValue("ncr-error",
- static_cast<int64_t>(0));
+ static_cast<int64_t>(1));
result = ERROR;
}
}