make sure all headers and trailers gets a constructor registered in their TypeId.
This commit is contained in:
1 parent
416d229278
commit
938b5f9c8b
11 files changed
+15
No files matched your search
@@ -105,6 +105,7 @@ EthernetHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::EthernetHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<EthernetHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -91,6 +91,7 @@ EthernetTrailer::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::EthernetTrailer")
|
||||
.SetParent<Trailer> ()
|
||||
.AddConstructor<EthernetTrailer> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ LlcSnapHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::LlcSnapHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<LlcSnapHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user