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

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

#include <EtherFrame_m.h>

Inheritance diagram for inet::EtherFrame:
inet::EtherFrameWithLLC inet::EthernetIIFrame inet::EtherPauseFrame inet::EtherFrameWithSNAP

Public Member Functions

 EtherFrame (const char *name=nullptr, short kind=0)
 
 EtherFrame (const EtherFrame &other)
 
virtual ~EtherFrame ()
 
EtherFrameoperator= (const EtherFrame &other)
 
virtual EtherFramedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
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 EtherFrame &)
 

Protected Attributes

MACAddress dest
 
MACAddress src
 

Private Member Functions

void copy (const EtherFrame &other)
 

Detailed Description

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

//
// Common base class for classes representing Ethernet II and 802.3 frame types,
// containing their common header fields.
//
// This class should never be instantiated by the models, only specific
// subclasses: ~EthernetIIFrame, ~EtherFrameWithLLC and ~EtherFrameWithSNAP.
//
// Source and destination MAC address are stored in data members.
// Packet length includes Etherner header, payload, padding and FCS.
// Payload length can be accessed as getEncapsulatedPacket()->getByteLength().
//
packet EtherFrame
{
    MACAddress dest;
    MACAddress src;
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::EtherFrame::copy ( const EtherFrame other)
private
virtual const MACAddress& inet::EtherFrame::getDest ( ) const
inlinevirtual

Referenced by getDest().

273 {return const_cast<EtherFrame*>(this)->getDest();}
virtual MACAddress & getDest()
EtherFrame(const char *name=nullptr, short kind=0)
virtual const MACAddress& inet::EtherFrame::getSrc ( ) const
inlinevirtual

Referenced by getSrc().

276 {return const_cast<EtherFrame*>(this)->getSrc();}
virtual MACAddress & getSrc()
EtherFrame(const char *name=nullptr, short kind=0)
EtherFrame& inet::EtherFrame::operator= ( const EtherFrame other)
bool inet::EtherFrame::operator== ( const EtherFrame )
protected
virtual void inet::EtherFrame::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::EtherFrame::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Member Data Documentation

MACAddress inet::EtherFrame::dest
protected
MACAddress inet::EtherFrame::src
protected

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