INET Framework for OMNeT++/OMNEST
|
Used in 802.11 infrastructure mode: handles management frames for an access point (AP). More...
#include <Ieee80211MgmtAP.h>
Classes | |
struct | MAC_compare |
class | NotificationInfoSta |
struct | STAInfo |
Describes a STA. More... | |
Public Types | |
enum | STAStatus { NOT_AUTHENTICATED, AUTHENTICATED, ASSOCIATED } |
State of a STA. More... | |
typedef std::map< MACAddress, STAInfo, MAC_compare > | STAList |
Public Types inherited from inet::ieee80211::Ieee80211MgmtAPBase | |
enum | EncapDecap { ENCAP_DECAP_TRUE = 1, ENCAP_DECAP_FALSE, ENCAP_DECAP_ETH } |
Public Member Functions | |
Ieee80211MgmtAP () | |
virtual | ~Ieee80211MgmtAP () |
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 () |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int) override |
virtual void | handleTimer (cMessage *msg) override |
Implements abstract Ieee80211MgmtBase method. More... | |
virtual void | handleUpperMessage (cPacket *msg) override |
Implements abstract Ieee80211MgmtBase method. More... | |
virtual void | handleCommand (int msgkind, cObject *ctrl) override |
Implements abstract Ieee80211MgmtBase method – throws an error (no commands supported) More... | |
virtual void | receiveSignal (cComponent *source, simsignal_t signalID, long value, cObject *details) override |
Called by the signal handler whenever a change occurs we're interested in. More... | |
virtual STAInfo * | lookupSenderSTA (Ieee80211ManagementFrame *frame) |
Utility function: return sender STA's entry from our STA list, or nullptr if not in there. More... | |
virtual void | sendManagementFrame (Ieee80211ManagementFrame *frame, const MACAddress &destAddr) |
Utility function: set fields in the given frame and send it out to the address. More... | |
virtual void | sendBeacon () |
Utility function: creates and sends a beacon frame. More... | |
void | sendAssocNotification (const MACAddress &addr) |
void | sendDisAssocNotification (const MACAddress &addr) |
Processing of different frame types | |
virtual void | handleDataFrame (Ieee80211DataFrame *frame) override |
virtual void | handleAuthenticationFrame (Ieee80211AuthenticationFrame *frame) override |
virtual void | handleDeauthenticationFrame (Ieee80211DeauthenticationFrame *frame) override |
virtual void | handleAssociationRequestFrame (Ieee80211AssociationRequestFrame *frame) override |
virtual void | handleAssociationResponseFrame (Ieee80211AssociationResponseFrame *frame) override |
virtual void | handleReassociationRequestFrame (Ieee80211ReassociationRequestFrame *frame) override |
virtual void | handleReassociationResponseFrame (Ieee80211ReassociationResponseFrame *frame) override |
virtual void | handleDisassociationFrame (Ieee80211DisassociationFrame *frame) override |
virtual void | handleBeaconFrame (Ieee80211BeaconFrame *frame) override |
virtual void | handleProbeRequestFrame (Ieee80211ProbeRequestFrame *frame) override |
virtual void | handleProbeResponseFrame (Ieee80211ProbeResponseFrame *frame) override |
virtual void | start () override |
lifecycle support More... | |
virtual void | stop () override |
Protected Member Functions inherited from inet::ieee80211::Ieee80211MgmtAPBase | |
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 | 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... | |
Protected Attributes | |
std::string | ssid |
int | channelNumber = -1 |
simtime_t | beaconInterval |
int | numAuthSteps = 0 |
Ieee80211SupportedRatesElement | supportedRates |
STAList | staList |
list of STAs More... | |
cMessage * | beaconTimer = nullptr |
Protected Attributes inherited from inet::ieee80211::Ieee80211MgmtAPBase | |
bool | isConnectedToHL |
EncapDecap | encapDecap |
Protected Attributes inherited from inet::ieee80211::Ieee80211MgmtBase | |
MACAddress | myAddress |
bool | isOperational |
long | numDataFramesReceived |
long | numMgmtFramesReceived |
long | numMgmtFramesDropped |
Used in 802.11 infrastructure mode: handles management frames for an access point (AP).
See corresponding NED file for a detailed description.
typedef std::map<MACAddress, STAInfo, MAC_compare> inet::ieee80211::Ieee80211MgmtAP::STAList |
|
virtual |
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements abstract Ieee80211MgmtBase method – throws an error (no commands supported)
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements abstract Ieee80211MgmtBase method.
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Implements abstract Ieee80211MgmtBase method.
Implements inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Reimplemented from inet::ieee80211::Ieee80211MgmtAPBase.
|
protectedvirtual |
Utility function: return sender STA's entry from our STA list, or nullptr if not in there.
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::ieee80211::Ieee80211MgmtAPBase.
|
overrideprotectedvirtual |
Called by the signal handler whenever a change occurs we're interested in.
|
protected |
|
protectedvirtual |
Utility function: creates and sends a beacon frame.
|
protected |
|
protectedvirtual |
Utility function: set fields in the given frame and send it out to the address.
|
overrideprotectedvirtual |
lifecycle support
Reimplemented from inet::ieee80211::Ieee80211MgmtBase.
|
overrideprotectedvirtual |
Reimplemented from inet::ieee80211::Ieee80211MgmtBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
list of STAs
|
protected |