INET Framework for OMNeT++/OMNEST
|
Used in 802.11 infrastructure mode: abstract base class for management frame handling for access points (APs). More...
#include <Ieee80211MgmtAPBase.h>
Public Types | |
enum | EncapDecap { ENCAP_DECAP_TRUE = 1, ENCAP_DECAP_FALSE, ENCAP_DECAP_ETH } |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int) override |
virtual void | distributeReceivedDataFrame (Ieee80211DataFrame *frame) |
Utility function for APs: sends back a data frame we received from a STA to the wireless LAN, after tweaking fromDS/toDS bits and shuffling addresses as needed. More... | |
virtual Ieee80211DataFrame * | encapsulate (cPacket *msg) |
Utility function for handleUpperMessage() More... | |
virtual Ieee80211DataFrame * | convertFromEtherFrame (EtherFrame *ethframe) |
Utility function: converts EtherFrame to Ieee80211Frame. More... | |
virtual EtherFrame * | convertToEtherFrame (Ieee80211DataFrame *frame) |
Utility function: converts Ieee80211Frame to EtherFrame. More... | |
virtual void | sendToUpperLayer (Ieee80211DataFrame *frame) |
Utility function: send a frame to upperLayerOut. More... | |
Protected Member Functions inherited from inet::ieee80211::Ieee80211MgmtBase | |
virtual void | handleMessage (cMessage *msg) override |
Dispatches incoming messages to handleTimer(), handleUpperMessage() or processFrame(). More... | |
virtual void | handleTimer (cMessage *frame)=0 |
Should be redefined to deal with self-messages. More... | |
virtual void | handleUpperMessage (cPacket *msg)=0 |
Should be redefined to encapsulate and enqueue msgs from higher layers. More... | |
virtual void | handleCommand (int msgkind, cObject *ctrl)=0 |
Should be redefined to handle commands from the "agent" (if present) More... | |
virtual void | sendDown (cPacket *frame) |
Utility method for implementing handleUpperMessage(): send message to MAC. More... | |
virtual void | dropManagementFrame (Ieee80211ManagementFrame *frame) |
Utility method to dispose of an unhandled frame. More... | |
virtual void | sendUp (cMessage *msg) |
Utility method: sends the packet to the upper layer. More... | |
virtual void | processFrame (Ieee80211DataOrMgmtFrame *frame) |
Dispatch to frame processing methods according to frame type. More... | |
virtual void | handleDataFrame (Ieee80211DataFrame *frame)=0 |
virtual void | handleAuthenticationFrame (Ieee80211AuthenticationFrame *frame)=0 |
virtual void | handleDeauthenticationFrame (Ieee80211DeauthenticationFrame *frame)=0 |
virtual void | handleAssociationRequestFrame (Ieee80211AssociationRequestFrame *frame)=0 |
virtual void | handleAssociationResponseFrame (Ieee80211AssociationResponseFrame *frame)=0 |
virtual void | handleReassociationRequestFrame (Ieee80211ReassociationRequestFrame *frame)=0 |
virtual void | handleReassociationResponseFrame (Ieee80211ReassociationResponseFrame *frame)=0 |
virtual void | handleDisassociationFrame (Ieee80211DisassociationFrame *frame)=0 |
virtual void | handleBeaconFrame (Ieee80211BeaconFrame *frame)=0 |
virtual void | handleProbeRequestFrame (Ieee80211ProbeRequestFrame *frame)=0 |
virtual void | handleProbeResponseFrame (Ieee80211ProbeResponseFrame *frame)=0 |
virtual void | start () |
lifecycle support More... | |
virtual void | stop () |
Protected Attributes | |
bool | isConnectedToHL |
EncapDecap | encapDecap |
Protected Attributes inherited from inet::ieee80211::Ieee80211MgmtBase | |
MACAddress | myAddress |
bool | isOperational |
long | numDataFramesReceived |
long | numMgmtFramesReceived |
long | numMgmtFramesDropped |
Additional Inherited Members | |
Public Member Functions inherited from inet::ieee80211::Ieee80211MgmtBase | |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Used in 802.11 infrastructure mode: abstract base class for management frame handling for access points (APs).
This class extends Ieee80211MgmtBase with utility functions that are useful for implementing AP functionality.
|
protectedvirtual |
Utility function: converts EtherFrame to Ieee80211Frame.
This is needed because MACRelayUnit which we use for LAN bridging functionality deals with EtherFrames.
Referenced by encapsulate().
|
protectedvirtual |
Utility function: converts Ieee80211Frame to EtherFrame.
This is needed because MACRelayUnit which we use for LAN bridging functionality deals with EtherFrames.
Referenced by sendToUpperLayer().
|
protectedvirtual |
Utility function for APs: sends back a data frame we received from a STA to the wireless LAN, after tweaking fromDS/toDS bits and shuffling addresses as needed.
Referenced by inet::ieee80211::Ieee80211MgmtAPSimplified::handleDataFrame().
|
protectedvirtual |
Utility function for handleUpperMessage()
Referenced by inet::ieee80211::Ieee80211MgmtAPSimplified::handleUpperMessage().
|
overrideprotectedvirtual |
Reimplemented from inet::ieee80211::Ieee80211MgmtBase.
Reimplemented in inet::ieee80211::Ieee80211MgmtAP, and inet::ieee80211::Ieee80211MgmtAPSimplified.
Referenced by inet::ieee80211::Ieee80211MgmtAPSimplified::initialize(), and inet::ieee80211::Ieee80211MgmtAP::initialize().
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::ieee80211::Ieee80211MgmtBase.
Reimplemented in inet::ieee80211::Ieee80211MgmtAP, and inet::ieee80211::Ieee80211MgmtAPSimplified.
|
protectedvirtual |
Utility function: send a frame to upperLayerOut.
If convertToEtherFrameFlag is true, converts the given frame to EtherFrame, deleting the original frame, and send the converted frame. This function is needed for LAN bridging functionality: MACRelayUnit deals with EtherFrames.
Referenced by inet::ieee80211::Ieee80211MgmtAPSimplified::handleDataFrame().
|
protected |
Referenced by encapsulate(), initialize(), and sendToUpperLayer().
|
protected |
Referenced by inet::ieee80211::Ieee80211MgmtAPSimplified::handleDataFrame(), initialize(), and sendToUpperLayer().