From: Maksym Mamontov Date: Mon, 24 Feb 2020 16:38:57 +0000 (+0200) Subject: packetSize -> STG::packetSize X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/663ce2552cd4105236a11df50ae371c14d8e73b8?ds=sidebyside packetSize -> STG::packetSize --- 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); }