define a TypeId for each Header/Trailer.
This commit is contained in:
1 parent
5779a9145c
commit
be79c178e4
29 files changed
+416
-44
No files matched your search
@@ -49,6 +49,8 @@ namespace ns3 {
|
||||
class EthernetHeader : public Header
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
static uint32_t GetUid (void);
|
||||
|
||||
/**
|
||||
@@ -105,9 +107,9 @@ public:
|
||||
|
||||
std::string GetName (void) const;
|
||||
void Print (std::ostream &os) const;
|
||||
uint32_t GetSerializedSize (void) const;
|
||||
void Serialize (Buffer::Iterator start) const;
|
||||
uint32_t Deserialize (Buffer::Iterator start);
|
||||
virtual uint32_t GetSerializedSize (void) const;
|
||||
virtual void Serialize (Buffer::Iterator start) const;
|
||||
virtual uint32_t Deserialize (Buffer::Iterator start);
|
||||
private:
|
||||
static const int PREAMBLE_SIZE = 8; /// size of the preamble_sfd header field
|
||||
static const int LENGTH_SIZE = 2; /// size of the length_type header field
|
||||
|
||||
Reference in new issue
Block a user