src/internet-node/udp-header.cc
changeset 2643 2a3324f4dabe
parent 1236 cfa5e0b39281
child 2646 c1fef7686472
equal deleted inserted replaced
2642:a35a68bdcd88 2643:2a3324f4dabe
    23 #include "ipv4-checksum.h"
    23 #include "ipv4-checksum.h"
    24 
    24 
    25 namespace ns3 {
    25 namespace ns3 {
    26 
    26 
    27 NS_HEADER_ENSURE_REGISTERED (UdpHeader);
    27 NS_HEADER_ENSURE_REGISTERED (UdpHeader);
       
    28 NS_OBJECT_ENSURE_REGISTERED (UdpHeader);
    28 
    29 
    29 bool UdpHeader::m_calcChecksum = false;
    30 bool UdpHeader::m_calcChecksum = false;
       
    31 
       
    32 TypeId 
       
    33 UdpHeader::GetTypeId (void)
       
    34 {
       
    35   static TypeId tid = TypeId ("ns3::UdpHeader")
       
    36     .SetParent<Header> ()
       
    37     ;
       
    38   return tid;
       
    39 }
       
    40 TypeId 
       
    41 UdpHeader::GetInstanceTypeId (void) const
       
    42 {
       
    43   return GetTypeId ();
       
    44 }
    30 
    45 
    31 uint32_t
    46 uint32_t
    32 UdpHeader::GetUid (void)
    47 UdpHeader::GetUid (void)
    33 {
    48 {
    34   static uint32_t uid = AllocateUid<UdpHeader> ("UdpHeader.ns3");
    49   static uint32_t uid = AllocateUid<UdpHeader> ("UdpHeader.ns3");