equal
deleted
inserted
replaced
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"); |