PcapPlusPlus  20.08+
pcpp::IPv4TimestampOptionValue Struct Reference

#include <IPv4Layer.h>

Public Types

enum  TimestampType { TimestampOnly = 0, TimestampAndIP = 1, TimestampsForPrespecifiedIPs = 2, Unknown = 3 }

Public Member Functions

 IPv4TimestampOptionValue ()
void clear ()

Public Attributes

TimestampType type
std::vector< uint32_t > timestamps
std::vector< IPv4AddressipAddresses

Detailed Description

A struct representing a parsed value of the IPv4 timestamp option. This struct is used returned in IPv4OptionData::getTimestampOptionValue() method

Member Enumeration Documentation

◆ TimestampType

An enum for IPv4 timestamp option types


Value containing only timestamps


Value containing both timestamps and IPv4 addresses


The IPv4 addresses are prespecified


Invalid or unknown value type

Constructor & Destructor Documentation

◆ IPv4TimestampOptionValue()

pcpp::IPv4TimestampOptionValue::IPv4TimestampOptionValue ( )

The default constructor

Member Function Documentation

◆ clear()

void pcpp::IPv4TimestampOptionValue::clear ( )

Clear the structure. Clean the timestamps and IP addresses vectors and set the type as IPv4TimestampOptionValue::Unknown

Member Data Documentation

◆ ipAddresses

std::vector<IPv4Address> pcpp::IPv4TimestampOptionValue::ipAddresses

A list of IPv4 addresses parsed from the IPv4 timestamp option value

◆ timestamps

std::vector<uint32_t> pcpp::IPv4TimestampOptionValue::timestamps

A list of timestamps parsed from the IPv4 timestamp option value

◆ type

TimestampType pcpp::IPv4TimestampOptionValue::type

The timestamp value type