A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Tunnel Class Reference
+ Collaboration diagram for Tunnel:

Public Member Functions

 Tunnel (Ptr< Node > n3, Ptr< Node > n0, Ptr< Node > n1, Ipv4Address n3Addr, Ipv4Address n0Addr, Ipv4Address n1Addr)
 

Private Member Functions

void N0SocketRecv (Ptr< Socket > socket)
 
bool N0VirtualSend (Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
 
void N1SocketRecv (Ptr< Socket > socket)
 
bool N1VirtualSend (Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
 
void N3SocketRecv (Ptr< Socket > socket)
 
bool N3VirtualSend (Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
 

Private Attributes

Ipv4Address m_n0Address
 
Ptr< Socketm_n0Socket
 
Ptr< VirtualNetDevicem_n0Tap
 
Ipv4Address m_n1Address
 
Ptr< Socketm_n1Socket
 
Ptr< VirtualNetDevicem_n1Tap
 
Ipv4Address m_n3Address
 
Ptr< Socketm_n3Socket
 
Ptr< VirtualNetDevicem_n3Tap
 
Ptr< UniformRandomVariablem_rng
 

Detailed Description

Definition at line 66 of file virtual-net-device.cc.

Constructor & Destructor Documentation

Member Function Documentation

void Tunnel::N0SocketRecv ( Ptr< Socket socket)
inlineprivate

Definition at line 121 of file virtual-net-device.cc.

References NS_LOG_DEBUG, ns3::NetDevice::PACKET_HOST, ns3::Socket::Recv(), and ns3::Packet::RemovePacketTag().

Referenced by Tunnel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Tunnel::N0VirtualSend ( Ptr< Packet packet,
const Address source,
const Address dest,
uint16_t  protocolNumber 
)
inlineprivate

Definition at line 81 of file virtual-net-device.cc.

References NS_LOG_DEBUG.

Referenced by Tunnel().

+ Here is the caller graph for this function:

void Tunnel::N1SocketRecv ( Ptr< Socket socket)
inlineprivate

Definition at line 130 of file virtual-net-device.cc.

References NS_LOG_DEBUG, ns3::NetDevice::PACKET_HOST, ns3::Socket::Recv(), and ns3::Packet::RemovePacketTag().

Referenced by Tunnel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Tunnel::N1VirtualSend ( Ptr< Packet packet,
const Address source,
const Address dest,
uint16_t  protocolNumber 
)
inlineprivate

Definition at line 89 of file virtual-net-device.cc.

References NS_LOG_DEBUG.

Referenced by Tunnel().

+ Here is the caller graph for this function:

void Tunnel::N3SocketRecv ( Ptr< Socket socket)
inlineprivate

Definition at line 112 of file virtual-net-device.cc.

References NS_LOG_DEBUG, ns3::NetDevice::PACKET_HOST, ns3::Socket::Recv(), and ns3::Packet::RemovePacketTag().

Referenced by Tunnel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Tunnel::N3VirtualSend ( Ptr< Packet packet,
const Address source,
const Address dest,
uint16_t  protocolNumber 
)
inlineprivate

Definition at line 97 of file virtual-net-device.cc.

References NS_LOG_DEBUG.

Referenced by Tunnel().

+ Here is the caller graph for this function:

Member Data Documentation

Ipv4Address Tunnel::m_n0Address
private

Definition at line 72 of file virtual-net-device.cc.

Ptr<Socket> Tunnel::m_n0Socket
private

Definition at line 69 of file virtual-net-device.cc.

Ptr<VirtualNetDevice> Tunnel::m_n0Tap
private

Definition at line 75 of file virtual-net-device.cc.

Ipv4Address Tunnel::m_n1Address
private

Definition at line 73 of file virtual-net-device.cc.

Ptr<Socket> Tunnel::m_n1Socket
private

Definition at line 70 of file virtual-net-device.cc.

Ptr<VirtualNetDevice> Tunnel::m_n1Tap
private

Definition at line 76 of file virtual-net-device.cc.

Ipv4Address Tunnel::m_n3Address
private

Definition at line 71 of file virtual-net-device.cc.

Ptr<Socket> Tunnel::m_n3Socket
private

Definition at line 68 of file virtual-net-device.cc.

Ptr<VirtualNetDevice> Tunnel::m_n3Tap
private

Definition at line 77 of file virtual-net-device.cc.

Ptr<UniformRandomVariable> Tunnel::m_rng
private

Definition at line 74 of file virtual-net-device.cc.


The documentation for this class was generated from the following file: