2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 08:25:16 +00:00

[897-add-infinite-valid-lifetime-for-bootp] Reported previous changes

This commit is contained in:
Francis Dupont
2019-09-22 19:23:40 +02:00
parent b8c6f9988d
commit c2f06c48ae
16 changed files with 259 additions and 47 deletions

View File

@@ -2186,11 +2186,16 @@ Dhcpv4Srv::assignLease(Dhcpv4Exchange& ex) {
LOG_INFO(lease4_logger, DHCP4_LEASE_ADVERT)
.arg(query->getLabel())
.arg(lease->addr_.toText());
} else {
} else if (lease->valid_lft_ != Lease::INFINITY_LFT) {
LOG_INFO(lease4_logger, DHCP4_LEASE_ALLOC)
.arg(query->getLabel())
.arg(lease->addr_.toText())
.arg(lease->valid_lft_);
} else {
LOG_INFO(lease4_logger, DHCP4_LEASE_ALLOC)
.arg(query->getLabel())
.arg(lease->addr_.toText())
.arg("infinity");
}
// We're logging this here, because this is the place where we know