Fix serialization of txPacket (need to properly calculate the length before serialization)
--HG-- extra : convert_revision : e93321495d19afb86949daf2c14102ffb6bcef41
This commit is contained in:
parent
b65f365474
commit
10371be698
1 changed files with 1 additions and 0 deletions
|
@ -2352,6 +2352,7 @@ NSGigE::serialize(ostream &os)
|
|||
bool txPacketExists = txPacket;
|
||||
SERIALIZE_SCALAR(txPacketExists);
|
||||
if (txPacketExists) {
|
||||
txPacket->length = txPacketBufPtr - txPacket->data;
|
||||
txPacket->serialize("txPacket", os);
|
||||
uint32_t txPktBufPtr = (uint32_t) (txPacketBufPtr - txPacket->data);
|
||||
SERIALIZE_SCALAR(txPktBufPtr);
|
||||
|
|
Loading…
Reference in a new issue