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< Socket > | m_n0Socket |
Ptr< VirtualNetDevice > | m_n0Tap |
Ipv4Address | m_n1Address |
Ptr< Socket > | m_n1Socket |
Ptr< VirtualNetDevice > | m_n1Tap |
Ipv4Address | m_n3Address |
Ptr< Socket > | m_n3Socket |
Ptr< VirtualNetDevice > | m_n3Tap |
Ptr< UniformRandomVariable > | m_rng |
Definition at line 66 of file virtual-net-device.cc.
|
inline |
Definition at line 135 of file virtual-net-device.cc.
References ns3::Ipv4::AddAddress(), ns3::Node::AddDevice(), ns3::Ipv4::AddInterface(), ns3::Socket::Bind(), ns3::Socket::CreateSocket(), ns3::Ipv4Address::GetAny(), ns3::Object::GetObject(), ns3::TypeId::LookupByName(), ns3::MakeCallback(), N0SocketRecv(), N0VirtualSend(), N1SocketRecv(), N1VirtualSend(), N3SocketRecv(), N3VirtualSend(), ns3::VirtualNetDevice::SetAddress(), ns3::Socket::SetRecvCallback(), ns3::VirtualNetDevice::SetSendCallback(), and ns3::Ipv4::SetUp().
Definition at line 119 of file virtual-net-device.cc.
References ns3::VirtualNetDevice::GetAddress(), NS_LOG_DEBUG, ns3::NetDevice::PACKET_HOST, ns3::VirtualNetDevice::Receive(), and ns3::Socket::Recv().
Referenced by Tunnel().
|
inlineprivate |
Definition at line 81 of file virtual-net-device.cc.
References NS_LOG_DEBUG, and ns3::Socket::SendTo().
Referenced by Tunnel().
Definition at line 126 of file virtual-net-device.cc.
References ns3::VirtualNetDevice::GetAddress(), NS_LOG_DEBUG, ns3::NetDevice::PACKET_HOST, ns3::VirtualNetDevice::Receive(), and ns3::Socket::Recv().
Referenced by Tunnel().
|
inlineprivate |
Definition at line 89 of file virtual-net-device.cc.
References NS_LOG_DEBUG, and ns3::Socket::SendTo().
Referenced by Tunnel().
Definition at line 112 of file virtual-net-device.cc.
References ns3::VirtualNetDevice::GetAddress(), NS_LOG_DEBUG, ns3::NetDevice::PACKET_HOST, ns3::VirtualNetDevice::Receive(), and ns3::Socket::Recv().
Referenced by Tunnel().
|
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().
|
private |
Definition at line 72 of file virtual-net-device.cc.
Definition at line 69 of file virtual-net-device.cc.
|
private |
Definition at line 75 of file virtual-net-device.cc.
|
private |
Definition at line 73 of file virtual-net-device.cc.
Definition at line 70 of file virtual-net-device.cc.
|
private |
Definition at line 76 of file virtual-net-device.cc.
|
private |
Definition at line 71 of file virtual-net-device.cc.
Definition at line 68 of file virtual-net-device.cc.
|
private |
Definition at line 77 of file virtual-net-device.cc.
|
private |
Definition at line 74 of file virtual-net-device.cc.