Ethernet II headers contain a 16-bit EtherType to identify the encapsulated protocol.
Header length: src(6)+dest(6)+etherType(2) = 14 bytes
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.
EtherFrame (packet) |
Common base class for classes representing Ethernet II and 802.3 frame types, containing their common header fields. |
Name | Type | Description |
---|---|---|
dest | MACAddress | |
etherType | int | |
src | MACAddress |
MessageId id; -- uncomment for tracing frames |
// // 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; }