diff options
Diffstat (limited to 'dev/etherpkt.cc')
-rw-r--r-- | dev/etherpkt.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dev/etherpkt.cc b/dev/etherpkt.cc index 9eda89e9d..273b8ee64 100644 --- a/dev/etherpkt.cc +++ b/dev/etherpkt.cc @@ -34,17 +34,16 @@ using namespace std; void -EtherPacket::serialize(ostream &os) +PacketData::serialize(ostream &os) { SERIALIZE_SCALAR(length); SERIALIZE_ARRAY(data, length); } void -EtherPacket::unserialize(Checkpoint *cp, const string §ion) +PacketData::unserialize(Checkpoint *cp, const string §ion) { UNSERIALIZE_SCALAR(length); data = new uint8_t[length]; UNSERIALIZE_ARRAY(data, length); } - |