define a TypeId for ns3::Ipv4Interface
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed Apr 09 17:28:19 2008 -0700 (22 months ago)
changeset 2936d108e5f0bd3e
parent 2935 c24722e09df2
child 2937 fc048c358357
define a TypeId for ns3::Ipv4Interface
src/internet-node/ipv4-interface.cc
src/internet-node/ipv4-interface.h
     1.1 --- a/src/internet-node/ipv4-interface.cc	Wed Apr 09 17:27:56 2008 -0700
     1.2 +++ b/src/internet-node/ipv4-interface.cc	Wed Apr 09 17:28:19 2008 -0700
     1.3 @@ -28,6 +28,15 @@
     1.4  
     1.5  namespace ns3 {
     1.6  
     1.7 +TypeId 
     1.8 +Ipv4Interface::GetTypeId (void)
     1.9 +{
    1.10 +  static TypeId tid = TypeId ("ns3::Ipv4Interface")
    1.11 +    .SetParent<Object> ()
    1.12 +    ;
    1.13 +  return tid;
    1.14 +}
    1.15 +
    1.16    /**
    1.17     * By default, Ipv4 interface are created in the "down" state
    1.18     * with ip address 192.168.0.1 and a matching mask. Before
     2.1 --- a/src/internet-node/ipv4-interface.h	Wed Apr 09 17:27:56 2008 -0700
     2.2 +++ b/src/internet-node/ipv4-interface.h	Wed Apr 09 17:28:19 2008 -0700
     2.3 @@ -63,6 +63,8 @@
     2.4  class Ipv4Interface  : public Object
     2.5  {
     2.6  public:
     2.7 +  static TypeId GetTypeId (void);
     2.8 +
     2.9    Ipv4Interface ();
    2.10    virtual ~Ipv4Interface();
    2.11