add GetUid methods to all headers and trailers
This commit is contained in:
1 parent
740ad8c1b2
commit
e672f9711f
12 files changed
+61
-8
No files matched your search
@@ -25,6 +25,12 @@
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
const char *
|
||||
ArpHeader::GetUid (void)
|
||||
{
|
||||
return "ArpHeader.ns3";
|
||||
}
|
||||
|
||||
ArpHeader::~ArpHeader ()
|
||||
{}
|
||||
|
||||
|
||||
@@ -30,8 +30,11 @@ namespace ns3 {
|
||||
/**
|
||||
* \brief The packet header for an ARP packet
|
||||
*/
|
||||
class ArpHeader : public Header {
|
||||
public:
|
||||
class ArpHeader : public Header
|
||||
{
|
||||
public:
|
||||
static const char *GetUid (void);
|
||||
|
||||
virtual ~ArpHeader ();
|
||||
|
||||
void SetRequest (MacAddress sourceHardwareAddress,
|
||||
|
||||
@@ -30,6 +30,12 @@ namespace ns3 {
|
||||
|
||||
bool Ipv4Header::m_calcChecksum = false;
|
||||
|
||||
const char *
|
||||
Ipv4Header::GetUid (void)
|
||||
{
|
||||
return "Ipv4Header.ns3";
|
||||
}
|
||||
|
||||
Ipv4Header::Ipv4Header ()
|
||||
: m_payloadSize (0),
|
||||
m_identification (0),
|
||||
|
||||
@@ -29,8 +29,10 @@ namespace ns3 {
|
||||
/**
|
||||
* \brief Packet header for IPv4
|
||||
*/
|
||||
class Ipv4Header : public Header {
|
||||
class Ipv4Header : public Header
|
||||
{
|
||||
public:
|
||||
static const char *GetUid (void);
|
||||
/**
|
||||
* \brief Construct a null IPv4 header
|
||||
*/
|
||||
|
||||
@@ -26,6 +26,12 @@ namespace ns3 {
|
||||
|
||||
bool UdpHeader::m_calcChecksum = false;
|
||||
|
||||
const char *
|
||||
UdpHeader::GetUid (void)
|
||||
{
|
||||
return "UdpHeader.ns3";
|
||||
}
|
||||
|
||||
/* The magic values below are used only for debugging.
|
||||
* They can be used to easily detect memory corruption
|
||||
* problems so you can see the patterns in memory.
|
||||
|
||||
@@ -30,8 +30,11 @@ namespace ns3 {
|
||||
/**
|
||||
* \brief Packet header for UDP packets
|
||||
*/
|
||||
class UdpHeader : public Header {
|
||||
class UdpHeader : public Header
|
||||
{
|
||||
public:
|
||||
static const char *GetUid (void);
|
||||
|
||||
/**
|
||||
* \brief Constructor
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user