#include <senf/Ext/NetEmu/P2PTunnel/TunnelController.hh>
Public Types | |
typedef TunnelServerInterface | Interface |
Public Types inherited from senf::emu::detail::TunnelControllerBase | |
typedef UDPv6ClientSocketHandle | Handle |
typedef EthernetPacket | PacketType |
Public Member Functions | |
TunnelServerController (TunnelServerInterface &interface) | |
virtual | ~TunnelServerController () |
void | terminateAllClients (Handle handle) |
unsigned | capacity (MACAddress const &clientAddr, tunnel::CapacityDirection direction) const |
unsigned | fragmentationThreshold (MACAddress const &clientAddr) const |
void | fragmentationThreshold (MACAddress const &clientAddr, unsigned mtu) |
Public Member Functions inherited from senf::emu::detail::TunnelControllerBase | |
PacketType | readPacket (Handle &handle) |
bool | writePacket (Handle &handle, PacketType packet) |
ClockService::clock_type | timeout () const |
void | timeout (ClockService::clock_type t) |
ppi::QueueingAlgorithm & | qAlgorithm () const |
void | qAlgorithm (ppi::QueueingAlgorithm::ptr qAlgorithm) |
void | dumpInfo (std::ostream &os) |
unsigned | fragmentationCount () |
Protected Member Functions | |
void | v_prependTHdr (EthernetPacket ð) override |
std::pair< INet6SocketAddress, unsigned > | v_getTxInfo (Packet const ð) const override |
Protected Member Functions inherited from senf::emu::detail::TunnelControllerBase | |
TunnelControllerBase (TunnelInterfaceBase &interface) | |
virtual | ~TunnelControllerBase () |
bool | sendPkt (Handle &handle, MACAddress const &dstMAC, senf::EthernetPacket pkt) |
void | do_sendPkt (Handle &handle, senf::EthernetPacket &pkt, std::pair< senf::INet6SocketAddress, unsigned > const &txInfo) |
void | do_sendPkt (Handle &handle, senf::EthernetPacket &pkt) |
void | flushQueue (Handle &handle) |
void | sendCtrlPacket (Handle &handle, MACAddress const &dstMAC, boost::uint8_t code) |
void | sendCtrlPacket (Handle &handle, MACAddress const &dstMAC, TunnelCtrlPacket ctrlPacket) |
Additional Inherited Members | |
Static Public Attributes inherited from senf::emu::detail::TunnelControllerBase | |
static const unsigned | TunnelOverhead = 46u |
Static Protected Member Functions inherited from senf::emu::detail::TunnelControllerBase | |
static bool | isTunnelCtrlPacket (EthernetPacket const ð) |
Protected Attributes inherited from senf::emu::detail::TunnelControllerBase | |
senf::Detail::DifferenceSigned | seqNoDiff_ |
Definition at line 130 of file TunnelController.hh.
Definition at line 134 of file TunnelController.hh.
senf::emu::detail::TunnelServerController::TunnelServerController | ( | TunnelServerInterface & | interface | ) |
Definition at line 337 of file TunnelController.cc.
|
inlinevirtual |
Definition at line 137 of file TunnelController.hh.
unsigned senf::emu::detail::TunnelServerController::capacity | ( | MACAddress const & | clientAddr, |
tunnel::CapacityDirection | direction | ||
) | const |
Definition at line 532 of file TunnelController.cc.
unsigned senf::emu::detail::TunnelServerController::fragmentationThreshold | ( | MACAddress const & | clientAddr | ) | const |
Definition at line 554 of file TunnelController.cc.
void senf::emu::detail::TunnelServerController::fragmentationThreshold | ( | MACAddress const & | clientAddr, |
unsigned | mtu | ||
) |
Definition at line 539 of file TunnelController.cc.
void senf::emu::detail::TunnelServerController::terminateAllClients | ( | Handle | handle | ) |
Definition at line 518 of file TunnelController.cc.
|
overrideprotectedvirtual |
Implements senf::emu::detail::TunnelControllerBase.
Definition at line 378 of file TunnelController.cc.
|
overrideprotectedvirtual |
Implements senf::emu::detail::TunnelControllerBase.
Definition at line 362 of file TunnelController.cc.