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

#include <ShortcutPhyProtocolDissector.h>

Inheritance diagram for inet::ShortcutPhyProtocolDissector:
inet::ProtocolDissector

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::ShortcutPhyProtocolDissector::dissect ( Packet packet,
const Protocol protocol,
ICallback callback 
) const
overridevirtual

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

Implements inet::ProtocolDissector.

18 {
19  const auto& header = packet->popAtFront<ShortcutPhyHeader>();
20  callback.startProtocolDataUnit(&Protocol::shortcutPhy);
21  callback.visitChunk(header, &Protocol::shortcutPhy);
22  callback.dissectPacket(packet, header->getPayloadProtocol());
23  callback.endProtocolDataUnit(&Protocol::shortcutPhy);
24 }

The documentation for this class was generated from the following files:
inet::Protocol::shortcutPhy
static const Protocol shortcutPhy
Definition: Protocol.h:131