diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-12 02:40:14 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-12 02:40:14 +0000 |
commit | e7bb57d7e56a2b2c30a714a1eb2d64ff5bd6c746 (patch) | |
tree | ebb3a5291dd0439aed7f8651d6ea30c5ddf49c5e /wiretap/wtap-int.h | |
parent | dc354827a73162aebfef9bfd49111e5964a11285 (diff) |
From Jakub Zawadzki: speed up random access to gzipped files, as per the
zran.c example in the zlib source.
This means that problems in the file's contents might not be reported
when a packet is read, as long as there's no problem in the contents of
the file up to the last bit of compressed data for the packet; we now
check for errors after finishing the sequential read of the file, at
least in some programs, so that shouldn't be an issue (the other
programs need to be changed to do so as well). This is necessary in
order to be able to read all the packets we saw in the sequential pass;
it also lets us get a few more packets from truncated files in some
cases.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36577 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r-- | wiretap/wtap-int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h index a9f0758663..aff5fde02f 100644 --- a/wiretap/wtap-int.h +++ b/wiretap/wtap-int.h @@ -72,6 +72,7 @@ struct wtap { * e.g. WTAP_FILE_TSPREC_USEC */ wtap_new_ipv4_callback_t add_new_ipv4; wtap_new_ipv6_callback_t add_new_ipv6; + GPtrArray *fast_seek; }; struct wtap_dumper; |