From 663ce2552cd4105236a11df50ae371c14d8e73b8 Mon Sep 17 00:00:00 2001 From: Maksym Mamontov Date: Mon, 24 Feb 2020 18:38:57 +0200 Subject: [PATCH 1/1] packetSize -> STG::packetSize --- stargazer/plugins/capture/divert_freebsd/divert_cap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp b/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp index 5f9ee0eb..28984686 100644 --- a/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp +++ b/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp @@ -157,7 +157,7 @@ pthread_sigmask(SIG_BLOCK, &signalSet, NULL); DIVERT_CAP * dc = static_cast(d); dc->isRunning = true; -char buffer[packetSize + 14]; +char buffer[STG::packetSize + 14]; while (dc->nonstop) { STG::RawPacket rp; @@ -166,7 +166,7 @@ while (dc->nonstop) if (buffer[12] != 0x8) continue; - memcpy(&rp.rawPacket, &buffer[14], packetSize); + memcpy(&rp.rawPacket, &buffer[14], STG::packetSize); dc->traffCnt->process(rp); } -- 2.44.2