Wireshark-commits: [Wireshark-commits] master 392c41c: Add support for getting nanosecond time stam
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=392c41ce3086979b2158550b9f669b04a0864424
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
392c41c by Guy Harris (guy@xxxxxxxxxxxx):
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 <guy@xxxxxxxxxxxx>
Actions performed:
from f6b9e7a PIDL: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
adds 392c41c Add support for getting nanosecond time stamp resolution when capturing.
Summary of changes:
acinclude.m4 | 2 +-
cmake/modules/FindPCAP.cmake | 1 +
cmakeconfig.h.in | 5 ++++-
dumpcap.c | 31 +++++++++++++++++++++++++++++++
4 files changed, 37 insertions(+), 2 deletions(-)