Type Alias pcap::TstampType

source ·
pub type TstampType = TimestampType;
👎Deprecated: Renamed to TimestampType
Expand description

An old name for TimestampType, kept around for backward-compatibility.

Aliased Type§

enum TstampType {
    Host = 0,
    HostLowPrec = 1,
    HostHighPrec = 2,
    Adapter = 3,
    AdapterUnsynced = 4,
}

Variants§

§

Host = 0

Timestamps are provided by the host machine, rather than by the capture device.

The characteristics of the timestamp are unknown.

§

HostLowPrec = 1

A timestamp provided by the host machine that is low precision but relatively cheap to fetch.

This is normally done using the system clock, so it’s normally synchornized with times you’d fetch from system calls.

§

HostHighPrec = 2

A timestamp provided by the host machine that is high precision. It might be more expensive to fetch.

The timestamp might or might not be synchronized with the system clock, and might have problems with time stamps for packets received on different CPUs, depending on the platform.

§

Adapter = 3

The timestamp is a high-precision time stamp supplied by the capture device.

The timestamp is synchronized with the system clock.

§

AdapterUnsynced = 4

The timestamp is a high-precision time stamp supplied by the capture device.

The timestamp is not synchronized with the system clock.