From 3264677d4c6a65a0df306468c12151176e975d08 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 10 Mar 2026 16:35:38 -0600 Subject: [PATCH] ndpi: fix logging of pcap_cnt PcapPacketCntGet does not exist in 8.0.x. --- plugins/ndpi/ndpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ndpi/ndpi.c b/plugins/ndpi/ndpi.c index 27e34ca080..814eb9164c 100644 --- a/plugins/ndpi/ndpi.c +++ b/plugins/ndpi/ndpi.c @@ -233,7 +233,7 @@ static int DetectnDPIProtocolPacketMatch( struct NdpiFlowContext *flowctx = NdpiGetFlowContext(f); if (flowctx == NULL) { - SCLogDebug("packet %" PRIu64 ": no flowctx", PcapPacketCntGet(p)); + SCLogDebug("packet %" PRIu64 ": no flowctx", p->pcap_cnt); SCReturnInt(0); } @@ -380,7 +380,7 @@ static int DetectnDPIRiskPacketMatch( } if (flowctx->ndpi_flow == NULL) { - SCLogDebug("packet %" PRIu64 ": ndpi_flow is NULL", PcapPacketCntGet(p)); + SCLogDebug("packet %" PRIu64 ": ndpi_flow is NULL", p->pcap_cnt); SCReturnInt(0); }