Fix serialization of txPacket (need to properly calculate the length before serialization)

--HG--
extra : convert_revision : e93321495d19afb86949daf2c14102ffb6bcef41
This commit is contained in:
Ron Dreslinski 2005-01-19 16:26:19 -05:00
parent b65f365474
commit 10371be698

View file

@ -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);