- 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;
|
break;
|
||||||
|
|
||||||
case ChunkType::PacketPayload:
|
case ChunkType::PacketPayload:
|
||||||
|
mBodyOffset = r.count();
|
||||||
r.readBuffer(mBody, chunkLength - 6);
|
r.readBuffer(mBody, chunkLength - 6);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -142,6 +143,7 @@ bool Packet::parseV2(const ByteBuffer &packet)
|
||||||
mCaptureAgentId = r.readUShort();
|
mCaptureAgentId = r.readUShort();
|
||||||
r.readBuffer(nullptr, 2);
|
r.readBuffer(nullptr, 2);
|
||||||
mBody.clear();
|
mBody.clear();
|
||||||
|
mBodyOffset = r.count();
|
||||||
r.readBuffer(mBody, 65536 - 28);
|
r.readBuffer(mBody, 65536 - 28);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ namespace HEP
|
||||||
ByteBuffer mAuthenticateKey;
|
ByteBuffer mAuthenticateKey;
|
||||||
ByteBuffer mBody;
|
ByteBuffer mBody;
|
||||||
VendorId mVendorId;
|
VendorId mVendorId;
|
||||||
|
uint32_t mBodyOffset = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ public:
|
||||||
|
|
||||||
#if defined(TARGET_WIN)
|
#if defined(TARGET_WIN)
|
||||||
struct /*__attribute__((packed))*/ LinuxSllHeader
|
struct /*__attribute__((packed))*/ LinuxSllHeader
|
||||||
#else
|
#else
|
||||||
struct __attribute__((packed)) LinuxSllHeader
|
struct __attribute__((packed)) LinuxSllHeader
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue