1PCAP_LIST_TSTAMP_TYPES(3PCAP)                    PCAP_LIST_TSTAMP_TYPES(3PCAP)
2
3
4

NAME

6       pcap_list_tstamp_types,  pcap_free_tstamp_types  -  get  a list of time
7       stamp types supported by a capture device, and free that list
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       int pcap_list_tstamp_types(pcap_t *p, int **tstamp_typesp);
13       void pcap_free_tstamp_types(int *tstamp_types);
14

DESCRIPTION

16       pcap_list_tstamp_types() is used to get a list of  the  supported  time
17       stamp  types  of  the  interface  associated  with the pcap descriptor.
18       pcap_list_tstamp_types() allocates an array to hold the list  and  sets
19       *tstamp_typesp to point to the array.  See pcap-tstamp(7) for a list of
20       all the time stamp types.
21
22       The   caller   is   responsible   for   freeing    the    array    with
23       pcap_free_tstamp_types(),   which   frees   the   list  pointed  to  by
24       tstamp_types.
25

RETURN VALUE

27       pcap_list_tstamp_types() returns the number of time stamp types in  the
28       array  on  success  and  PCAP_ERROR on failure.  A return value of zero
29       means that you cannot specify a time stamp type; you are limited to the
30       capture  device's  default time stamp type.  If PCAP_ERROR is returned,
31       pcap_geterr() or pcap_perror() may be called with p as an  argument  to
32       fetch or display the error text.
33

SEE ALSO

35       pcap(3PCAP),  pcap_geterr(3PCAP),  pcap_tstamp_type_val_to_name(3PCAP),
36       pcap-tstamp(7)
37
38
39
40                                21 August 2010   PCAP_LIST_TSTAMP_TYPES(3PCAP)
Impressum