]> git.stg.codes - stg.git/commitdiff
RawPacket-related changes.
authorMaksym Mamontov <madf@madf.info>
Mon, 24 Feb 2020 16:27:11 +0000 (18:27 +0200)
committerMaksym Mamontov <madf@madf.info>
Mon, 24 Feb 2020 16:27:11 +0000 (18:27 +0200)
stargazer/plugins/capture/divert_freebsd/divert_cap.cpp

index 0688150d953949b3316c9c4608ca399eef204344..03ecef01c8e861cdf46f41aa33d75cf11019ad89 100644 (file)
@@ -166,7 +166,7 @@ while (dc->nonstop)
     if (buffer[12] != 0x8)
         continue;
 
-    memcpy(rp.rawPacket.pckt, &buffer[14], pcktSize);
+    memcpy(rp.rawPacket, &buffer[14], packetSize);
 
     dc->traffCnt->process(rp);
     }