From d9d36098a7832320b9890bc2fc9a20e67192e0bc Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Wed, 9 Sep 2015 15:44:07 +0200 Subject: [3973] Added logging to the lease expiration routine. Also added better exception handling. --- src/lib/dhcpsrv/alloc_engine.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/lib/dhcpsrv/alloc_engine.h') diff --git a/src/lib/dhcpsrv/alloc_engine.h b/src/lib/dhcpsrv/alloc_engine.h index 0bf1db7894..c6c2756c61 100644 --- a/src/lib/dhcpsrv/alloc_engine.h +++ b/src/lib/dhcpsrv/alloc_engine.h @@ -678,9 +678,20 @@ private: /// @param lease IPv6 lease to be extended. void extendLease6(ClientContext6& ctx, Lease6Ptr lease); + /// @brief Sends removal name change reuqest to D2. + /// + /// This method is exception safe. + /// + /// @param lease Pointer to a lease for which NCR should be sent. + /// @param identifier Identifier to be used to generate DHCID for + /// the DNS update. For DHCPv4 it will be hardware address, client + /// identifier. For DHCPv6 it will be a DUID. + /// + /// @tparam LeasePtrType Pointer to a lease. + /// @tparam Identifier HW Address, Client Identifier or DUID. template - void queueNameChangeRequest(const LeasePtrType& lease, - const IdentifierType& identifier) const; + void queueRemovalNameChangeRequest(const LeasePtrType& lease, + const IdentifierType& identifier) const; public: -- cgit v1.2.3