From 00935a13e4f7fafc0ccc3bdcd582ba8ab2fef6e4 Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 15 Apr 2006 19:00:42 +0000 Subject: Sake Blok wrote.... I have taken a look at the trace myself and calculated the TpS to be 20000000.0 for this particular trace. If I also discard the start_timestamp like it has been done for other versions of the netxray format, then I get the proper results. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17869 f5534014-38df-0310-8fa8-9805f1628bb7 --- wiretap/netxray.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'wiretap') diff --git a/wiretap/netxray.c b/wiretap/netxray.c index c6f08a5b92..fa5207dea1 100644 --- a/wiretap/netxray.c +++ b/wiretap/netxray.c @@ -210,7 +210,7 @@ static double TpS_otherpod2[] = { 1e6, 0.0, 0.0 }; /* * Table of time units for Ethernet captures with captype ETH_CAPTYPE_GIGPOD2. */ -static double TpS_gigpod2[] = { 1e9, 0.0, 0.0 }; +static double TpS_gigpod2[] = { 1e9, 0.0, 20000000.0 }; #define NUM_NETXRAY_TIMEUNITS_GIGPOD2 (sizeof TpS_gigpod2 / sizeof TpS_gigpod2[0]) /* Version number strings. */ @@ -567,6 +567,16 @@ int netxray_open(wtap *wth, int *err, gchar **err_info) return -1; } timeunit = TpS_gigpod2[hdr.timeunit]; + /* + * XXX: start time stamp in the one capture file examined of this type was 0; + * We'll assume the start time handling is the same as for other pods. + * + * At least for 002.002 and 002.003 + * captures, the start time stamp is 0, + * not the value in the file. + */ + if (version_minor == 2 || version_minor == 3) + start_timestamp = 0.0; break; default: -- cgit v1.2.3