EthernetFcs

Namespace inet

EthernetFcs

class

This class represents an Ethernet FCS as defined in the section 3.2.9 Frame Check Sequence (FCS) field of the IEEE Std 802.3-2018, IEEE Standard for Ethernet.

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +---------------------------------------------------------------+ | FCS | +---------------------------------------------------------------+

Extends

Name Type Description
FieldsChunk (unknown -- not in documented files)

Fields

Name Type Description
chunkLength
fcs uint32_t

actual value may be omitted depending on the selected fcsMode

fcsMode FcsMode

meta information, not represented directly in the frame

Packet operations (observed)

actionmodule
insertAtBackEthernetCsmaMac, EthernetEncapsulation, EthernetMac, EthernetFcsInserter, Ieee80211Portal
peekAtBackEthernetCsmaMac, EthernetMac, EthernetFcsChecker
popAtBackPcapRecorder, EthernetEncapsulation, EthernetCutthroughSource, EthernetFcsChecker, Ieee80211Portal, MultiFieldClassifier, StreamThroughReceiver
removeAtBackEthernetCsmaMac, EthernetMac

Source code

//
// This class represents an Ethernet FCS as defined in the section 3.2.9 Frame
// Check Sequence (FCS) field of the IEEE Std 802.3-2018, IEEE Standard for
// Ethernet.
//
//  0                   1                   2                   3
//  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +---------------------------------------------------------------+
// |                              FCS                              |
// +---------------------------------------------------------------+
//
class EthernetFcs extends FieldsChunk
{
    chunkLength = B(4);
    uint32_t fcs; // actual value may be omitted depending on the selected fcsMode

    FcsMode fcsMode = FCS_MODE_UNDEFINED; // meta information, not represented directly in the frame
}

File: src/inet/linklayer/ethernet/common/EthernetMacHeader.msg