Ieee80211MgmtAdhoc Class Reference

#include <Ieee80211MgmtAdhoc.h>

Inheritance diagram for Ieee80211MgmtAdhoc:

Ieee80211MgmtBase PassiveQueueBase INotifiable IPassiveQueue

List of all members.


Detailed Description

Used in 802.11 ad-hoc mode. See corresponding NED file for a detailed description. This implementation ignores many details.

Author:
Andras Varga

Protected Member Functions

virtual int numInitStages () const
virtual void initialize (int)
virtual void handleTimer (cMessage *msg)
virtual void handleUpperMessage (cPacket *msg)
virtual void handleCommand (int msgkind, cPolymorphic *ctrl)
virtual Ieee80211DataFrame * encapsulate (cPacket *msg)
virtual void receiveChangeNotification (int category, const cPolymorphic *details)
Processing of different frame types


virtual void handleDataFrame (Ieee80211DataFrame *frame)
virtual void handleAuthenticationFrame (Ieee80211AuthenticationFrame *frame)
virtual void handleDeauthenticationFrame (Ieee80211DeauthenticationFrame *frame)
virtual void handleAssociationRequestFrame (Ieee80211AssociationRequestFrame *frame)
virtual void handleAssociationResponseFrame (Ieee80211AssociationResponseFrame *frame)
virtual void handleReassociationRequestFrame (Ieee80211ReassociationRequestFrame *frame)
virtual void handleReassociationResponseFrame (Ieee80211ReassociationResponseFrame *frame)
virtual void handleDisassociationFrame (Ieee80211DisassociationFrame *frame)
virtual void handleBeaconFrame (Ieee80211BeaconFrame *frame)
virtual void handleProbeRequestFrame (Ieee80211ProbeRequestFrame *frame)
virtual void handleProbeResponseFrame (Ieee80211ProbeResponseFrame *frame)

Member Function Documentation

virtual int Ieee80211MgmtAdhoc::numInitStages (  )  const [inline, protected, virtual]

Reimplemented from Ieee80211MgmtBase.

00035 {return 2;}

void Ieee80211MgmtAdhoc::initialize ( int  stage  )  [protected, virtual]

Reimplemented from Ieee80211MgmtBase.

00027 {
00028     Ieee80211MgmtBase::initialize(stage);
00029 }

void Ieee80211MgmtAdhoc::handleTimer ( cMessage *  msg  )  [protected, virtual]

Implements abstract Ieee80211MgmtBase method

Implements Ieee80211MgmtBase.

00032 {
00033     ASSERT(false);
00034 }

void Ieee80211MgmtAdhoc::handleUpperMessage ( cPacket *  msg  )  [protected, virtual]

Implements abstract Ieee80211MgmtBase method

Implements Ieee80211MgmtBase.

00037 {
00038     Ieee80211DataFrame *frame = encapsulate(msg);
00039     sendOrEnqueue(frame);
00040 }

void Ieee80211MgmtAdhoc::handleCommand ( int  msgkind,
cPolymorphic *  ctrl 
) [protected, virtual]

Implements abstract Ieee80211MgmtBase method -- throws an error (no commands supported)

Implements Ieee80211MgmtBase.

00043 {
00044     error("handleCommand(): no commands supported");
00045 }

Ieee80211DataFrame * Ieee80211MgmtAdhoc::encapsulate ( cPacket *  msg  )  [protected, virtual]

Utility function for handleUpperMessage()

Referenced by handleUpperMessage().

00048 {
00049     Ieee80211DataFrame *frame = new Ieee80211DataFrame(msg->getName());
00050 
00051     // copy receiver address from the control info (sender address will be set in MAC)
00052     Ieee802Ctrl *ctrl = check_and_cast<Ieee802Ctrl *>(msg->removeControlInfo());
00053     frame->setReceiverAddress(ctrl->getDest());
00054     delete ctrl;
00055 
00056     frame->encapsulate(msg);
00057     return frame;
00058 }

void Ieee80211MgmtAdhoc::receiveChangeNotification ( int  category,
const cPolymorphic *  details 
) [protected, virtual]

Called by the NotificationBoard whenever a change occurs we're interested in

Implements INotifiable.

00061 {
00062     Enter_Method_Silent();
00063     printNotificationBanner(category, details);
00064 }

void Ieee80211MgmtAdhoc::handleDataFrame ( Ieee80211DataFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00067 {
00068     sendUp(decapsulate(frame));
00069 }

void Ieee80211MgmtAdhoc::handleAuthenticationFrame ( Ieee80211AuthenticationFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00072 {
00073     dropManagementFrame(frame);
00074 }

void Ieee80211MgmtAdhoc::handleDeauthenticationFrame ( Ieee80211DeauthenticationFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00077 {
00078     dropManagementFrame(frame);
00079 }

void Ieee80211MgmtAdhoc::handleAssociationRequestFrame ( Ieee80211AssociationRequestFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00082 {
00083     dropManagementFrame(frame);
00084 }

void Ieee80211MgmtAdhoc::handleAssociationResponseFrame ( Ieee80211AssociationResponseFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00087 {
00088     dropManagementFrame(frame);
00089 }

void Ieee80211MgmtAdhoc::handleReassociationRequestFrame ( Ieee80211ReassociationRequestFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00092 {
00093     dropManagementFrame(frame);
00094 }

void Ieee80211MgmtAdhoc::handleReassociationResponseFrame ( Ieee80211ReassociationResponseFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00097 {
00098     dropManagementFrame(frame);
00099 }

void Ieee80211MgmtAdhoc::handleDisassociationFrame ( Ieee80211DisassociationFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00102 {
00103     dropManagementFrame(frame);
00104 }

void Ieee80211MgmtAdhoc::handleBeaconFrame ( Ieee80211BeaconFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00107 {
00108     dropManagementFrame(frame);
00109 }

void Ieee80211MgmtAdhoc::handleProbeRequestFrame ( Ieee80211ProbeRequestFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00112 {
00113     dropManagementFrame(frame);
00114 }

void Ieee80211MgmtAdhoc::handleProbeResponseFrame ( Ieee80211ProbeResponseFrame *  frame  )  [protected, virtual]

Implements Ieee80211MgmtBase.

00117 {
00118     dropManagementFrame(frame);
00119 }


The documentation for this class was generated from the following files:

Generated on Fri Mar 20 18:51:19 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5