- latest changes for HEP support
This commit is contained in:
parent
8c0f9510e6
commit
2f69f58088
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ namespace HEP
|
|||
ByteBuffer mAuthenticateKey;
|
||||
ByteBuffer mBody;
|
||||
VendorId mVendorId;
|
||||
uint32_t mBodyOffset = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public:
|
|||
|
||||
#if defined(TARGET_WIN)
|
||||
struct /*__attribute__((packed))*/ LinuxSllHeader
|
||||
#else
|
||||
#else
|
||||
struct __attribute__((packed)) LinuxSllHeader
|
||||
#endif
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue