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

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

#include <EtherFrame_m.h>

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

Public Member Functions

 EtherFrameWithSNAP (const char *name=nullptr, short kind=0)
 
 EtherFrameWithSNAP (const EtherFrameWithSNAP &other)
 
virtual ~EtherFrameWithSNAP ()
 
EtherFrameWithSNAPoperator= (const EtherFrameWithSNAP &other)
 
virtual EtherFrameWithSNAPdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getOrgCode () const
 
virtual void setOrgCode (int orgCode)
 
virtual int getLocalcode () const
 
virtual void setLocalcode (int localcode)
 
- Public Member Functions inherited from inet::EtherFrameWithLLC
 EtherFrameWithLLC (const char *name=nullptr, short kind=0)
 
 EtherFrameWithLLC (const EtherFrameWithLLC &other)
 
virtual ~EtherFrameWithLLC ()
 
EtherFrameWithLLCoperator= (const EtherFrameWithLLC &other)
 
virtual int getDsap () const
 
virtual void setDsap (int dsap)
 
virtual int getSsap () const
 
virtual void setSsap (int ssap)
 
virtual int getControl () const
 
virtual void setControl (int control)
 
- 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 EtherFrameWithSNAP &)
 
- Protected Member Functions inherited from inet::EtherFrameWithLLC
bool operator== (const EtherFrameWithLLC &)
 
- Protected Member Functions inherited from inet::EtherFrame
bool operator== (const EtherFrame &)
 

Protected Attributes

int orgCode
 
int localcode
 
- Protected Attributes inherited from inet::EtherFrameWithLLC
int dsap
 
int ssap
 
int control
 
- Protected Attributes inherited from inet::EtherFrame
MACAddress dest
 
MACAddress src
 

Private Member Functions

void copy (const EtherFrameWithSNAP &other)
 

Detailed Description

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

//
// Ethernet frame with 802.3 LLC and SNAP headers.
//
// The ssap, dsap and control LLC fields are set to fixed values in the
// frame: 0xAA, 0xAA, 0x03.
//
// Header length: src(6)+dest(6)+length(2)+ssap(1)+dsap(1)+control(1)+
// orgCode(3)+localCode(2) + FCS(4) = 26 bytes
//
packet EtherFrameWithSNAP extends EtherFrameWithLLC
{
    byteLength = ETHER_MAC_FRAME_BYTES + ETHER_LLC_HEADER_LENGTH + ETHER_SNAP_HEADER_LENGTH;
    dsap = 0xAA;
    ssap = 0xAA;
    control = 0x03;
    int orgCode;   // organizationally unique identifier (OUI); 0 for protocols that have an EtherType (ARP, IPv4, IPv6, etc.)
    int localcode; // protocol identifier (PID); stores ~EtherType if orgCode is 0
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::EtherFrameWithLLC.

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

Reimplemented from inet::EtherFrameWithLLC.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::EtherFrameWithLLC.

Referenced by inet::doParsimUnpacking().

virtual void inet::EtherFrameWithSNAP::setLocalcode ( int  localcode)
virtual
virtual void inet::EtherFrameWithSNAP::setOrgCode ( int  orgCode)
virtual

Member Data Documentation

int inet::EtherFrameWithSNAP::localcode
protected
int inet::EtherFrameWithSNAP::orgCode
protected

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