Represents an IPv4 address.
Definition ipaddress.h:27
Represents a Media Access Control (MAC) address.
Definition macaddress.h:26
Represents a virtual network card with network and physical address capabilities.
Definition networkcard.h:27
void addIPHeader(Package &data, quint8 protocol, const IPAddress &destinationAddress)
Adds an IP header to the provided data package.
Definition networkcard.cpp:11
NetworkCard()=default
Default constructor.
void addMACHeader(Package &data, MACAddress destinationMACAddress, quint16 etherType)
Adds a MAC header to the provided data package.
Definition networkcard.cpp:19
MACAddress physicalAddress() const
Returns the physical (MAC) address of the network card.
Definition networkcard.cpp:27
IPAddress networkAddress() const
Returns the network (IP) address of the network card.
Definition networkcard.cpp:25
Represents a network package.
Definition package.h:28
Contains the IPAddress class definition.
Contains the MACAddress class definition.
Contains the Package class definition.