- latest changes for HEP support

This commit is contained in:
Dmytro Bogovych 2018-09-24 09:45:56 +03:00
parent 8c0f9510e6
commit 2f69f58088
4 changed files with 318 additions and 315 deletions

View File

@ -91,6 +91,7 @@ bool Packet::parseV3(const ByteBuffer& packet)
break;
case ChunkType::PacketPayload:
mBodyOffset = r.count();
r.readBuffer(mBody, chunkLength - 6);
break;
@ -142,6 +143,7 @@ bool Packet::parseV2(const ByteBuffer &packet)
mCaptureAgentId = r.readUShort();
r.readBuffer(nullptr, 2);
mBody.clear();
mBodyOffset = r.count();
r.readBuffer(mBody, 65536 - 28);
return true;
}

View File

@ -77,6 +77,7 @@ namespace HEP
ByteBuffer mAuthenticateKey;
ByteBuffer mBody;
VendorId mVendorId;
uint32_t mBodyOffset = 0;
};
}

View File

@ -37,7 +37,7 @@ public:
#if defined(TARGET_WIN)
struct /*__attribute__((packed))*/ LinuxSllHeader
#else
#else
struct __attribute__((packed)) LinuxSllHeader
#endif
{