aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-01-01 04:01:41 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-01-01 04:01:41 +0000
commitc20bb290c546bd4d0d78cc6128633a6fd672faee (patch)
treec07879cf1ba1ac8924efb123fb60d6e7c8a92fe4 /wiretap
parent59eb4c8a1ad0633a39e01529fbf0a00f1469a767 (diff)
downloadwireshark-c20bb290c546bd4d0d78cc6128633a6fd672faee.tar.gz
wireshark-c20bb290c546bd4d0d78cc6128633a6fd672faee.tar.bz2
wireshark-c20bb290c546bd4d0d78cc6128633a6fd672faee.zip
Add relative timestamps. The Toshiba ISDN router has the same problem
as the Ascend routers; those little buggers don't remember time very well. The only timestamp available in the trace is relative to the beginning of the trace. So, right now I'm just using this relative timestamp as the absoulte time. All my times are in 1969 (my timezone is GMT - 6), but all I care about for now is the relative time, which is preserved even if the absolute time is in the wrong decade. svn path=/trunk/; revision=1404
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/toshiba.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/toshiba.c b/wiretap/toshiba.c
index 924176dcc7..3ca88125d8 100644
--- a/wiretap/toshiba.c
+++ b/wiretap/toshiba.c
@@ -1,6 +1,6 @@
/* toshiba.c
*
- * $Id: toshiba.c,v 1.5 1999/11/18 07:04:29 gram Exp $
+ * $Id: toshiba.c,v 1.6 2000/01/01 04:01:41 gram Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -299,8 +299,8 @@ parse_toshiba_rec_hdr(wtap *wth, FILE *fh, int *err)
}
if (wth) {
- wth->phdr.ts.tv_sec = 0;
- wth->phdr.ts.tv_usec = 0;
+ wth->phdr.ts.tv_sec = hr * 3600 + min * 60 + sec;
+ wth->phdr.ts.tv_usec = csec * 10000;
wth->phdr.caplen = pkt_len;
wth->phdr.len = pkt_len;
switch (channel[0]) {