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

Class generated from inet/linklayer/ethernet/EtherFrame.msg:100 by nedtool. More...

#include <EtherFrame_m.h>

Inheritance diagram for inet::EthernetIIFrame:
inet::EtherFrame

Public Member Functions

 EthernetIIFrame (const char *name=nullptr, short kind=0)
 
 EthernetIIFrame (const EthernetIIFrame &other)
 
virtual ~EthernetIIFrame ()
 
EthernetIIFrameoperator= (const EthernetIIFrame &other)
 
virtual EthernetIIFramedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getEtherType () const
 
virtual void setEtherType (int etherType)
 
- Public Member Functions inherited from inet::EtherFrame
 EtherFrame (const char *name=nullptr, short kind=0)
 
 EtherFrame (const EtherFrame &other)
 
virtual ~EtherFrame ()
 
EtherFrameoperator= (const EtherFrame &other)
 
virtual MACAddressgetDest ()
 
virtual const MACAddressgetDest () const
 
virtual void setDest (const MACAddress &dest)
 
virtual MACAddressgetSrc ()
 
virtual const MACAddressgetSrc () const
 
virtual void setSrc (const MACAddress &src)
 

Protected Member Functions

bool operator== (const EthernetIIFrame &)
 
- Protected Member Functions inherited from inet::EtherFrame
bool operator== (const EtherFrame &)
 

Protected Attributes

int etherType
 
- Protected Attributes inherited from inet::EtherFrame
MACAddress dest
 
MACAddress src
 

Private Member Functions

void copy (const EthernetIIFrame &other)
 

Detailed Description

Class generated from inet/linklayer/ethernet/EtherFrame.msg:100 by nedtool.

//
// Ethernet II headers contain a 16-bit ~EtherType to identify
// the encapsulated protocol.
//
// Header length: src(6)+dest(6)+etherType(2) + FCS(4) = 18 bytes
//
packet EthernetIIFrame extends EtherFrame
{
    byteLength = ETHER_MAC_FRAME_BYTES;
    int etherType @enum(EtherType);
}

Constructor & Destructor Documentation

inet::EthernetIIFrame::EthernetIIFrame ( const char *  name = nullptr,
short  kind = 0 
)
inet::EthernetIIFrame::EthernetIIFrame ( const EthernetIIFrame other)
virtual inet::EthernetIIFrame::~EthernetIIFrame ( )
virtual

Member Function Documentation

void inet::EthernetIIFrame::copy ( const EthernetIIFrame other)
private
virtual EthernetIIFrame* inet::EthernetIIFrame::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::EtherFrame.

316 {return new EthernetIIFrame(*this);}
EthernetIIFrame(const char *name=nullptr, short kind=0)
virtual int inet::EthernetIIFrame::getEtherType ( ) const
virtual
EthernetIIFrame& inet::EthernetIIFrame::operator= ( const EthernetIIFrame other)
bool inet::EthernetIIFrame::operator== ( const EthernetIIFrame )
protected
virtual void inet::EthernetIIFrame::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::EtherFrame.

Referenced by inet::doParsimPacking().

virtual void inet::EthernetIIFrame::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::EtherFrame.

Referenced by inet::doParsimUnpacking().

virtual void inet::EthernetIIFrame::setEtherType ( int  etherType)
virtual

Member Data Documentation

int inet::EthernetIIFrame::etherType
protected

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