1
2PCAP_GET_TSTAMP_PRECISION(3PCAP)              PCAP_GET_TSTAMP_PRECISION(3PCAP)
3
4
5

NAME

7       pcap_get_tstamp_precision  -  get  the time stamp precision returned in
8       captures
9

SYNOPSIS

11       #include <pcap/pcap.h>
12
13       int pcap_get_tstamp_precision(pcap_t *p);
14

DESCRIPTION

16       pcap_get_tstamp_precision() returns the precision  of  the  time  stamp
17       returned in packet captures on the pcap descriptor.
18

RETURN VALUE

20       pcap_get_tstamp_precision()   returns   PCAP_TSTAMP_PRECISION_MICRO  or
21       PCAP_TSTAMP_PRECISION_NANO, which indicates that pcap captures contains
22       time stamps in microseconds or nanoseconds respectively.
23

BACKWARD COMPATIBILITY

25       This  function  became available in libpcap release 1.5.1.  In previous
26       releases, time stamps from a capture  device  or  savefile  are  always
27       given in seconds and microseconds.
28

SEE ALSO

30       pcap(3PCAP), pcap_set_tstamp_precision(3PCAP), pcap-tstamp(7)
31
32
33
34                                23 August 2018PCAP_GET_TSTAMP_PRECISION(3PCAP)
Impressum