diff options
author | Thomas Markwalder <tmark@isc.org> | 2024-11-19 21:44:01 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2024-12-16 16:15:09 +0100 |
commit | 7268fb348aab3e9e8747bb29d48be841e367bbfe (patch) | |
tree | a0438129fa1c594515e021917aeb6382677869e1 | |
parent | [#2819] kea-dhcp4 supports ddns-ttl, min, and max (diff) | |
download | kea-7268fb348aab3e9e8747bb29d48be841e367bbfe.tar.xz kea-7268fb348aab3e9e8747bb29d48be841e367bbfe.zip |
[#2819] Fixed commentary
modified: src/lib/dhcpsrv/ncr_generator.h
-rw-r--r-- | src/lib/dhcpsrv/ncr_generator.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/dhcpsrv/ncr_generator.h b/src/lib/dhcpsrv/ncr_generator.h index 467d1ee21c..e81b37b635 100644 --- a/src/lib/dhcpsrv/ncr_generator.h +++ b/src/lib/dhcpsrv/ncr_generator.h @@ -46,19 +46,16 @@ void queueNCR(const dhcp_ddns::NameChangeType& chg_type, const Lease6Ptr& lease) /// /// The logic for calculating TTL is as follow: /// -/// If ddns-ttl is specified use it unconditionally. +/// 1. If ddns-ttl is specified use it unconditionally. /// -/// If ddns-ttl-percnet is specified use it otherwise use 1/3 as -/// called for by RFC 4702. +/// 2. If ddns-ttl-percent is specified use it, otherwise use 1/3 as called for by RFC 4702. /// -/// Calculate the candidate TTL based on the deteremined percentage. +/// 3. Calculate the candidate TTL based on the determined percentage. /// -/// If ddsn-ttl-min is specified used it otherwise use a minimum of -/// 600 per RFC 4702. If the TTL is less than the mininum return -/// the minimum. +/// 4. If ddns-ttl-min is specified use it otherwise use a minimum of 600 seconds per RFC 4702. +/// If the calculated TTL is less than the minimum return the minimum. /// -/// If ddsn-ttl-max is specified limit the ttl to that value otherwse -/// return the ttl. +/// 5. If ddns-ttl-max is specified limit the calculated TTL to that value. /// /// @param lease_life_time valid life time of the lease /// @param ddns_ttl_percent optional percentage to use in calculation |