From 6c489c3e41b80055f2ac76b11ea14addc4a5f4c2 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Fri, 26 Jun 2015 12:29:25 +0200 Subject: [3913] Allocation engine extends the lifetime of the lease for Request. --- src/lib/dhcpsrv/alloc_engine.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 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 f867f8c8fb..2c2335dbe3 100644 --- a/src/lib/dhcpsrv/alloc_engine.h +++ b/src/lib/dhcpsrv/alloc_engine.h @@ -634,19 +634,26 @@ private: ClientContext6& ctx, uint8_t prefix_len); - /// @brief Updates FQDN data for a collection of leases. + /// @brief Updates FQDN and Client's Last Tranmission Time for a collection + /// of leases. + /// + /// This method is executed when the server finds existing leases for a + /// client and updates some date for these leases if needed: + /// - client's last transmission time (cltt), if the lease to be returned + /// to the client should have its lifetime extended, + /// - FQDN data, when the client has negotiated new FQDN with the server. /// /// @param ctx IPv6 client context (old versions of the leases that had /// FQDN data changed will be stored in ctx.changed_leases_, /// ctx.fwd_dns_update, ctx.rev_dns_update, ctx.hostname_ /// and ctx.fake_allocation_ will be used. - /// @param leases Collection of leases for which FQDN data should be + /// @param leases Collection of leases for which lease data should be /// updated. /// - /// @return Collection of leases with updated FQDN data. Note that returned + /// @return Collection of leases with updated data. Note that returned /// collection holds updated FQDN data even for fake allocation. - Lease6Collection updateFqdnData(ClientContext6& ctx, - const Lease6Collection& leases); + Lease6Collection updateLeaseData(ClientContext6& ctx, + const Lease6Collection& leases); /// @brief Utility function that removes all leases with a specified address /// @param container A collection of Lease6 pointers -- cgit v1.2.3