48 static void initHeader(quint16
id,
bool DF,
bool MF, quint16 fragmentOffset,
49 quint8 ttl, quint8 protocol,
69 static quint16 getIPv4Checksum(quint16 totalLength, quint16
id, quint8 flags,
70 quint16 fragOffset, quint8 ttl,
72 const QVector<quint8> &srcAddress,
73 const QVector<quint8> &destAddress,
74 const char *data, quint16 dataLength);
84 static void setFlag(quint8 *flags,
bool set, quint8 position);
Represents an IPv4 address.
Definition ipaddress.h:27
A static class that provides methods to handle IPv4 headers and their checksum.
Definition ipv4.h:33
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.
Definition ipv4.cpp:6
Represents a network package.
Definition package.h:28
Contains the IPAddress class definition.
IPFlag
Enumeration representing IP Flags.
Definition ipv4.h:21
Contains the Package class definition.