DIVERT_CAP * dc = static_cast<DIVERT_CAP *>(d);
dc->isRunning = true;
-char buffer[pcktSize + 14];
+char buffer[STG::packetSize + 14];
while (dc->nonstop)
{
STG::RawPacket rp;
if (buffer[12] != 0x8)
continue;
- memcpy(rp.rawPacket.pckt, &buffer[14], pcktSize);
+ memcpy(&rp.rawPacket, &buffer[14], STG::packetSize);
dc->traffCnt->process(rp);
}