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:
@@ -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
|
||||
|
Reference in New Issue
Block a user