forked from osmocom/wireshark
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:
parent
570efc85bd
commit
99b8600eca
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue