define a TypeId for ns3::Ipv4Interface
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 09 Apr 2008 17:28:19 -0700
changeset 2936 d108e5f0bd3e
parent 2935 c24722e09df2
child 2937 fc048c358357
define a TypeId for ns3::Ipv4Interface
src/internet-node/ipv4-interface.cc
src/internet-node/ipv4-interface.h
--- a/src/internet-node/ipv4-interface.cc	Wed Apr 09 17:27:56 2008 -0700
+++ b/src/internet-node/ipv4-interface.cc	Wed Apr 09 17:28:19 2008 -0700
@@ -28,6 +28,15 @@
 
 namespace ns3 {
 
+TypeId 
+Ipv4Interface::GetTypeId (void)
+{
+  static TypeId tid = TypeId ("ns3::Ipv4Interface")
+    .SetParent<Object> ()
+    ;
+  return tid;
+}
+
   /**
    * By default, Ipv4 interface are created in the "down" state
    * with ip address 192.168.0.1 and a matching mask. Before
--- a/src/internet-node/ipv4-interface.h	Wed Apr 09 17:27:56 2008 -0700
+++ b/src/internet-node/ipv4-interface.h	Wed Apr 09 17:28:19 2008 -0700
@@ -63,6 +63,8 @@
 class Ipv4Interface  : public Object
 {
 public:
+  static TypeId GetTypeId (void);
+
   Ipv4Interface ();
   virtual ~Ipv4Interface();