A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Tunnel Class Reference

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

◆ Tunnel()

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

Member Function Documentation

◆ N0SocketRecv()

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

◆ N0VirtualSend()

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, and ns3::Socket::SendTo().

Referenced by Tunnel().

◆ N1SocketRecv()

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

◆ N1VirtualSend()

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, and ns3::Socket::SendTo().

Referenced by Tunnel().

◆ N3SocketRecv()

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

◆ N3VirtualSend()

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 ns3::UniformRandomVariable::GetValue(), NS_LOG_DEBUG, and ns3::Socket::SendTo().

Referenced by Tunnel().

Member Data Documentation

◆ m_n0Address

Ipv4Address Tunnel::m_n0Address
private

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

◆ m_n0Socket

Ptr<Socket> Tunnel::m_n0Socket
private

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

◆ m_n0Tap

Ptr<VirtualNetDevice> Tunnel::m_n0Tap
private

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

◆ m_n1Address

Ipv4Address Tunnel::m_n1Address
private

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

◆ m_n1Socket

Ptr<Socket> Tunnel::m_n1Socket
private

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

◆ m_n1Tap

Ptr<VirtualNetDevice> Tunnel::m_n1Tap
private

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

◆ m_n3Address

Ipv4Address Tunnel::m_n3Address
private

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

◆ m_n3Socket

Ptr<Socket> Tunnel::m_n3Socket
private

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

◆ m_n3Tap

Ptr<VirtualNetDevice> Tunnel::m_n3Tap
private

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

◆ m_rng

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: