Trailer::Register -> Trailer::AllocateUid and Header::Register -> Header::AllocateUid
This commit is contained in:
@@ -34,7 +34,7 @@ namespace ns3 {
|
||||
uint32_t
|
||||
EthernetHeader::GetUid (void)
|
||||
{
|
||||
static uint32_t uid = Header::Register<EthernetHeader> ("EthernetHeader.ns3");
|
||||
static uint32_t uid = AllocateUid<EthernetHeader> ("EthernetHeader.ns3");
|
||||
return uid;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ bool EthernetTrailer::m_calcFcs = false;
|
||||
uint32_t
|
||||
EthernetTrailer::GetUid (void)
|
||||
{
|
||||
static uint32_t uid = Trailer::Register<EthernetTrailer> ("EthernetTrailer.ns3");
|
||||
static uint32_t uid = AllocateUid<EthernetTrailer> ("EthernetTrailer.ns3");
|
||||
return uid;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace ns3 {
|
||||
uint32_t
|
||||
LlcSnapHeader::GetUid (void)
|
||||
{
|
||||
static uint32_t uid = Header::Register<LlcSnapHeader> ("LlcSnapHeader.ns3");
|
||||
static uint32_t uid = AllocateUid<LlcSnapHeader> ("LlcSnapHeader.ns3");
|
||||
return uid;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user