EtherFrame

Namespace inet

EtherFrame

packet

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

This class should never be instantiated by the models, only specific subclasses: EthernetIIFrame, EtherFrameWithLLC and EtherFrameWithSNAP.

Source and destination MAC address are stored in data members. Packet length includes Etherner header, payload, padding and FCS. Payload length can be accessed as getEncapsulatedPacket()->getByteLength().

Fields

Name Type Description
dest MACAddress
src MACAddress

Source code

//
// Common base class for classes representing Ethernet II and 802.3 frame types,
// containing their common header fields.
//
// This class should never be instantiated by the models, only specific
// subclasses: ~EthernetIIFrame, ~EtherFrameWithLLC and ~EtherFrameWithSNAP.
//
// Source and destination MAC address are stored in data members.
// Packet length includes Etherner header, payload, padding and FCS.
// Payload length can be accessed as getEncapsulatedPacket()->getByteLength().
//
packet EtherFrame
{
    MACAddress dest;
    MACAddress src;
}


File: src/inet/linklayer/ethernet/EtherFrame.msg