#include <Ieee80211LlcEpd.h>
◆ decapsulate()
| void inet::ieee80211::Ieee80211LlcEpd::decapsulate |
( |
Packet * |
frame | ) |
|
|
protectedvirtual |
64 const auto& epdHeader = frame->popAtFront<Ieee802EpdHeader>();
Referenced by handleMessage().
◆ encapsulate()
| void inet::ieee80211::Ieee80211LlcEpd::encapsulate |
( |
Packet * |
frame | ) |
|
|
protectedvirtual |
54 throw cRuntimeError(
"EtherType not found for protocol %s",
protocol ?
protocol->getName() :
"(nullptr)");
55 const auto& llcHeader = makeShared<Ieee802EpdHeader>();
56 llcHeader->setEtherType(ethType);
57 frame->insertAtFront(llcHeader);
Referenced by handleMessage().
◆ getProtocol()
| const Protocol * inet::ieee80211::Ieee80211LlcEpd::getProtocol |
( |
| ) |
const |
|
overridevirtual |
◆ handleMessage()
| void inet::ieee80211::Ieee80211LlcEpd::handleMessage |
( |
cMessage * |
message | ) |
|
|
overrideprotectedvirtual |
27 if (message->arrivedOn(
"upperLayerIn")) {
28 auto packet = check_and_cast<Packet *>(message);
30 send(packet,
"lowerLayerOut");
32 else if (message->arrivedOn(
"lowerLayerIn")) {
33 auto packet = check_and_cast<Packet *>(message);
36 send(packet,
"upperLayerOut");
38 EV_WARN <<
"Unknown protocol, dropping packet\n";
39 PacketDropDetails details;
46 throw cRuntimeError(
"Unknown message");
◆ initialize()
| void inet::ieee80211::Ieee80211LlcEpd::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
◆ numInitStages()
| virtual int inet::ieee80211::Ieee80211LlcEpd::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following files: