#include "divert_cap.h"
-#include "stg/common.h"
#include "stg/traffcounter.h"
+#include "stg/raw_ip_packet.h"
+#include "stg/common.h"
#include <algorithm>
#include <vector>
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);
}