]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/capture/divert_freebsd/divert_cap.cpp
packetSize -> STG::packetSize
[stg.git] / stargazer / plugins / capture / divert_freebsd / divert_cap.cpp
index 5f9ee0ebab417957fb81eb1b4d64b089a0633c63..289846869a4bb2d4b8e2116e548ff08a065120f7 100644 (file)
@@ -157,7 +157,7 @@ pthread_sigmask(SIG_BLOCK, &signalSet, NULL);
 DIVERT_CAP * dc = static_cast<DIVERT_CAP *>(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);
     }