mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#2918] added message for requested address on DHCPREQUEST
This commit is contained in:
@@ -154,6 +154,7 @@ extern const isc::log::MessageID DHCP4_RELEASE_EXPIRED = "DHCP4_RELEASE_EXPIRED"
|
||||
extern const isc::log::MessageID DHCP4_RELEASE_FAIL = "DHCP4_RELEASE_FAIL";
|
||||
extern const isc::log::MessageID DHCP4_RELEASE_FAIL_NO_LEASE = "DHCP4_RELEASE_FAIL_NO_LEASE";
|
||||
extern const isc::log::MessageID DHCP4_RELEASE_FAIL_WRONG_CLIENT = "DHCP4_RELEASE_FAIL_WRONG_CLIENT";
|
||||
extern const isc::log::MessageID DHCP4_REQUEST = "DHCP4_REQUEST";
|
||||
extern const isc::log::MessageID DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED = "DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED";
|
||||
extern const isc::log::MessageID DHCP4_RESERVED_HOSTNAME_ASSIGNED = "DHCP4_RESERVED_HOSTNAME_ASSIGNED";
|
||||
extern const isc::log::MessageID DHCP4_RESPONSE_DATA = "DHCP4_RESPONSE_DATA";
|
||||
@@ -331,6 +332,7 @@ const char* values[] = {
|
||||
"DHCP4_RELEASE_FAIL", "%1: failed to remove lease for address %2",
|
||||
"DHCP4_RELEASE_FAIL_NO_LEASE", "%1: client is trying to release non-existing lease %2",
|
||||
"DHCP4_RELEASE_FAIL_WRONG_CLIENT", "%1: client is trying to release the lease %2 which belongs to a different client",
|
||||
"DHCP4_REQUEST", "%1: server is processing DHCPREQUEST with hint=%2",
|
||||
"DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED", "Multi-threading is enabled and host reservations lookup is always performed first.",
|
||||
"DHCP4_RESERVED_HOSTNAME_ASSIGNED", "%1: server assigned reserved hostname %2",
|
||||
"DHCP4_RESPONSE_DATA", "%1: responding with packet %2 (type %3), packet details: %4",
|
||||
|
@@ -155,6 +155,7 @@ extern const isc::log::MessageID DHCP4_RELEASE_EXPIRED;
|
||||
extern const isc::log::MessageID DHCP4_RELEASE_FAIL;
|
||||
extern const isc::log::MessageID DHCP4_RELEASE_FAIL_NO_LEASE;
|
||||
extern const isc::log::MessageID DHCP4_RELEASE_FAIL_WRONG_CLIENT;
|
||||
extern const isc::log::MessageID DHCP4_REQUEST;
|
||||
extern const isc::log::MessageID DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED;
|
||||
extern const isc::log::MessageID DHCP4_RESERVED_HOSTNAME_ASSIGNED;
|
||||
extern const isc::log::MessageID DHCP4_RESPONSE_DATA;
|
||||
|
@@ -551,6 +551,14 @@ about the address that the client would like to have allocated.
|
||||
If there is no hint, the argument should provide the text indicating
|
||||
that the hint hasn't been sent.
|
||||
|
||||
% DHCP4_REQUEST %1: server is processing DHCPREQUEST with hint=%2
|
||||
This is a debug message that indicates the processing of a received DHCPREQUEST
|
||||
message. The first argument contains the client and the transaction
|
||||
identification information. The second argument may hold the hint for the server
|
||||
about the address that the client would like to have allocated.
|
||||
If there is no hint, the argument should provide the text indicating
|
||||
that the hint hasn't been sent.
|
||||
|
||||
% DHCP4_LEASE_ALLOC %1: lease %2 has been allocated for %3 seconds
|
||||
This informational message indicates that the server successfully granted a
|
||||
lease in response to client's DHCPREQUEST message. The lease information will
|
||||
|
@@ -2668,6 +2668,10 @@ Dhcpv4Srv::assignLease(Dhcpv4Exchange& ex) {
|
||||
LOG_DEBUG(lease4_logger, DBG_DHCP4_DETAIL, DHCP4_DISCOVER)
|
||||
.arg(query->getLabel())
|
||||
.arg(hint != IOAddress::IPV4_ZERO_ADDRESS() ? hint.toText() : "(no hint)");
|
||||
} else {
|
||||
LOG_DEBUG(lease4_logger, DBG_DHCP4_DETAIL, DHCP4_REQUEST)
|
||||
.arg(query->getLabel())
|
||||
.arg(hint != IOAddress::IPV4_ZERO_ADDRESS() ? hint.toText() : "(no hint)");
|
||||
}
|
||||
|
||||
// If there is no subnet configuration for that client we ignore the
|
||||
|
Reference in New Issue
Block a user