diff options
author | Steve Raasch <sraasch@umich.edu> | 2003-10-29 20:25:03 -0500 |
---|---|---|
committer | Steve Raasch <sraasch@umich.edu> | 2003-10-29 20:25:03 -0500 |
commit | 8835aae3e3a4a4830b8cb03a7eefaa429ff63173 (patch) | |
tree | dfde4395fd23d535441e204e407a5023b72bb363 /dev/etherpkt.hh | |
parent | 976429121c7fddbf8de18b2a347a53546fe14264 (diff) | |
parent | dcc0197caa30844056865080d9d412d43bf77116 (diff) | |
download | gem5-8835aae3e3a4a4830b8cb03a7eefaa429ff63173.tar.xz |
Merge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/y/sraasch/serialize
--HG--
extra : convert_revision : 5fab5b232026a2262e25b7eea4ede9b72d8c86ec
Diffstat (limited to 'dev/etherpkt.hh')
-rw-r--r-- | dev/etherpkt.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dev/etherpkt.hh b/dev/etherpkt.hh index 678b83b33..030f51317 100644 --- a/dev/etherpkt.hh +++ b/dev/etherpkt.hh @@ -39,6 +39,8 @@ #include "base/refcnt.hh" +class IniFile; + /* * Reference counted class containing ethernet packet data */ @@ -58,6 +60,9 @@ class EtherPacket : public RefCounted bool IsUnicast() { return data[0] == 0x00; } bool IsMulticast() { return data[0] == 0x01; } bool IsBroadcast() { return data[0] == 0xff; } + + virtual void serialize(std::ostream &os); + virtual void unserialize(const IniFile *db, const std::string §ion); }; typedef RefCountingPtr<EtherPacket> PacketPtr; |