summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/parsers/dhcp_parsers.cc
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2023-03-06 16:25:24 +0100
committerThomas Markwalder <tmark@isc.org>2023-03-23 12:17:48 +0100
commitef3281460d623c0275e2d44a20d4757b21e403a8 (patch)
treea74e38dfe0aeec54fee54a15678e63a0f9199de1 /src/lib/dhcpsrv/parsers/dhcp_parsers.cc
parent[#2719] kea-dhcp4 offer-lft is now functional (diff)
downloadkea-ef3281460d623c0275e2d44a20d4757b21e403a8.tar.xz
kea-ef3281460d623c0275e2d44a20d4757b21e403a8.zip
[#2719] Renamed parameter and added it to classes
Renamed offer-lft to offer-lifetime to match other lifetime parameters.
Diffstat (limited to 'src/lib/dhcpsrv/parsers/dhcp_parsers.cc')
-rw-r--r--src/lib/dhcpsrv/parsers/dhcp_parsers.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc
index a4867e7470..6053d722c3 100644
--- a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc
+++ b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc
@@ -961,12 +961,12 @@ Subnet4ConfigParser::initSubnet(data::ConstElementPtr params,
parseCacheParams(params, network);
// Set the offer_lft value for the subnet.
- if (params->contains("offer-lft")) {
- uint32_t offer_lft = getInteger(params, "offer-lft");
+ if (params->contains("offer-lifetime")) {
+ uint32_t offer_lft = getInteger(params, "offer-lifetime");
subnet4->setOfferLft(offer_lft);
}
- // Parse offer-lft parameter.
+ // Parse offer-lifetime parameter.
Network4Ptr network4 = boost::dynamic_pointer_cast<Network4>(subnet4);
parseOfferLft(params, network4);