INET Framework for OMNeT++/OMNEST
|
Class generated from inet/linklayer/common/Ieee802Ctrl.msg:77
by nedtool.
More...
#include <Ieee802Ctrl_m.h>
Public Member Functions | |
virtual | ~Ieee802Ctrl_Base () |
virtual Ieee802Ctrl_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual MACAddress & | getSrc () |
virtual const MACAddress & | getSrc () const |
virtual void | setSrc (const MACAddress &src) |
virtual MACAddress & | getDest () |
virtual const MACAddress & | getDest () const |
virtual void | setDest (const MACAddress &dest) |
virtual int | getEtherType () const |
virtual void | setEtherType (int etherType) |
virtual int | getInterfaceId () const |
virtual void | setInterfaceId (int interfaceId) |
virtual int | getSwitchPort () const |
virtual void | setSwitchPort (int switchPort) |
virtual int | getUserPriority () const |
virtual void | setUserPriority (int userPriority) |
virtual int | getSsap () const |
virtual void | setSsap (int ssap) |
virtual int | getDsap () const |
virtual void | setDsap (int dsap) |
virtual int | getPauseUnits () const |
virtual void | setPauseUnits (int pauseUnits) |
Protected Member Functions | |
bool | operator== (const Ieee802Ctrl_Base &) |
Ieee802Ctrl_Base () | |
Ieee802Ctrl_Base (const Ieee802Ctrl_Base &other) | |
Ieee802Ctrl_Base & | operator= (const Ieee802Ctrl_Base &other) |
Protected Attributes | |
MACAddress | src |
MACAddress | dest |
int | etherType |
int | interfaceId |
int | switchPort |
int | userPriority |
int | ssap |
int | dsap |
int | pauseUnits |
Private Member Functions | |
void | copy (const Ieee802Ctrl_Base &other) |
Class generated from inet/linklayer/common/Ieee802Ctrl.msg:77
by nedtool.
// // Control structure for communication between LLC and higher layers // class Ieee802Ctrl { @customize(true);
MACAddress src; // src MAC address (can be left empty when sending) MACAddress dest; // dest MAC address int etherType @enum(EtherType); // used with ~EthernetIIFrame int interfaceId; // incoming or outgoing interface (not needed everywhere) int switchPort = -1; // swich port index (only in swiches) int userPriority = -1; // 802.1d User Priority (UP), 0..7. Note: In 802.11, UP corresponds to 0..7 TID values, and there's a standard static mapping from TID to AC (Access Category) int ssap; // used with IEEE 802 LLC (see ~EtherFrameWithLLC) int dsap; // used with IEEE 802 LLC (see ~EtherFrameWithLLC) int pauseUnits; // used with IEEE802CTRL_SENDPAUSE }
Ieee802Ctrl_Base is only useful if it gets subclassed, and Ieee802Ctrl is derived from it. The minimum code to be written for Ieee802Ctrl is the following:
class INET_API Ieee802Ctrl : public Ieee802Ctrl_Base { private: void copy(const Ieee802Ctrl& other) { ... }
public: Ieee802Ctrl() : Ieee802Ctrl_Base() {} Ieee802Ctrl(const Ieee802Ctrl& other) : Ieee802Ctrl_Base(other) {copy(other);} Ieee802Ctrl& operator=(const Ieee802Ctrl& other) {if (this==&other) return *this; Ieee802Ctrl_Base::operator=(other); copy(other); return *this;} virtual Ieee802Ctrl *dup() const override {return new Ieee802Ctrl(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from Ieee802Ctrl_Base };
The following should go into a .cc (.cpp) file:
Register_Class(Ieee802Ctrl)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::Ieee802Ctrl.
|
virtual |
Referenced by inet::Ieee8021dRelay::dispatchBPDU(), inet::ieee80211::Ieee80211MgmtSTASimplified::encapsulate(), inet::ieee80211::Ieee80211MgmtAPBase::encapsulate(), inet::IdealMac::encapsulate(), inet::ieee80211::Ieee80211MgmtSTA::encapsulate(), inet::CsmaCaMac::encapsulate(), inet::EtherEncap::handleSendPause(), inet::EtherLLC::handleSendPause(), and inet::EtherLLC::processPacketFromHigherLayer().
|
inlinevirtual |
Referenced by getDest().
|
virtual |
|
virtual |
|
virtual |
Reimplemented in inet::Ieee802Ctrl.
Referenced by inet::Ieee802Ctrl::getInterfaceId().
|
virtual |
Referenced by inet::EtherEncap::handleSendPause(), and inet::EtherLLC::handleSendPause().
|
virtual |
|
inlinevirtual |
Referenced by getSrc().
|
virtual |
Referenced by inet::EtherAppSrv::handleMessage(), and inet::EtherLLC::processPacketFromHigherLayer().
|
virtual |
|
virtual |
|
protected |
Referenced by inet::Ieee802Ctrl::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
Referenced by inet::ieee80211::Ieee80211MgmtAdhoc::decapsulate(), inet::ieee80211::Ieee80211MgmtSTASimplified::decapsulate(), inet::IdealMac::decapsulate(), inet::ieee80211::Ieee80211MgmtSTA::decapsulate(), inet::CsmaCaMac::decapsulate(), inet::STP::generateBPDU(), inet::STP::generateTCN(), inet::EtherEncap::processFrameFromMAC(), inet::EtherLLC::processFrameFromMAC(), inet::RSTP::sendBPDU(), inet::EtherTrafGen::sendBurstPackets(), inet::GenericNetworkProtocol::sendDatagramToOutput(), inet::IPv6::sendDatagramToOutput(), inet::EtherAppSrv::sendPacket(), inet::EthernetApplication::sendPacket(), inet::EtherAppCli::sendPacket(), inet::IPv4::sendPacketToIeee802NIC(), inet::ARP::sendPacketToNIC(), inet::RSTP::sendTCNtoRoot(), and inet::ieee80211::Ieee80211MgmtAPBase::sendToUpperLayer().
|
virtual |
|
virtual |
Referenced by inet::ieee80211::Ieee80211MgmtAdhoc::decapsulate(), inet::ieee80211::Ieee80211MgmtSTASimplified::decapsulate(), inet::ieee80211::Ieee80211MgmtSTA::decapsulate(), inet::EtherEncap::processFrameFromMAC(), inet::EtherTrafGen::sendBurstPackets(), inet::GenericNetworkProtocol::sendDatagramToOutput(), inet::IPv6::sendDatagramToOutput(), inet::IPv4::sendPacketToIeee802NIC(), inet::ARP::sendPacketToNIC(), and inet::ieee80211::Ieee80211MgmtAPBase::sendToUpperLayer().
|
virtual |
Reimplemented in inet::Ieee802Ctrl.
Referenced by inet::Ieee802Ctrl::setInterfaceId().
|
virtual |
|
virtual |
Referenced by inet::ieee80211::Ieee80211MgmtAdhoc::decapsulate(), inet::ieee80211::Ieee80211MgmtSTASimplified::decapsulate(), inet::IdealMac::decapsulate(), inet::ieee80211::Ieee80211MgmtSTA::decapsulate(), inet::CsmaCaMac::decapsulate(), inet::EtherEncap::processFrameFromMAC(), inet::EtherLLC::processFrameFromMAC(), inet::RSTP::sendBPDU(), inet::RSTP::sendTCNtoRoot(), and inet::ieee80211::Ieee80211MgmtAPBase::sendToUpperLayer().
|
virtual |
|
virtual |
|
virtual |
Referenced by inet::ieee80211::Ieee80211MgmtAdhoc::decapsulate(), inet::ieee80211::Ieee80211MgmtSTASimplified::decapsulate(), inet::ieee80211::Ieee80211MgmtSTA::decapsulate(), inet::CsmaCaMac::decapsulate(), inet::RandomQoSClassifier::handleMessage(), inet::ExampleQoSClassifier::handleMessage(), and inet::ieee80211::Ieee80211MgmtAPBase::sendToUpperLayer().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |