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

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

#include <EtherFrame_m.h>

Inheritance diagram for inet::Ethernet1QTag:

Public Member Functions

 Ethernet1QTag (const char *name=nullptr, short kind=0)
 
 Ethernet1QTag (const Ethernet1QTag &other)
 
virtual ~Ethernet1QTag ()
 
Ethernet1QTagoperator= (const Ethernet1QTag &other)
 
virtual Ethernet1QTagdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual uint8_t getPcp () const
 
virtual void setPcp (uint8_t pcp)
 
virtual bool getDe () const
 
virtual void setDe (bool de)
 
virtual short getVID () const
 
virtual void setVID (short VID)
 

Protected Member Functions

bool operator== (const Ethernet1QTag &)
 

Protected Attributes

uint8_t pcp
 
bool de
 
short VID
 

Private Member Functions

void copy (const Ethernet1QTag &other)
 

Detailed Description

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

//
// Ethernet 802.1Q Tag.
//
packet Ethernet1QTag
{
    uint8_t pcp;    // Priority Code Point (PCP): a 3-bit field which refers to the IEEE 802.1p priority. It indicates the frame priority level.
                    // Values are from 0 (best effort) to 7 (highest); 1 represents the lowest priority.
    bool de;        // Drop Eligible (DE): a 1-bit field. May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion.
    short VID = 0;   // VLAN Identifier (VID): a 12-bit field specifying the VLAN to which the frame belongs.
                    // The hexadecimal values of 0x000 and 0xFFF are reserved. All other values may be used as VLAN identifiers, allowing up to 4,094 VLANs.
                    // The reserved value 0x000 indicates that the frame does not belong to any VLAN; in this case,
                    // the 802.1Q tag specifies only a priority and is referred to as a priority tag. On bridges,
                    // VLAN 1 (the default VLAN ID) is often reserved for a management VLAN; this is vendor-specific.
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::Ethernet1QTag::copy ( const Ethernet1QTag other)
private
virtual Ethernet1QTag* inet::Ethernet1QTag::dup ( ) const
inlineoverridevirtual
514 {return new Ethernet1QTag(*this);}
Ethernet1QTag(const char *name=nullptr, short kind=0)
virtual bool inet::Ethernet1QTag::getDe ( ) const
virtual
virtual uint8_t inet::Ethernet1QTag::getPcp ( ) const
virtual
virtual short inet::Ethernet1QTag::getVID ( ) const
virtual
Ethernet1QTag& inet::Ethernet1QTag::operator= ( const Ethernet1QTag other)
bool inet::Ethernet1QTag::operator== ( const Ethernet1QTag )
protected
virtual void inet::Ethernet1QTag::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::Ethernet1QTag::setDe ( bool  de)
virtual
virtual void inet::Ethernet1QTag::setPcp ( uint8_t  pcp)
virtual
virtual void inet::Ethernet1QTag::setVID ( short  VID)
virtual

Member Data Documentation

bool inet::Ethernet1QTag::de
protected
uint8_t inet::Ethernet1QTag::pcp
protected
short inet::Ethernet1QTag::VID
protected

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