ns3::Ipv4LoopbackInterface Class Reference

An IPv4 loopback interface. More...

#include <ipv4-loopback-interface.h>

Inheritance diagram for ns3::Ipv4LoopbackInterface:
Inheritance graph
[legend]
Collaboration diagram for ns3::Ipv4LoopbackInterface:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Ipv4LoopbackInterface ()
virtual ~Ipv4LoopbackInterface ()
virtual Ptr< NetDeviceGetDevice (void) const
void SetNode (Ptr< Node > node)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::Ipv4Interface.

Private Member Functions

virtual void SendTo (Ptr< Packet > p, Ipv4Address dest)

Private Attributes

Ptr< Nodem_node

Detailed Description

An IPv4 loopback interface.

Definition at line 33 of file ipv4-loopback-interface.h.


Constructor & Destructor Documentation

ns3::Ipv4LoopbackInterface::Ipv4LoopbackInterface (  ) 

Definition at line 43 of file ipv4-loopback-interface.cc.

References NS_LOG_FUNCTION.

ns3::Ipv4LoopbackInterface::~Ipv4LoopbackInterface (  )  [virtual]

Definition at line 49 of file ipv4-loopback-interface.cc.

References m_node, NS_ASSERT, and NS_LOG_FUNCTION.


Member Function Documentation

Ptr< NetDevice > ns3::Ipv4LoopbackInterface::GetDevice ( void   )  const [virtual]
Returns:
the underlying NetDevice. This method can return zero if this interface has no associated NetDevice.

Implements ns3::Ipv4Interface.

Definition at line 56 of file ipv4-loopback-interface.cc.

TypeId ns3::Ipv4LoopbackInterface::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::Ipv4Interface.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/$ns3Ipv4L3Protocol/InterfaceList/[i]

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Ipv4Interface.

Definition at line 35 of file ipv4-loopback-interface.cc.

References ns3::TypeId::SetParent().

void ns3::Ipv4LoopbackInterface::SendTo ( Ptr< Packet p,
Ipv4Address  dest 
) [private, virtual]
void ns3::Ipv4LoopbackInterface::SetNode ( Ptr< Node node  ) 

Definition at line 62 of file ipv4-loopback-interface.cc.

References m_node.


Member Data Documentation

Definition at line 47 of file ipv4-loopback-interface.h.

Referenced by SendTo(), SetNode(), and ~Ipv4LoopbackInterface().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:11:42 2009 for NS-3 by  doxygen 1.6.3