From 10371be698b411bc068137bf2add0c5a74ec60eb Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Wed, 19 Jan 2005 16:26:19 -0500 Subject: [PATCH] Fix serialization of txPacket (need to properly calculate the length before serialization) --HG-- extra : convert_revision : e93321495d19afb86949daf2c14102ffb6bcef41 --- dev/ns_gige.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index aa47436f7..e799c10d2 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -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); -- 2.30.2