Manpage of PCAP_LIST_TSTAMP_TYPES
Section: Misc. Reference Manual Pages (3PCAP)
Updated: 8 September 2019
Return to Main Contents
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: 22:32:37 GMT, February 16, 2020