Wireshark-bugs: [Wireshark-bugs] [Bug 11447] New: Pcapng does not set interface timestamp precis
Date: Mon, 17 Aug 2015 14:53:19 +0000
Bug ID 11447
Summary Pcapng does not set interface timestamp precision when reading
Product Wireshark
Version 1.99.x (Experimental)
Hardware All
OS All
Status UNCONFIRMED
Severity Normal
Priority Low
Component Capture file support (libwiretap)
Assignee bugzilla-admin@wireshark.org
Reporter hadrielk@yahoo.com

Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
The pcapng file reader does not set the wtap wtapng_if_descr_t's tsprecision
field to the value it read from the IDB block, leaving it uninitialized. The
value it reads from the IDB block defaults to WTAP_TSPREC_USEC but can change
if a if_tsresol option exists in the file's IDB.

The current code happens to "work" because the pcapng file reader does save the
tsprecision value to an internal array of info, which it then uses to set each
packet's tsprec when they're read from the file. And for the whole file it's
set in the IDB parser section, so again it works even though the wtap
tsprecision is never set.

I guess this begs the question of why we have a 'tsprecision' field in
wtapng_if_descr_t to begin with? It doesn't appear to be used by anything.


You are receiving this mail because:
  • You are watching all bug changes.