ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 5802] Rewrite&cleanup wiretap/file_wrappers

Date: Wed, 6 Apr 2011 00:31:18 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5802

--- Comment #11 from Guy Harris <guy@xxxxxxxxxxxx> 2011-04-06 00:31:16 PDT ---
As for the other patches:

The gz* routines, at least in older versions of zlib, have been, as per my
large comment in file_wrappers.c, a bit of a bag of hurt, to use Steve Jobs'
phrase.  In addition, to use the zran.c-derived techniques to make random
access to compressed file fast requires that we implement our own versions of
that code anyway.

(It might also let us disable the checksum check when reading NetXRay-format
files; the Windows sniffer has a compressed format that's just gzipped NetXRay
format, but they don't write out a valid checksum.

It could also let us support multiple compressed formats, e.g. allowing us to
read bzipped captures transparently as well, and might make it easier to
support 64-bit file offsets on more platforms.)

Once that's done, the third patch presumably isn't necessary.

Time permitting, I'll look at the last two patches and test them out.

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