--- a/src/internet-node/udp-header.cc Mon Mar 17 12:12:17 2008 -0700
+++ b/src/internet-node/udp-header.cc Mon Mar 17 13:12:17 2008 -0700
@@ -25,9 +25,24 @@
namespace ns3 {
NS_HEADER_ENSURE_REGISTERED (UdpHeader);
+NS_OBJECT_ENSURE_REGISTERED (UdpHeader);
bool UdpHeader::m_calcChecksum = false;
+TypeId
+UdpHeader::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::UdpHeader")
+ .SetParent<Header> ()
+ ;
+ return tid;
+}
+TypeId
+UdpHeader::GetInstanceTypeId (void) const
+{
+ return GetTypeId ();
+}
+
uint32_t
UdpHeader::GetUid (void)
{