summaryrefslogtreecommitdiff
path: root/dev/etherpkt.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-05-02 18:55:39 -0400
committerNathan Binkert <binkertn@umich.edu>2005-05-02 18:55:39 -0400
commit1760925f73345cf6088f2b636d9daa62b385928a (patch)
tree36e5f9811face098e3c800a78c57f54cb2638a09 /dev/etherpkt.cc
parent306a4f2014cd850d43f5a684214947f18501d56a (diff)
downloadgem5-1760925f73345cf6088f2b636d9daa62b385928a.tar.xz
Improve checkpointing of ethernet packets a bit.
dev/etherpkt.cc: Don't try to suck in the packet if the length is zero. --HG-- extra : convert_revision : 7212f3b677777fbce301f0613b9f513bb9fe057e
Diffstat (limited to 'dev/etherpkt.cc')
-rw-r--r--dev/etherpkt.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/etherpkt.cc b/dev/etherpkt.cc
index bf60bc150..475274326 100644
--- a/dev/etherpkt.cc
+++ b/dev/etherpkt.cc
@@ -46,5 +46,6 @@ PacketData::unserialize(const string &base, Checkpoint *cp,
const string &section)
{
paramIn(cp, section, base + ".length", length);
- arrayParamIn(cp, section, base + ".data", data, length);
+ if (length)
+ arrayParamIn(cp, section, base + ".data", data, length);
}