#include <Ieee8022LlcProtocolPrinter.h>
|
| virtual void | print (const Ptr< const Chunk > &chunk, const Protocol *protocol, const cMessagePrinter::Options *options, Context &context) const override |
| | Prints the given chunk of protocol according to options into context. More...
|
| |
◆ print()
| void inet::Ieee8022LlcProtocolPrinter::print |
( |
const Ptr< const Chunk > & |
chunk, |
|
|
const Protocol * |
protocol, |
|
|
const cMessagePrinter::Options * |
options, |
|
|
Context & |
context |
|
) |
| const |
|
overridevirtual |
Prints the given chunk of protocol according to options into context.
Implements inet::ProtocolPrinter.
21 if (
auto header = dynamicPtrCast<const Ieee8022LlcHeader>(chunk)) {
22 context.infoColumn <<
"ssap:" << header->getSsap() <<
" dsap:" << header->getDsap() <<
" ctrl:" << header->getControl();
23 if (
auto snapHeader = dynamicPtrCast<const Ieee8022LlcSnapHeader>(chunk))
24 context.infoColumn <<
"oui:" << snapHeader->getOui() <<
" protocol:" << snapHeader->getProtocolId();
27 context.infoColumn <<
"(IEEE 802.2 Llc) " << chunk;
The documentation for this class was generated from the following files: