From Ravi Kondamuru via bug 3540:

Treat the two 32bit time values (low, high) in v23 format as a 64bit value.

svn path=/trunk/; revision=30994
This commit is contained in:
Stig Bjørlykke 2009-11-17 18:23:40 +00:00
parent 570efc85bd
commit 99b8600eca
1 changed files with 2 additions and 1 deletions

View File

@ -773,7 +773,8 @@ gboolean nstrace_read_v10(wtap *wth, int *err, gchar **err_info, gint64 *data_of
#define TIMEDEFV23(fp,type) \
do {\
nsg_creltime = (guint64) fp->type##_AbsTimeHighHdr * 1000000;\
/* access _AbsTimeHighHdr as a 64bit value */\
nsg_creltime = *((guint64*)&(fp->type##_AbsTimeHighHdr));\
wth->phdr.ts.secs = (guint32) (nsg_creltime / 1000000000);\
wth->phdr.ts.nsecs = (guint32) (nsg_creltime % 1000000000);\
}while(0)