]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5457] Added debug message for parking a packet.
authorMarcin Siodelski <marcin@isc.org>
Thu, 25 Jan 2018 10:53:22 +0000 (11:53 +0100)
committerMarcin Siodelski <marcin@isc.org>
Thu, 25 Jan 2018 10:53:22 +0000 (11:53 +0100)
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp4/dhcp4_srv.cc

index 127aecb0da55bfb44b9b7943ab7f27cf4646d3dc..fbdbd81527a720ad4a29004ef3e50b0cb0700e23 100644 (file)
@@ -272,10 +272,14 @@ This debug message is printed when a callout installed on lease4_release
 hook point set the next step status to SKIP. For this particular hook point, the
 value set by a callout instructs the server to not release a lease.
 
-% DHCP4_HOOK_LEASES4_COMMITTED_DROP %1: packet is dropped, because a callout set the next step tp DROP
+% DHCP4_HOOK_LEASES4_COMMITTED_DROP %1: packet is dropped, because a callout set the next step to DROP
 This debug message is printed when a callout installed on the leases4_committed
 hook point sets the next step to DROP.
 
+% DHCP4_HOOK_LEASES4_COMMITTED_PARK %1: packet is parked, because a callout set the next step to PARK
+This debug message is printed when a callout installed on the lease4_committed
+hook point sets the next step to PARK.
+
 % DHCP4_HOOK_PACKET_RCVD_SKIP %1: packet is dropped, because a callout set the next step to SKIP
 This debug message is printed when a callout installed on the pkt4_receive
 hook point sets the next step to SKIP. For this particular hook point, the
index eca6a10ccd731e605fac702a2936ab56a79fc2f7..2ca899530fd1d5da75696cb6fb631eeb91aa9a1c 100644 (file)
@@ -1093,6 +1093,10 @@ Dhcpv4Srv::processPacket(Pkt4Ptr& query, Pkt4Ptr& rsp, bool allow_packet_park) {
     // PARKING SPOT after leases4_committed hook point.
     CalloutHandlePtr callout_handle = getCalloutHandle(query);
     if (packet_park) {
+        LOG_DEBUG(hooks_logger, DBG_DHCP4_HOOKS,
+                  DHCP4_HOOK_LEASES4_COMMITTED_PARK)
+            .arg(query->getLabel());
+
         // Park the packet. The function we bind here will be executed when the hook
         // library unparks the packet.
         HooksManager::park("leases4_committed", query,