Tunnel Server Interface. More...
#include <senf/Ext/NetEmu/P2PTunnel/TunnelInterface.hh>
Public Types | |
typedef TypedInterfaceDecorator< TunnelServerInterface, Interface::Decorator > | Decorator |
Public Types inherited from senf::emu::WiredInterface | |
typedef TypedInterfaceDecorator< WiredInterface, Interface::Decorator > | Decorator |
Public Types inherited from senf::emu::Interface | |
typedef InterfaceDecorator | Decorator |
Interface base class specific decorator type More... | |
Public Member Functions | |
TunnelServerInterface (INet6SocketAddress const &address) | |
TunnelServerInterface (INet4SocketAddress const &address) | |
unsigned | capacity (MACAddress const &client, tunnel::CapacityDirection direction) const |
unsigned | sndBuf () |
void | sndBuf (unsigned sndbuf) |
unsigned | rcvBuf () |
void | rcvBuf (unsigned rcvbuf) |
unsigned | fragmentationThreshold (MACAddress const &client) const |
void | fragmentationThreshold (MACAddress const &client, unsigned mtu) |
unsigned | maxBurst () const |
void | maxBurst (unsigned v) |
Public Member Functions inherited from senf::emu::TunnelInterfaceBase | |
virtual | ~TunnelInterfaceBase () |
INet6SocketAddress const & | address () const |
ClockService::clock_type | timeout () const |
void | timeout (ClockService::clock_type t) |
boost::shared_ptr< InterfaceIdFactoryBase > | ifaceIdFactory () |
void | ifaceIdFactory (boost::shared_ptr< InterfaceIdFactoryBase > factory) |
void | qAlgorithm (senf::ppi::QueueingAlgorithm::ptr qAlgorithm) |
senf::ppi::QueueingAlgorithm & | qAlgorithm () const |
Public Member Functions inherited from senf::emu::InterfaceAPIBase< interface::Wired, interface::Bidirectional > | |
template<class Output , class Input > | |
InterfaceAPIBase (Output &output, Input &input) | |
Public Member Functions inherited from senf::emu::Interface | |
virtual | ~Interface () |
bool | canTransmit () const |
true , if interface is transmit capable More... | |
bool | canReceive () const |
true , if interface is receive capable More... | |
void | enable () |
Enable interface (aka ifconfig up ) More... | |
void | disable () |
Disable interface (aka ifconfig down ) More... | |
bool | enabled () const |
true , if interface enabled More... | |
unsigned | index () const |
Get interface index. More... | |
void | id (MACAddress const &eui) |
Change interface MAC. More... | |
MACAddress const & | id () const |
Get interface MAC Address. More... | |
void | deviceId (InterfaceDeviceId id) |
InterfaceDeviceId | deviceId () const |
std::string const & | device () const |
boost::uint8_t | linkTypeId () const |
std::string | interfaceTypeName () const |
console::DirectoryNode & | consoleDir () const |
Access interface console directory. More... | |
console::DirectoryNode & | statisticsDir () const |
Access the interface statistics directory. More... | |
template<class Stat > | |
senf::Statistics & | registerStatistics (std::string name, Stat &stat) |
Register statistics source. More... | |
boost::optional< senf::Statistics & > | statistic (std::string const &name) |
Get registered statistic. More... | |
void | startStatistics (ClockService::clock_type inverval) |
Start statistics generation. More... | |
Public Member Functions inherited from senf::emu::Receiver | |
virtual | ~Receiver () |
bool | annotationMode () const |
Get interface annotationMode status. More... | |
void | annotationMode (bool a) |
Enable/Disable AnnotationPackets for each frame. More... | |
bool | promisc () const |
Get interface promiscuous status. More... | |
void | promisc (bool v) |
Change interface promiscuous status. More... | |
void | mcAdd (senf::MACAddress const &address) |
void | mcDrop (senf::MACAddress const &address) |
void | flushRxQueues () |
Flush Rx Queues. More... | |
Public Member Functions inherited from senf::emu::Transmitter | |
virtual | ~Transmitter () |
unsigned | mtu () const |
Get interface MTU. More... | |
void | mtu (unsigned v) |
Set interface MTU. More... | |
void | flushTxQueues () |
Flush Tx Queues. More... | |
typedef TypedInterfaceDecorator<TunnelServerInterface, Interface::Decorator> senf::emu::TunnelServerInterface::Decorator |
Definition at line 87 of file TunnelInterface.hh.
senf::emu::TunnelServerInterface::TunnelServerInterface | ( | INet6SocketAddress const & | address | ) |
Definition at line 333 of file TunnelInterface.cc.
senf::emu::TunnelServerInterface::TunnelServerInterface | ( | INet4SocketAddress const & | address | ) |
Definition at line 328 of file TunnelInterface.cc.
unsigned senf::emu::TunnelServerInterface::capacity | ( | MACAddress const & | client, |
tunnel::CapacityDirection | direction | ||
) | const |
Definition at line 392 of file TunnelInterface.cc.
unsigned senf::emu::TunnelServerInterface::fragmentationThreshold | ( | MACAddress const & | client | ) | const |
Definition at line 398 of file TunnelInterface.cc.
void senf::emu::TunnelServerInterface::fragmentationThreshold | ( | MACAddress const & | client, |
unsigned | mtu | ||
) |
Definition at line 404 of file TunnelInterface.cc.
unsigned senf::emu::TunnelServerInterface::maxBurst | ( | ) | const |
Definition at line 446 of file TunnelInterface.cc.
void senf::emu::TunnelServerInterface::maxBurst | ( | unsigned | v | ) |
Definition at line 452 of file TunnelInterface.cc.
unsigned senf::emu::TunnelServerInterface::rcvBuf | ( | ) |
Definition at line 429 of file TunnelInterface.cc.
void senf::emu::TunnelServerInterface::rcvBuf | ( | unsigned | rcvbuf | ) |
Definition at line 422 of file TunnelInterface.cc.
unsigned senf::emu::TunnelServerInterface::sndBuf | ( | ) |
Definition at line 416 of file TunnelInterface.cc.
void senf::emu::TunnelServerInterface::sndBuf | ( | unsigned | sndbuf | ) |
Definition at line 409 of file TunnelInterface.cc.