Ieee8022SnapHeader¶
Namespace: inet
class Ieee8022SnapHeader
This chunk represents an IEEE 802.2 LLC header SNAP extension as defined by the section 9.5 SNAP of the IEEE Std 802-2014, IEEE Standard for Local and Metropolitan Area Networks: Overview and Architecture.
- 0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
| OUI | PROTOCOLID | +—————+——————————-+—————+ | PROTOCOLID | +—————+
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
(no description) |
Fields¶
Name |
Type |
Description |
|---|---|---|
id |
int |
|
mutable |
bool |
|
complete |
bool |
|
correct |
bool |
|
properlyRepresented |
bool |
|
chunkLength |
||
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
||
chunkLength |
||
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 |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
//
// This chunk represents an IEEE 802.2 LLC header SNAP extension as defined by
// the section 9.5 SNAP of the IEEE Std 802-2014, IEEE Standard for Local and
// Metropolitan Area Networks: Overview and Architecture.
//
// 0 1 2 3
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-----------------------------------------------+---------------+
// | OUI | PROTOCOLID |
// +---------------+-------------------------------+---------------+
// | PROTOCOLID |
// +---------------+
//
class Ieee8022SnapHeader extends FieldsChunk
{
chunkLength = B(5);
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
}