INET Framework for OMNeT++/OMNEST
inet::Ieee802Ctrl Class Reference

Represents a IEEE 802 control info. More...

#include <Ieee802Ctrl.h>

Inheritance diagram for inet::Ieee802Ctrl:
inet::Ieee802Ctrl_Base inet::IMACProtocolControlInfo

Public Member Functions

 Ieee802Ctrl ()
 
 Ieee802Ctrl (const Ieee802Ctrl &other)
 
Ieee802Ctrloperator= (const Ieee802Ctrl &other)
 
virtual Ieee802Ctrldup () const override
 
virtual MACAddress getSourceAddress () const override
 
virtual void setSourceAddress (const MACAddress &address) override
 
virtual MACAddress getDestinationAddress () const override
 
virtual void setDestinationAddress (const MACAddress &address) override
 
virtual int getInterfaceId () const override
 
virtual void setInterfaceId (int interfaceId) override
 
- Public Member Functions inherited from inet::Ieee802Ctrl_Base
virtual ~Ieee802Ctrl_Base ()
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual MACAddressgetSrc ()
 
virtual const MACAddressgetSrc () const
 
virtual void setSrc (const MACAddress &src)
 
virtual MACAddressgetDest ()
 
virtual const MACAddressgetDest () const
 
virtual void setDest (const MACAddress &dest)
 
virtual int getEtherType () const
 
virtual void setEtherType (int etherType)
 
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)
 
- Public Member Functions inherited from inet::IMACProtocolControlInfo
virtual ~IMACProtocolControlInfo ()
 

Additional Inherited Members

- Protected Member Functions inherited from inet::Ieee802Ctrl_Base
bool operator== (const Ieee802Ctrl_Base &)
 
 Ieee802Ctrl_Base ()
 
 Ieee802Ctrl_Base (const Ieee802Ctrl_Base &other)
 
Ieee802Ctrl_Baseoperator= (const Ieee802Ctrl_Base &other)
 
- Protected Attributes inherited from inet::Ieee802Ctrl_Base
MACAddress src
 
MACAddress dest
 
int etherType
 
int interfaceId
 
int switchPort
 
int userPriority
 
int ssap
 
int dsap
 
int pauseUnits
 

Detailed Description

Represents a IEEE 802 control info.

More info in the Ieee802Ctrl.msg file (and the documentation generated from it).

Constructor & Destructor Documentation

inet::Ieee802Ctrl::Ieee802Ctrl ( )
inline
inet::Ieee802Ctrl::Ieee802Ctrl ( const Ieee802Ctrl other)
inline

Member Function Documentation

virtual Ieee802Ctrl* inet::Ieee802Ctrl::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::Ieee802Ctrl_Base.

38 { return new Ieee802Ctrl(*this); }
Ieee802Ctrl()
Definition: Ieee802Ctrl.h:34
virtual MACAddress inet::Ieee802Ctrl::getDestinationAddress ( ) const
inlineoverridevirtual

Implements inet::IMACProtocolControlInfo.

Referenced by inet::IdealMac::startTransmitting().

42 { return getDest(); }
virtual MACAddress & getDest()
virtual int inet::Ieee802Ctrl::getInterfaceId ( ) const
inlineoverridevirtual

Reimplemented from inet::Ieee802Ctrl_Base.

virtual int getInterfaceId() const
virtual MACAddress inet::Ieee802Ctrl::getSourceAddress ( ) const
inlineoverridevirtual

Implements inet::IMACProtocolControlInfo.

40 { return getSrc(); }
virtual MACAddress & getSrc()
Ieee802Ctrl& inet::Ieee802Ctrl::operator= ( const Ieee802Ctrl other)
inline
36 { Ieee802Ctrl_Base::operator=(other); return *this; }
Ieee802Ctrl_Base & operator=(const Ieee802Ctrl_Base &other)
virtual void inet::Ieee802Ctrl::setDestinationAddress ( const MACAddress address)
inlineoverridevirtual

Implements inet::IMACProtocolControlInfo.

43 { setDest(address); };
virtual void setDest(const MACAddress &dest)
virtual void inet::Ieee802Ctrl::setInterfaceId ( int  interfaceId)
inlineoverridevirtual

Reimplemented from inet::Ieee802Ctrl_Base.

Referenced by inet::EtherEncap::processFrameFromMAC(), and inet::ARP::sendPacketToNIC().

int interfaceId
Definition: Ieee802Ctrl_m.h:178
virtual void setInterfaceId(int interfaceId)
virtual void inet::Ieee802Ctrl::setSourceAddress ( const MACAddress address)
inlineoverridevirtual

Implements inet::IMACProtocolControlInfo.

41 { setSrc(address); }
virtual void setSrc(const MACAddress &src)

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