Blame pcap_get_tstamp_precision.3pcap.in

Packit 209cc3
.\"Copyright (c) 2013, Michal Sekletar
Packit 209cc3
.\"All rights reserved.
Packit 209cc3
.\"
Packit 209cc3
.\"Redistribution and use in source and binary forms, with or without
Packit 209cc3
.\"modification, are permitted provided that the following conditions
Packit 209cc3
.\"are met:
Packit 209cc3
.\"
Packit 209cc3
.\"  1. Redistributions of source code must retain the above copyright
Packit 209cc3
.\"     notice, this list of conditions and the following disclaimer.
Packit 209cc3
.\"  2. Redistributions in binary form must reproduce the above copyright
Packit 209cc3
.\"     notice, this list of conditions and the following disclaimer in
Packit 209cc3
.\"     the documentation and/or other materials provided with the
Packit 209cc3
.\"     distribution.
Packit 209cc3
.\"  3. The names of the authors may not be used to endorse or promote
Packit 209cc3
.\"     products derived from this software without specific prior
Packit 209cc3
.\"     written permission.
Packit 209cc3
.\"
Packit 209cc3
.\"THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
Packit 209cc3
.\"IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
Packit 209cc3
.\"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Packit 209cc3
Packit 209cc3
.TH PCAP_GET_TSTAMP_PRECISION 3PCAP "18 December 2013"
Packit 209cc3
.SH NAME
Packit 209cc3
pcap_get_tstamp_precision \- get the time stamp precision returned in
Packit 209cc3
captures
Packit 209cc3
.SH SYNOPSIS
Packit 209cc3
.nf
Packit 209cc3
.ft B
Packit 209cc3
#include <pcap/pcap.h>
Packit 209cc3
.ft
Packit 209cc3
.LP
Packit 209cc3
.ft B
Packit 209cc3
int pcap_get_tstamp_precision(pcap_t *p);
Packit 209cc3
.ft
Packit 209cc3
.fi
Packit 209cc3
.SH DESCRIPTION
Packit 209cc3
.B pcap_get_tstamp_precision()
Packit 209cc3
returns the precision of the time stamp returned in packet captures on the pcap
Packit 209cc3
descriptor.
Packit 209cc3
.SH RETURN VALUE
Packit 209cc3
.B pcap_get_tstamp_precision()
Packit 209cc3
returns
Packit 209cc3
.B PCAP_TSTAMP_PRECISION_MICRO
Packit 209cc3
or
Packit 209cc3
.BR PCAP_TSTAMP_PRECISION_NANO ,
Packit 209cc3
which indicates
Packit 209cc3
that pcap captures contains time stamps in microseconds or nanoseconds
Packit 209cc3
respectively.
Packit 209cc3
.SH BACKWARD COMPATIBILITY
Packit 209cc3
This function became available in libpcap release 1.5.1.  In previous
Packit 209cc3
releases, time stamps from a capture device or savefile are always given
Packit 209cc3
in seconds and microseconds.
Packit 209cc3
.SH SEE ALSO
Packit 209cc3
pcap(3PCAP),
Packit 209cc3
pcap_set_tstamp_precision(3PCAP),
Packit 209cc3
pcap-tstamp(@MAN_MISC_INFO@)