From 392c41ce3086979b2158550b9f669b04a0864424 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 28 Sep 2014 16:28:36 -0700 Subject: Add support for getting nanosecond time stamp resolution when capturing. If we have pcap_set_tstamp_precision(), use it to request nanosecond time stamp resolution *if* we're writing a pcap-ng file; any code that reads those files and can't handle nanosecond time stamp resolution is broken and needs to be fixed. If we're writing a pcap file, don't ask for nanosecond resolution time stamps, as that requires a different magic number for pcap files, and not all code that reads pcap files can handle that. (Unlike pcap-ng, where the ability to have non-microsecond time stamp resolution was present from Day One, it's a relatively recent addition to pcap.) We could add a command-line option/GUI option for that, like the option recent versions of tcpdump have, if it matters. Change-Id: I8fa464eb929feecb9a70be70712502c9f0cc5270 Reviewed-on: https://code.wireshark.org/review/4355 Reviewed-by: Guy Harris --- cmakeconfig.h.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmakeconfig.h.in') diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index 5265de4ca2..fe7b916be1 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -230,9 +230,12 @@ /* Define to 1 if you have the `pcap_set_datalink' function. */ #cmakedefine HAVE_PCAP_SET_DATALINK 1 -/* Define to 1 if you have the `pcap_setsampling" function. */ +/* Define to 1 if you have the `pcap_setsampling' function. */ #cmakedefine HAVE_PCAP_SETSAMPLING 1 +/* Define to 1 if you have the `pcap_set_tstamp_precision' function. */ +#cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_PORTAUDIO_H 1 -- cgit v1.2.3