NetSim 1.0.0
An educational network simulation software for students
|
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. | |
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.
|
static |
Initializes an IPv4 header.
id | Identification for the IP packet. |
DF | Don't Fragment flag. |
MF | More Fragments flag. |
fragmentOffset | Offset for the fragment. |
ttl | Time to live. |
protocol | Protocol used. |
sourceAddress | IP address of the sender. |
destinationAdress | IP address of the receiver. |
data | Package data. |