Packet EtherFrameWithSNAP

File: src/linklayer/ethernet/EtherFrame.msg

Ethernet frame with 802.3 LLC and SNAP headers.

The fields ssap, dsap and control are not included in the class because they are always set to fixed values: 0xAA, 0xAA, 0x03.

Header length: src(6)+dest(6)+length(2)+ssap(1)+dsap(1)+control(1)+ orgCode(3)+localCode(2) = 22 bytes

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Extends:

EtherFrame (packet)

Common base class for classes representing Ethernet II and 802.3 frame types, containing their common header fields.

Fields:

Name Type Description
dest MACAddress
orgCode long

SNAP organization code, 0 for IP and ARP

src MACAddress

MessageId id; -- uncomment for tracing frames

localcode int

SNAP local code (stores EtherType for IP and ARP)

Source code:

//
// Ethernet frame with 802.3 LLC and SNAP headers.
//
// The fields ssap, dsap and control are not included in the class because
// they are always set to fixed values: 0xAA, 0xAA, 0x03.
//
// Header length: src(6)+dest(6)+length(2)+ssap(1)+dsap(1)+control(1)+
// orgCode(3)+localCode(2) = 22 bytes
//
packet EtherFrameWithSNAP extends EtherFrame
{
    long orgCode;  // SNAP organization code, 0 for IP and ARP
    int localcode; // SNAP local code (stores EtherType for IP and ARP)
}