src/devices/wifi/wifi-mac-header.cc
changeset 2643 2a3324f4dabe
parent 2188 36d410f015bf
child 2646 c1fef7686472
--- a/src/devices/wifi/wifi-mac-header.cc	Mon Mar 17 12:12:17 2008 -0700
+++ b/src/devices/wifi/wifi-mac-header.cc	Mon Mar 17 13:12:17 2008 -0700
@@ -34,6 +34,8 @@
 
 namespace ns3 {
 
+NS_OBJECT_ENSURE_REGISTERED (WifiMacHeader);
+
 enum {
   TYPE_MGT = 0,
   TYPE_CTL  = 1,
@@ -766,6 +768,19 @@
   return "BIG_ERROR";
 }
 
+TypeId 
+WifiMacHeader::GetTypeId (void)
+{
+  static TypeId tid = TypeId ("ns3::WifiMacHeader")
+    .SetParent<Header> ()
+    ;
+  return tid;
+}
+TypeId 
+WifiMacHeader::GetInstanceTypeId (void) const
+{
+  return GetTypeId ();
+}
 uint32_t
 WifiMacHeader::GetUid (void)
 {