Merge zizzer.eecs.umich.edu:/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/y/sraasch/serialize --HG-- extra : convert_revision : 5fab5b232026a2262e25b7eea4ede9b72d8c86ec
This commit is contained in:
commit
8835aae3e3
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue