Packet EtherFrameWithSNAP

File: src/inet/linklayer/ethernet/EtherFrame.msg

C++ definition

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

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

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

Extends:

Name Type Description
EtherFrameWithLLC packet

Ethernet frame with 802.3 LLC header.

Fields:

Name Type Description
byteLength
dsap int
ssap int
control int
orgCode int

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

localcode int

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

dest MACAddress
src MACAddress

Source code:

//
// 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
}