Calculate *Peek tagged timestamps in fixed-point.
authorGuy Harris <guy@alum.mit.edu>
Tue, 21 Apr 2015 01:27:41 +0000 (18:27 -0700)
committerGuy Harris <guy@alum.mit.edu>
Tue, 21 Apr 2015 01:28:15 +0000 (01:28 +0000)
commit8b720910d2ae04aab24709cf30363e9f064e2c63
tree62da61102824a5a03f02a73c6fdfe34777c3d32e
parentc35f2ccb4433718416551cc7a85afb0860529d57
Calculate *Peek tagged timestamps in fixed-point.

Add a variant of filetime_to_nstime() that takes a value that's like a
FILETIME but in units of nanoseconds rather than tenths of a
microsecond, and use that.  (It looks as if they might just get FILETIME
values from the OS and multiply them by 100, as the nanosecond-FILETIME
values appear to be multiples of 100 in the captures I've seen, but they
might have chosen nanosecond resolution in case they need to support a
higher-resolution time stamp source, so we don't assume that the values
will always be a multiple of 100.)

Change-Id: If6a1cb2cb673688b042eb113b79cfd267f5454a5
Reviewed-on: https://code.wireshark.org/review/8150
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/peektagged.c
wsutil/nstime.c
wsutil/nstime.h