Man page of PCAP_LIST_TSTAMP_TYPES
Section: Misc. Reference Manual Pages (3PCAP)
Updated: 8 September 2019
Return to Main Contents
This man page documents libpcap version 1.10.1.
Your system may have a different version installed, possibly with some
local modifications. To achieve the best results, please make sure this
version of this man page suits your needs. If necessary, try to look for
a different version on this web site or in the man pages available in your
pcap_list_tstamp_types, pcap_free_tstamp_types - get a list of time
stamp types supported by a capture device, and free that list
int pcap_list_tstamp_types(pcap_t *p, int **tstamp_typesp);
void pcap_free_tstamp_types(int *tstamp_types);
is used to get a list of the supported time stamp types of the interface
associated with the pcap descriptor.
allocates an array to hold the list and sets
to point to the array.
for a list of all the time stamp types.
The caller is responsible for freeing the array with
which frees the list pointed to by
returns the number of time stamp types in the array on success and
A return value of one means that the only time stamp type supported is
the one in the list, which is the capture device's default time stamp
type. A return value of zero means that the only time stamp type
which is the capture device's default time stamp type (only older
versions of libpcap will return that; newer versions will always return
one or more types).
may be called with
as an argument to fetch or display the error text.
These functions became available in libpcap release 1.2.1. In previous
releases, the time stamp type cannot be set; only the default time stamp
type offered by a capture source is available.
This document was created by
using the manual pages from "The Tcpdump Group" git repositories.
Time: 12:26:15 GMT, October 07, 2021
[Valid HTML 4.01]