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
This commit is contained in:
Nathan Binkert
2005-05-02 18:55:39 -04:00
parent 306a4f2014
commit 1760925f73

View File

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