diff options
author | Marcin Siodelski <marcin@isc.org> | 2015-09-09 15:44:07 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2015-09-11 09:41:54 +0200 |
commit | d9d36098a7832320b9890bc2fc9a20e67192e0bc (patch) | |
tree | 11f2ee9630c09d3c1cff302ce92b3657dbe3417f /src/lib/dhcpsrv/alloc_engine.h | |
parent | [3973] Implemented first version of the lease reclamation routine. (diff) | |
download | kea-d9d36098a7832320b9890bc2fc9a20e67192e0bc.tar.xz kea-d9d36098a7832320b9890bc2fc9a20e67192e0bc.zip |
[3973] Added logging to the lease expiration routine.
Also added better exception handling.
Diffstat (limited to 'src/lib/dhcpsrv/alloc_engine.h')
-rw-r--r-- | src/lib/dhcpsrv/alloc_engine.h | 15 |
1 files changed, 13 insertions, 2 deletions
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<typename LeasePtrType, typename IdentifierType> - void queueNameChangeRequest(const LeasePtrType& lease, - const IdentifierType& identifier) const; + void queueRemovalNameChangeRequest(const LeasePtrType& lease, + const IdentifierType& identifier) const; public: |