From: Maksym Mamontov Date: Mon, 24 Feb 2020 16:27:11 +0000 (+0200) Subject: RawPacket-related changes. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/611c8051a2ae58a1c306675c8250865e12563834 RawPacket-related changes. --- diff --git a/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp b/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp index 0688150d..03ecef01 100644 --- a/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp +++ b/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp @@ -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); }