NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
NetSim::MAC Class Reference

A static class that provides methods to handle MAC headers and their Frame Check Sequence (FCS). More...

#include <mac.h>

Static Public Member Functions

static void initHeader (Package &data, const MACAddress &destMACAdress, const MACAddress &srcMACAdress, quint16 etherType)
 Initializes a MAC header.
 

Detailed Description

A static class that provides methods to handle MAC headers and their Frame Check Sequence (FCS).

The MAC class offers functionalities to work with MAC headers. This includes the initialization of headers and the computation of the Frame Check Sequence (FCS).

Member Function Documentation

◆ initHeader()

void MAC::initHeader ( Package data,
const MACAddress destMACAdress,
const MACAddress srcMACAdress,
quint16  etherType 
)
static

Initializes a MAC header.

Parameters
dataThe package data.
destMACAdressDestination MAC address.
srcMACAdressSource MAC address.
etherTypeEthernet type.
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: