Ethernet II headers contain a 16-bit EtherType to identify the encapsulated protocol.
Header length: src(6)+dest(6)+etherType(2) + FCS(4) = 18 bytes
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
EtherFrame | packet |
Common base class for classes representing Ethernet II and 802.3 frame types, containing their common header fields. |
Name | Type | Description |
---|---|---|
byteLength | ||
etherType | int | |
dest | MACAddress | |
src | MACAddress |
// // Ethernet II headers contain a 16-bit ~EtherType to identify // the encapsulated protocol. // // Header length: src(6)+dest(6)+etherType(2) + FCS(4) = 18 bytes // packet EthernetIIFrame extends EtherFrame { byteLength = ETHER_MAC_FRAME_BYTES; int etherType @enum(EtherType); }