Ieee8022LlcSnapHeader

Ieee8022LlcSnapHeader

class

ieee 802.2 LLC header with SNAP extension TODO rename to LlcWithSnap, or let separated Llc and Snap headers

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
Ieee8022LlcHeader class

ieee 802.2 LLC header

Fields

Name Type Description
chunkLength b
dsap short

1 byte

ssap short

1 byte

control int

1 or 2 byte, control = byte[0]+256*byte[1], two bytes, when (byte[0] & 3) != 3

oui int

organizationally unique identifier (OUI); 0 for protocols that have an EtherType (ARP, IPv4, IPv6, etc.), 3 bytes

protocolId int

protocol identifier (PID); stores EtherType if orgCode is 0, 2 bytes

mutable bool
complete bool
correct bool
properlyRepresented bool
rawBin string[]
rawHex string[]
tags RegionTagSet::cObjectRegionTag[]

Source code

// ieee 802.2 LLC header with SNAP extension
//TODO rename to LlcWithSnap, or let separated Llc and Snap headers
class Ieee8022LlcSnapHeader extends Ieee8022LlcHeader
{
    chunkLength = B(8);
    dsap = 0xAA;
    ssap = 0xAA;
    control = 0x03;
    int oui = -1;   // organizationally unique identifier (OUI); 0 for protocols that have an EtherType (ARP, IPv4, IPv6, etc.), 3 bytes
    int protocolId = -1; // protocol identifier (PID); stores ~EtherType if orgCode is 0, 2 bytes
}
File: src/inet/linklayer/ieee8022/Ieee8022LlcHeader.msg