An IPv4 loopback interface. More...
#include <ipv4-loopback-interface.h>
Public Member Functions | |
Ipv4LoopbackInterface () | |
virtual | ~Ipv4LoopbackInterface () |
virtual Ptr< NetDevice > | GetDevice (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< Node > | m_node |
An IPv4 loopback interface.
Definition at line 33 of file ipv4-loopback-interface.h.
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.
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:
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] |
Implements ns3::Ipv4Interface.
Definition at line 68 of file ipv4-loopback-interface.cc.
References m_node, NS_LOG_FUNCTION, ns3::NetDevice::PACKET_HOST, and ns3::Ipv4L3Protocol::PROT_NUMBER.
Definition at line 62 of file ipv4-loopback-interface.cc.
References m_node.
Ptr<Node> ns3::Ipv4LoopbackInterface::m_node [private] |
Definition at line 47 of file ipv4-loopback-interface.h.
Referenced by SendTo(), SetNode(), and ~Ipv4LoopbackInterface().