senf::emu::EthernetFragmenterModule Class Reference

#include <senf/Ext/NetEmu/Ethernet/EthernetFragmenter.hh>

Inheritance diagram for senf::emu::EthernetFragmenterModule:

Public Member Functions

 EthernetFragmenterModule (std::uint16_t defaultFragThresh=1500u)
 
void fragmentationThreshold (std::uint16_t _fragmentationThreshold, senf::MACAddress const &dst=senf::MACAddress::None)
 
std::uint16_t fragmentationThreshold (senf::MACAddress const &dst=senf::MACAddress::None) const
 
boost::unordered_map< senf::MACAddress, std::uint16_t > const & fragThreshMap () const
 
void reset ()
 
void bypass (bool on)
 
bool bypass () const
 
- Public Member Functions inherited from senf::ppi::module::Module
virtual ~Module ()
 
- Public Member Functions inherited from senf::emu::EthernetFragmenterBase
 EthernetFragmenterBase ()
 
virtual ~EthernetFragmenterBase ()
 
unsigned fragmentationCount ()
 

Public Attributes

senf::ppi::connector::PassiveInput< senf::EthernetPacketinput
 
senf::ppi::connector::ActiveOutput< senf::EthernetPacketoutput
 

Additional Inherited Members

- Static Public Member Functions inherited from senf::emu::EthernetFragmenterBase
static bool fragmentationRequired (senf::EthernetPacket const &pkt, unsigned threshold)
 
- Protected Member Functions inherited from senf::ppi::module::Module
 Module ()
 
Route< connector::InputConnector, connector::OutputConnector > & route (connector::InputConnector &input, connector::OutputConnector &output)
 
Route< connector::InputConnector, EventDescriptor > & route (connector::InputConnector &input, EventDescriptor &output)
 
Route< EventDescriptor, connector::OutputConnector > & route (EventDescriptor &input, connector::OutputConnector &output)
 
void noroute (connector::Connector &connector)
 
void registerEvent (EventDescriptor &descriptor, Target target)
 
ClockService::clock_type const & time () const
 
ClockService::clock_type const & now () const
 
virtual void v_init ()
 
console::DirectoryNodesysConsoleDir () const
 
void destroy ()
 
- Protected Member Functions inherited from senf::emu::EthernetFragmenterBase
void do_fragmentFrame (senf::EthernetPacket const &eth, unsigned threshold)
 

Detailed Description

Definition at line 60 of file EthernetFragmenter.hh.

Constructor & Destructor Documentation

◆ EthernetFragmenterModule()

senf::emu::EthernetFragmenterModule::EthernetFragmenterModule ( std::uint16_t  defaultFragThresh = 1500u)

Definition at line 115 of file EthernetFragmenter.cc.

Member Function Documentation

◆ bypass() [1/2]

void senf::emu::EthernetFragmenterModule::bypass ( bool  on)

Definition at line 160 of file EthernetFragmenter.cc.

◆ bypass() [2/2]

bool senf::emu::EthernetFragmenterModule::bypass ( ) const

Definition at line 166 of file EthernetFragmenter.cc.

◆ fragmentationThreshold() [1/2]

void senf::emu::EthernetFragmenterModule::fragmentationThreshold ( std::uint16_t  _fragmentationThreshold,
senf::MACAddress const &  dst = senf::MACAddress::None 
)

Definition at line 123 of file EthernetFragmenter.cc.

◆ fragmentationThreshold() [2/2]

std::uint16_t senf::emu::EthernetFragmenterModule::fragmentationThreshold ( senf::MACAddress const &  dst = senf::MACAddress::None) const

Definition at line 137 of file EthernetFragmenter.cc.

◆ fragThreshMap()

boost::unordered_map< senf::MACAddress, std::uint16_t > const & senf::emu::EthernetFragmenterModule::fragThreshMap ( ) const

Definition at line 148 of file EthernetFragmenter.cc.

◆ reset()

void senf::emu::EthernetFragmenterModule::reset ( )

Definition at line 154 of file EthernetFragmenter.cc.

Member Data Documentation

◆ input

senf::ppi::connector::PassiveInput<senf::EthernetPacket> senf::emu::EthernetFragmenterModule::input

Definition at line 64 of file EthernetFragmenter.hh.

◆ output

senf::ppi::connector::ActiveOutput<senf::EthernetPacket> senf::emu::EthernetFragmenterModule::output

Definition at line 68 of file EthernetFragmenter.hh.


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