pcap_list_tstamp_types(3PCAP) man page
Updated: 8 September 2019
Return to Main Contents
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 HTML man page was generated at 15:07:05 GMT, November 01, 2021
from a source man page in "The Tcpdump Group" git repositories
using man2html and other tools.