Ieee8022LlcHeader

Namespace: inet

class Ieee8022LlcHeader

This chunk represents an IEEE 802.2 LLC header as defined by the ANSI/IEEE Std 802.2, 1998, IEEE Standard for Information technology, Telecommunications and information exchange between systems, Local and metropolitan area networks.

0 1 2

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3

| DSAP | SSAP | CONTROL | +—————+—————+—————+

Inheritance diagram

Extends

Name

Type

Description

FieldsChunk

class

(no description)

Known subclasses

Name

Type

Description

Ieee8022LlcSnapHeader

class

This chunk represents an IEEE 802.2 LLC header with SNAP extension as defined by the section 9.2.4 OUI Extended EtherType of the IEEE Std 802-2014, IEEE Standard for Local and Metropolitan Area Networks: Overview and Architecture.

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

chunkLength

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

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// This chunk represents an IEEE 802.2 LLC header as defined by the ANSI/IEEE
// Std 802.2, 1998, IEEE Standard for Information technology, Telecommunications
// and information exchange between systems, Local and metropolitan area networks.
//
//  0                   1                   2
//  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
// +---------------+---------------+---------------+
// |      DSAP     |      SSAP     |    CONTROL    |
// +---------------+---------------+---------------+
//
class Ieee8022LlcHeader extends FieldsChunk
{
    chunkLength = B(3);
    short dsap = -1;    // 1 byte
    short ssap = -1;    // 1 byte
    int control = -1;    // 1 or 2 byte, control = byte[0]+256*byte[1], two bytes, when (byte[0] & 3) != 3
}

File: src/inet/linklayer/ieee8022/Ieee8022LlcHeader.msg