Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 3540] incorrect timestamps in netscaler capture file forma

Date: Tue, 17 Nov 2009 14:17:14 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3540





--- Comment #15 from Stig Bjørlykke <stig@xxxxxxxxxxxxx>  2009-11-17 14:17:13 PDT ---

Does this work?


Index: wiretap/netscaler.c
===================================================================
--- wiretap/netscaler.c (revision 30997)
+++ wiretap/netscaler.c (working copy)
@@ -774,7 +774,7 @@
 #define TIMEDEFV23(fp,type) \
        do {\
                /* access _AbsTimeHighHdr as a 64bit value */\
-               nsg_creltime = *((guint64*)&(fp->type##_AbsTimeHighHdr));\
+               nsg_creltime = (((guint64)fp->type##_AbsTimeHighHdr<<32) ||
(fp->type##_AbsTimeLowHdr));\
                wth->phdr.ts.secs = (guint32) (nsg_creltime / 1000000000);\
                wth->phdr.ts.nsecs = (guint32) (nsg_creltime % 1000000000);\
        }while(0)


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.