From: ARUNKUMAR KAYAMBU -X (akayambu - XORIANT CORPORATION at Cisco) Date: Tue, 23 Jul 2024 18:49:12 +0000 (+0000) Subject: Pull request #4391: daq: added outstanding packets counter X-Git-Tag: 3.3.2.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41ab0965cec83f8830296020e27c3c62e347686d;p=thirdparty%2Fsnort3.git Pull request #4391: daq: added outstanding packets counter Merge in SNORT/snort3 from ~AKAYAMBU/snort3:outstanding_pkts to master Squashed commit of the following: commit 8cbc87c985ef43311fcecfe6574f3655294362e6 Author: Arunkumar Kayambu Date: Wed Jul 17 19:44:23 2024 -0400 daq: added outstanding packets counter --- diff --git a/src/packet_io/sfdaq_module.cc b/src/packet_io/sfdaq_module.cc index 04627e9d1..0557d50f3 100644 --- a/src/packet_io/sfdaq_module.cc +++ b/src/packet_io/sfdaq_module.cc @@ -231,6 +231,7 @@ static DAQ_Stats_t operator-(const DAQ_Stats_t& left, const DAQ_Stats_t& right) ret.packets_received = left.packets_received - right.packets_received; ret.packets_filtered = left.packets_filtered - right.packets_filtered; ret.packets_injected = left.packets_injected - right.packets_injected; + ret.packets_outstanding = left.packets_outstanding - right.packets_outstanding; for ( unsigned i = 0; i < MAX_DAQ_VERDICT; i++ ) ret.verdicts[i] = left.verdicts[i] - right.verdicts[i];