2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

Applying suggested changes

This commit is contained in:
Andrei Pavel
2023-03-22 11:13:46 +00:00
committed by Thomas Markwalder
parent bc894f9cbe
commit 13fae7730d
5 changed files with 5 additions and 6 deletions

View File

@@ -224,14 +224,13 @@ public:
/// @brief Sets offer lifetime for the class.
///
/// Will be used for the offer lifetime (may be empty if not defined)
/// @param offer_lft the offer lifetime assigned to the class (may be empty if not defined)
void setOfferLft(const util::Optional<uint32_t>& offer_lft) {
offer_lft_ = offer_lft;
}
/// @brief Returns offer lifetime for the class.
///
/// @param inheritance inheritance mode to be used.
/// @return offer lifetime value
util::Optional<uint32_t> getOfferLft() const {
return (offer_lft_);

View File

@@ -1312,7 +1312,7 @@ public:
/// @brief Sets offer lifetime for the network.
///
/// Will be used for the offer lifetime (may be empty if not defined)
/// @param offer_lft the offer lifetime assigned to the class (may be empty if not defined)
void setOfferLft(const util::Optional<uint32_t>& offer_lft) {
offer_lft_ = offer_lft;
}

View File

@@ -5782,7 +5782,7 @@ TEST_F(AllocEngine4Test, discoverOfferLftReuseExpiredLease4) {
// Verifies that AllocEngine::getOfferLft(ctx4) returns the appropriate
// lifetime value based on the context content.
TEST_F(AllocEngine4Test, getOfferft4) {
TEST_F(AllocEngine4Test, getOfferLft4) {
AllocEngine engine(0);
// Let's make three classes, two with offer-lifetime and one without,

View File

@@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (C) 2022-2023 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this