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

A static class that provides methods to handle IPv4 headers and their checksum. More...

#include <ipv4.h>

Static Public Member Functions

static void initHeader (quint16 id, bool DF, bool MF, quint16 fragmentOffset, quint8 ttl, quint8 protocol, const IPAddress &sourceAddress, const IPAddress &destinationAdress, Package &data)
 Initializes an IPv4 header.
 

Detailed Description

A static class that provides methods to handle IPv4 headers and their checksum.

The IPv4 class offers functionalities to work with IPv4 headers. This includes both the initialization of headers and the computation of the IPv4 checksum.

Member Function Documentation

◆ initHeader()

void IPv4::initHeader ( quint16  id,
bool  DF,
bool  MF,
quint16  fragmentOffset,
quint8  ttl,
quint8  protocol,
const IPAddress sourceAddress,
const IPAddress destinationAdress,
Package data 
)
static

Initializes an IPv4 header.

Parameters
idIdentification for the IP packet.
DFDon't Fragment flag.
MFMore Fragments flag.
fragmentOffsetOffset for the fragment.
ttlTime to live.
protocolProtocol used.
sourceAddressIP address of the sender.
destinationAdressIP address of the receiver.
dataPackage data.
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: