aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorHadriel Kaplan <hadrielk@yahoo.com>2015-08-19 18:42:59 -0400
committerHadriel Kaplan <hadrielk@yahoo.com>2015-08-19 23:04:25 +0000
commitb3daf70714a4aeef99d6f19ee7af1e87723e7779 (patch)
tree74062409eb1ce91d4eaa0b70f6c4637da2b33e7a /wiretap
parentfc0a2f5d894a267572cf07ac3da4cbfa2a1cd682 (diff)
Pcap: wtap does not set interface timestamp precision when reading pcap
Like bug 11447, when wiretap reads a legacy PCAP file it needs to set the interface description's tsprecision member. And like bug 11447, I'm wondering why we have the field to begin with. But I'm fixing this so that the Windows buildbots can get going again. Change-Id: I71d0fe2e999ee7d11f1f5cc424681a99e17b1b1b Reviewed-on: https://code.wireshark.org/review/10139 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/file_access.c2
-rw-r--r--wiretap/merge.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index a308c11e0c..69604e2371 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -1120,9 +1120,11 @@ success:
if (wth->file_type_subtype == WTAP_FILE_TYPE_SUBTYPE_PCAP_NSEC) {
descr.time_units_per_second = 1000000000; /* nanosecond resolution */
descr.if_tsresol = 9;
+ descr.tsprecision = WTAP_TSPREC_NSEC;
} else {
descr.time_units_per_second = 1000000; /* default microsecond resolution */
descr.if_tsresol = 6;
+ descr.tsprecision = WTAP_TSPREC_USEC;
}
descr.link_type = wtap_wtap_encap_to_pcap_encap(wth->file_encap);
descr.snap_len = wth->snapshot_length;
diff --git a/wiretap/merge.c b/wiretap/merge.c
index fce8f9783e..9dbaf9231c 100644
--- a/wiretap/merge.c
+++ b/wiretap/merge.c
@@ -40,7 +40,7 @@
#include "wsutil/os_version_info.h"
-#if 1
+#if 0
#define merge_debug0(str) g_warning(str)
#define merge_debug1(str,p1) g_warning(str,p1)
#define merge_debug2(str,p1,p2) g_warning(str,p1,p2)