INET Framework for OMNeT++/OMNEST
inet::PcapRecorder::IHelper Class Referenceabstract

#include <PcapRecorder.h>

Inheritance diagram for inet::PcapRecorder::IHelper:
inet::AckingMacToEthernetPcapRecorderHelper

Public Member Functions

virtual ~IHelper ()
 
virtual PcapLinkType protocolToLinkType (const Protocol *protocol) const =0
 returns pcapLinkType for given protocol or returns LINKTYPE_INVALID. Protocol storable as or convertable to pcapLinkType. More...
 
virtual bool matchesLinkType (PcapLinkType pcapLinkType, const Protocol *protocol) const =0
 returns true when the protocol storable as pcapLinkType without conversion. More...
 
virtual PackettryConvertToLinkType (const Packet *packet, PcapLinkType pcapLinkType, const Protocol *protocol) const =0
 Create a new Packet or return nullptr. The new packet contains the original packet converted to pcapLinkType format. More...
 

Constructor & Destructor Documentation

◆ ~IHelper()

virtual inet::PcapRecorder::IHelper::~IHelper ( )
inlinevirtual
27 {}

Member Function Documentation

◆ matchesLinkType()

virtual bool inet::PcapRecorder::IHelper::matchesLinkType ( PcapLinkType  pcapLinkType,
const Protocol protocol 
) const
pure virtual

returns true when the protocol storable as pcapLinkType without conversion.

Implemented in inet::AckingMacToEthernetPcapRecorderHelper.

◆ protocolToLinkType()

virtual PcapLinkType inet::PcapRecorder::IHelper::protocolToLinkType ( const Protocol protocol) const
pure virtual

returns pcapLinkType for given protocol or returns LINKTYPE_INVALID. Protocol storable as or convertable to pcapLinkType.

Implemented in inet::AckingMacToEthernetPcapRecorderHelper.

◆ tryConvertToLinkType()

virtual Packet* inet::PcapRecorder::IHelper::tryConvertToLinkType ( const Packet packet,
PcapLinkType  pcapLinkType,
const Protocol protocol 
) const
pure virtual

Create a new Packet or return nullptr. The new packet contains the original packet converted to pcapLinkType format.

Implemented in inet::AckingMacToEthernetPcapRecorderHelper.


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