|
PcapPlusPlus
25.05
|
#include <IPv4Layer.h>
Public Attributes | |
| uint8_t | internetHeaderLength: 4 |
| IP header length, has the value of 5 for IPv4. | |
| uint8_t | ipVersion: 4 |
| IP version number, has the value of 4 for IPv4. | |
| uint8_t | typeOfService |
| type of service, same as Differentiated Services Code Point (DSCP) | |
| uint16_t | totalLength |
| Entire packet (fragment) size, including header and data, in bytes. | |
| uint16_t | ipId |
| uint16_t | fragmentOffset |
| Fragment offset field, measured in units of eight-byte blocks (64 bits) | |
| uint8_t | timeToLive |
| uint8_t | protocol |
| Defines the protocol used in the data portion of the IP datagram. Must be one of IPProtocolTypes. | |
| uint16_t | headerChecksum |
| Error-checking of the header. | |
| uint32_t | ipSrc |
| IPv4 address of the sender of the packet. | |
| uint32_t | ipDst |
| IPv4 address of the receiver of the packet. | |
Represents an IPv4 protocol header
| uint16_t pcpp::iphdr::ipId |
Identification field. Primarily used for uniquely identifying the group of fragments of a single IP datagram
| uint8_t pcpp::iphdr::timeToLive |
An eight-bit time to live field helps prevent datagrams from persisting (e.g. going in circles) on an internet. In practice, the field has become a hop count