INET Framework for OMNeT++/OMNEST
inet::DefaultProtocolDissector Class Reference

#include <ProtocolDissector.h>

Inheritance diagram for inet::DefaultProtocolDissector:
inet::ProtocolDissector inet::physicallayer::EthernetPhyProtocolDissector inet::physicallayer::GptpProtocolDissector inet::physicallayer::Ieee8021qTagEpdProtocolDissector inet::physicallayer::Ieee8021rTagEpdProtocolDissector

Public Member Functions

virtual void dissect (Packet *packet, const Protocol *protocol, ICallback &callback) const override
 Dissects the packet according to the protocol implemented by this ProtocolDissector. More...
 

Member Function Documentation

◆ dissect()

void inet::DefaultProtocolDissector::dissect ( Packet packet,
const Protocol protocol,
ICallback callback 
) const
overridevirtual

Dissects the packet according to the protocol implemented by this ProtocolDissector.

Implements inet::ProtocolDissector.

Reimplemented in inet::physicallayer::GptpProtocolDissector, inet::physicallayer::Ieee8021qTagEpdProtocolDissector, inet::physicallayer::Ieee8021rTagEpdProtocolDissector, and inet::physicallayer::EthernetPhyProtocolDissector.

18 {
19  callback.startProtocolDataUnit(protocol);
20  callback.visitChunk(packet->peekData(), protocol);
21  packet->setFrontOffset(packet->getBackOffset());
22  callback.endProtocolDataUnit(protocol);
23 }

The documentation for this class was generated from the following files:
protocol
removed DscpReq Ipv4ControlInfo Ipv6ControlInfo up L3AddressInd DispatchProtocolReq L4PortInd Ipv4ControlInfo Ipv6ControlInfo down protocol
Definition: IUdp-gates.txt:25