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

#include <PimProtocolDissector.h>

Inheritance diagram for inet::PimProtocolDissector:
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::PimProtocolDissector::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  auto header = packet->popAtFront<PimPacket>();
20  callback.startProtocolDataUnit(&Protocol::pim);
21  callback.visitChunk(header, &Protocol::pim);
22  if (packet->getDataLength() > b(0))
23  callback.dissectPacket(packet, nullptr); // TODO interpret payloads correctly
24  ASSERT(packet->getDataLength() == b(0));
25  callback.endProtocolDataUnit(&Protocol::pim);
26 }

The documentation for this class was generated from the following files:
inet::Protocol::pim
static const Protocol pim
Definition: Protocol.h:103
inet::units::values::b
value< int64_t, units::b > b
Definition: Units.h:1241