From cd93af0ed16dba3c4b2ad3f9e0874d0ddd8877dc Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 4 Nov 2014 18:08:47 -0800 Subject: Oops, we also need to worry about pcap_get_tstamp_precision(). Change-Id: I60a1f671ba313c59ca1999ab703ee11370608758 Reviewed-on: https://code.wireshark.org/review/5123 Reviewed-by: Guy Harris --- caputils/capture-pcap-util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'caputils/capture-pcap-util.h') diff --git a/caputils/capture-pcap-util.h b/caputils/capture-pcap-util.h index 079e3fabd7..3cec18305b 100644 --- a/caputils/capture-pcap-util.h +++ b/caputils/capture-pcap-util.h @@ -56,6 +56,13 @@ int linktype_name_to_val(const char *linktype); * and append them to a GString. */ void request_high_resolution_timestamp(pcap_t *pcap_h); + +/* + * Return TRUE if the pcap_t in question is set up for high-precision + * time stamps, FALSE otherwise. + */ +gboolean have_high_resolution_timestamp(pcap_t *pcap_h); + #endif /* HAVE_PCAP_SET_TSTAMP_PRECISION */ #endif /* HAVE_LIBPCAP */ -- cgit v1.2.3