ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] bugfix - time reference frame

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Lars Roland <Lars.Roland@xxxxxxx>
Date: Fri, 19 Sep 2003 02:14:12 +0200 (MEST)
Hello,

attached is a small bugfix. 
It sets the initial value of flags.ref_time to "0".

Tethereal on Win32 used "1" as default value.

Best Regards,

Lars Roland
Index: ethereal/file.c
===================================================================
RCS file: /cvsroot/ethereal/file.c,v
retrieving revision 1.314
diff -u -r1.314 file.c
--- ethereal/file.c	15 Sep 2003 23:28:07 -0000	1.314
+++ ethereal/file.c	18 Sep 2003 23:49:42 -0000
@@ -871,6 +871,7 @@
   fdata->flags.encoding = CHAR_ASCII;
   fdata->flags.visited = 0;
   fdata->flags.marked = 0;
+  fdata->flags.ref_time = 0;
 
   passed = TRUE;
   if (cf->rfcode) {
Index: ethereal/tethereal.c
===================================================================
RCS file: /cvsroot/ethereal/tethereal.c,v
retrieving revision 1.197
diff -u -r1.197 tethereal.c
--- ethereal/tethereal.c	15 Sep 2003 22:48:41 -0000	1.197
+++ ethereal/tethereal.c	18 Sep 2003 23:49:48 -0000
@@ -2119,6 +2119,7 @@
   fdata->flags.encoding = CHAR_ASCII;
   fdata->flags.visited = 0;
   fdata->flags.marked = 0;
+  fdata->flags.ref_time = 0;
 
   /* If we don't have the time stamp of the first packet in the
      capture, it's because this is the first packet.  Save the time