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
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 | |
orgCode | long | |
src | MACAddress |
MessageId id; -- uncomment for tracing frames |
localcode | int |
// // 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) }