Packet EthernetIIFrame

File: src/linklayer/ethernet/EtherFrame.msg

Ethernet II headers contain a 16-bit EtherType to identify the encapsulated protocol.

Header length: src(6)+dest(6)+etherType(2) = 14 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
etherType int
src MACAddress

MessageId id; -- uncomment for tracing frames

Source code:

//
// Ethernet II headers contain a 16-bit EtherType to identify
// the encapsulated protocol.
//
// Header length: src(6)+dest(6)+etherType(2) = 14 bytes
//
packet EthernetIIFrame extends EtherFrame
{
    int etherType;
}