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

#include <ManetProtocolDissector.h>

Inheritance diagram for inet::ManetProtocolDissector:
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::ManetProtocolDissector::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  callback.startProtocolDataUnit(&Protocol::manet);
20 // callback.visitChunk(header, &Protocol::manet);
21 // auto payloadProtocol = ProtocolGroup::ethertype.findProtocol(header->getNetworkProtocol());
22 // callback.dissectPacket(packet, payloadProtocol);
23 // ASSERT(packet->getDataLength() == B(0));
24 
25  callback.dissectPacket(packet, nullptr); // KLUDGE choose from aodv|dsdv|dymo|gpsr
26 
27  callback.endProtocolDataUnit(&Protocol::manet);
28 }

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