make sure all headers and trailers gets a constructor registered in their TypeId.
This commit is contained in:
@@ -66,6 +66,7 @@ MgtProbeRequestHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::MgtProbeRequestHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<MgtProbeRequestHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
@@ -144,6 +145,7 @@ MgtProbeResponseHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::MgtProbeResponseHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<MgtProbeResponseHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
@@ -253,6 +255,7 @@ MgtAssocRequestHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::MgtAssocRequestHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<MgtAssocRequestHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
@@ -334,6 +337,7 @@ MgtAssocResponseHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::MgtAssocResponseHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<MgtAssocResponseHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -773,6 +773,7 @@ WifiMacHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::WifiMacHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<WifiMacHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ WifiMacTrailer::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::WifiMacTrailer")
|
||||
.SetParent<Trailer> ()
|
||||
.AddConstructor<WifiMacTrailer> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,7 @@ ArpHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::ArpHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<ArpHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -185,6 +185,7 @@ Ipv4Header::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::Ipv4Header")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<Ipv4Header> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -139,6 +139,7 @@ TcpHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::TcpHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<TcpHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -98,6 +98,7 @@ UdpHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::UdpHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<UdpHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -107,6 +107,7 @@ PacketHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::olsr::PacketHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<PacketHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
@@ -162,6 +163,7 @@ MessageHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::olsr::MessageHeader")
|
||||
.SetParent<Header> ()
|
||||
.AddConstructor<MessageHeader> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user