INET Framework for OMNeT++/OMNEST
|
Implements the IEEE 802.11 MAC. More...
#include <Ieee80211Mac.h>
Public Member Functions | |
Ieee80211Mac () | |
virtual | ~Ieee80211Mac () |
virtual const MACAddress & | getAddress () const |
virtual void | sendUp (cMessage *message) override |
virtual void | sendFrame (Ieee80211Frame *frameToSend) |
virtual void | sendDownPendingRadioConfigMsg () |
Public Member Functions inherited from inet::OperationalBase | |
OperationalBase () | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int) override |
void | receiveSignal (cComponent *source, simsignal_t signalID, long value, cObject *details) override |
void | configureRadioMode (IRadio::RadioMode radioMode) |
virtual InterfaceEntry * | createInterfaceEntry () override |
virtual const MACAddress & | isInterfaceRegistered () |
virtual void | handleUpperCommand (cMessage *msg) override |
Handle commands (msg kind+control info) coming from upper layers. More... | |
virtual void | handleSelfMessage (cMessage *msg) override |
Handle timer self messages. More... | |
virtual void | handleUpperPacket (cPacket *msg) override |
Handle messages from upper layer. More... | |
virtual void | handleLowerPacket (cPacket *msg) override |
Handle messages from lower (physical) layer. More... | |
virtual bool | handleNodeStart (IDoneCallback *doneCallback) override |
virtual bool | handleNodeShutdown (IDoneCallback *doneCallback) override |
virtual void | handleNodeCrash () override |
virtual void | processUpperFrame (Ieee80211DataOrMgmtFrame *frame) |
virtual void | processLowerFrame (Ieee80211Frame *frame) |
Protected Member Functions inherited from inet::MACProtocolBase | |
MACProtocolBase () | |
virtual void | registerInterface () |
virtual void | sendDown (cMessage *message) |
virtual bool | isUpperMessage (cMessage *message) override |
virtual bool | isLowerMessage (cMessage *message) override |
virtual bool | isInitializeStage (int stage) override |
virtual bool | isNodeStartStage (int stage) override |
virtual bool | isNodeShutdownStage (int stage) override |
Protected Member Functions inherited from inet::LayeredProtocolBase | |
virtual void | handleMessageWhenUp (cMessage *message) override |
virtual void | handleLowerCommand (cMessage *message) |
Protected Member Functions inherited from inet::OperationalBase | |
virtual void | handleMessage (cMessage *msg) override |
virtual void | handleMessageWhenDown (cMessage *msg) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
virtual void | setOperational (bool isOperational) |
Protected Attributes | |
MACAddress | address |
bool | qosSta = false |
IRx * | rx = nullptr |
ITx * | tx = nullptr |
IRadio * | radio = nullptr |
const Ieee80211ModeSet * | modeSet = nullptr |
IRadio::TransmissionState | transmissionState = IRadio::TransmissionState::TRANSMISSION_STATE_UNDEFINED |
Dcf * | dcf = nullptr |
Pcf * | pcf = nullptr |
Hcf * | hcf = nullptr |
Mcf * | mcf = nullptr |
cMessage * | pendingRadioConfigMsg = nullptr |
Protected Attributes inherited from inet::OperationalBase | |
bool | isOperational |
simtime_t | lastChange |
Static Protected Attributes | |
static simsignal_t | stateSignal = SIMSIGNAL_NULL |
static simsignal_t | radioStateSignal = SIMSIGNAL_NULL |
Additional Inherited Members | |
Public Attributes inherited from inet::MACProtocolBase | |
InterfaceEntry * | interfaceEntry |
int | upperLayerInGateId |
Gate ids. More... | |
int | upperLayerOutGateId |
int | lowerLayerInGateId |
int | lowerLayerOutGateId |
Static Public Attributes inherited from inet::LayeredProtocolBase | |
static simsignal_t | packetSentToUpperSignal = registerSignal("packetSentToUpper") |
static simsignal_t | packetReceivedFromUpperSignal = registerSignal("packetReceivedFromUpper") |
static simsignal_t | packetFromUpperDroppedSignal = registerSignal("packetFromUpperDropped") |
static simsignal_t | packetSentToLowerSignal = registerSignal("packetSentToLower") |
static simsignal_t | packetReceivedFromLowerSignal = registerSignal("packetReceivedFromLower") |
static simsignal_t | packetFromLowerDroppedSignal = registerSignal("packetFromLowerDropped") |
Implements the IEEE 802.11 MAC.
The features, standards compliance and exact operation of the MAC depend on the plugged-in components (see IUpperMac, IRx, ITx, IContention and other interface classes).
|
virtual |
|
protected |
Referenced by receiveSignal(), and sendFrame().
|
overrideprotectedvirtual |
Implements inet::MACProtocolBase.
|
inlinevirtual |
|
overrideprotectedvirtual |
Handle messages from lower (physical) layer.
Implements inet::LayeredProtocolBase.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
overrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
overrideprotectedvirtual |
Handle timer self messages.
Reimplemented from inet::LayeredProtocolBase.
|
overrideprotectedvirtual |
Handle commands (msg kind+control info) coming from upper layers.
Reimplemented from inet::LayeredProtocolBase.
|
overrideprotectedvirtual |
Handle messages from upper layer.
Implements inet::LayeredProtocolBase.
|
overrideprotectedvirtual |
Reimplemented from inet::MACProtocolBase.
|
protectedvirtual |
Referenced by initialize().
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
protectedvirtual |
Referenced by handleLowerPacket().
|
protectedvirtual |
Referenced by handleUpperPacket().
|
overrideprotected |
|
virtual |
Referenced by inet::ieee80211::Dcf::frameSequenceFinished(), inet::ieee80211::Hcf::frameSequenceFinished(), and inet::ieee80211::Contention::handleWithFSM().
|
virtual |
Referenced by inet::ieee80211::Tx::handleMessage().
|
overridevirtual |
Reimplemented from inet::MACProtocolBase.
Referenced by inet::ieee80211::Dcf::sendUp(), and inet::ieee80211::Hcf::sendUp().
|
protected |
Referenced by createInterfaceEntry(), and initialize().
|
protected |
Referenced by handleLowerPacket(), initialize(), processLowerFrame(), and processUpperFrame().
|
protected |
Referenced by handleLowerPacket(), initialize(), processLowerFrame(), and processUpperFrame().
|
protected |
|
protected |
Referenced by initialize().
|
protected |
|
protected |
Referenced by handleUpperCommand(), sendDownPendingRadioConfigMsg(), and ~Ieee80211Mac().
|
protected |
Referenced by handleLowerPacket(), initialize(), processLowerFrame(), and processUpperFrame().
|
protected |
Referenced by configureRadioMode(), handleNodeStart(), and initialize().
|
staticprotected |
|
protected |
Referenced by handleLowerPacket(), handleUpperCommand(), initialize(), and receiveSignal().
|
staticprotected |
|
protected |
Referenced by receiveSignal().
|
protected |
Referenced by initialize(), and receiveSignal().