From: Marcin Siodelski Date: Thu, 25 Jan 2018 10:53:22 +0000 (+0100) Subject: [5457] Added debug message for parking a packet. X-Git-Tag: ha_checkpoints12~3^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6622174349d0ca2131d7eaf8573cded3d938231;p=thirdparty%2Fkea.git [5457] Added debug message for parking a packet. --- diff --git a/src/bin/dhcp4/dhcp4_messages.mes b/src/bin/dhcp4/dhcp4_messages.mes index 127aecb0da..fbdbd81527 100644 --- a/src/bin/dhcp4/dhcp4_messages.mes +++ b/src/bin/dhcp4/dhcp4_messages.mes @@ -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 diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc index eca6a10ccd..2ca899530f 100644 --- a/src/bin/dhcp4/dhcp4_srv.cc +++ b/src/bin/dhcp4/dhcp4_srv.cc @@ -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,