#include <ApskProtocolDissector.h>
◆ dissect()
| void inet::ApskProtocolDissector::dissect |
( |
Packet * |
packet, |
|
|
const Protocol * |
protocol, |
|
|
ICallback & |
callback |
|
) |
| const |
|
overridevirtual |
Dissects the packet according to the protocol implemented by this ProtocolDissector.
Implements inet::ProtocolDissector.
20 auto header = packet->popAtFront<ApskPhyHeader>();
23 auto headerPaddingLength = header->getHeaderLengthField() - header->getChunkLength();
24 if (headerPaddingLength >
b(0)) {
25 const auto& headerPadding = packet->popAtFront(headerPaddingLength);
28 auto trailerPaddingLength = packet->getDataLength() - header->getPayloadLengthField();
29 auto trailerPadding = trailerPaddingLength >
b(0) ? packet->popAtBack(trailerPaddingLength) :
nullptr;
30 auto payloadProtocol = header->getPayloadProtocol();
31 callback.dissectPacket(packet, payloadProtocol);
32 if (trailerPaddingLength >
b(0))
The documentation for this class was generated from the following files: