summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev/ns_gige.cc1
1 files changed, 1 insertions, 0 deletions
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);