ns3::ArpIpv4Interface Class Reference
[Arp]

an Ipv4 Interface which uses ARP More...

#include <arp-ipv4-interface.h>

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

List of all members.

Public Member Functions

 ArpIpv4Interface ()
virtual ~ArpIpv4Interface ()
void SetNode (Ptr< Node > node)
void SetDevice (Ptr< NetDevice > device)
virtual Ptr< NetDeviceGetDevice (void) const

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)
virtual void DoDispose (void)
void DoSetup (void)

Private Attributes

Ptr< Nodem_node
Ptr< NetDevicem_device
Ptr< ArpCachem_cache

Detailed Description

an Ipv4 Interface which uses ARP

If you need to use ARP on top of a specific NetDevice, you can use this Ipv4Interface subclass to wrap it for the Ipv4 class when calling Ipv4::AggregateObject.

Definition at line 40 of file arp-ipv4-interface.h.


Constructor & Destructor Documentation

ns3::ArpIpv4Interface::ArpIpv4Interface (  ) 

Definition at line 52 of file arp-ipv4-interface.cc.

References NS_LOG_FUNCTION.

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

Definition at line 59 of file arp-ipv4-interface.cc.

References NS_LOG_FUNCTION.


Member Function Documentation

void ns3::ArpIpv4Interface::DoDispose ( void   )  [private, virtual]

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.

Reimplemented from ns3::Ipv4Interface.

Definition at line 65 of file arp-ipv4-interface.cc.

References m_cache, m_device, and NS_LOG_FUNCTION.

void ns3::ArpIpv4Interface::DoSetup ( void   )  [private]

Definition at line 93 of file arp-ipv4-interface.cc.

References m_cache, m_device, and m_node.

Referenced by SetDevice(), and SetNode().

Ptr< NetDevice > ns3::ArpIpv4Interface::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 87 of file arp-ipv4-interface.cc.

References m_device.

Referenced by SendTo().

TypeId ns3::ArpIpv4Interface::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 39 of file arp-ipv4-interface.cc.

References m_cache, and ns3::TypeId::SetParent().

void ns3::ArpIpv4Interface::SendTo ( Ptr< Packet p,
Ipv4Address  dest 
) [private, virtual]
void ns3::ArpIpv4Interface::SetDevice ( Ptr< NetDevice device  ) 

Definition at line 80 of file arp-ipv4-interface.cc.

References DoSetup(), and m_device.

void ns3::ArpIpv4Interface::SetNode ( Ptr< Node node  ) 

Definition at line 74 of file arp-ipv4-interface.cc.

References DoSetup(), and m_node.


Member Data Documentation

Definition at line 59 of file arp-ipv4-interface.h.

Referenced by DoDispose(), DoSetup(), GetTypeId(), and SendTo().

Definition at line 58 of file arp-ipv4-interface.h.

Referenced by DoDispose(), DoSetup(), GetDevice(), SendTo(), and SetDevice().

Definition at line 57 of file arp-ipv4-interface.h.

Referenced by DoSetup(), SendTo(), and SetNode().


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