aboutsummaryrefslogtreecommitdiffstats
path: root/cfile.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-19 01:17:24 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-19 01:17:24 +0000
commite67b202e2c4b0b6bcf21bff9ad0fc724346c8d14 (patch)
treee7ca1bbae435f05ab942e776bf3bdd99a6c3eb42 /cfile.h
parent1e1df99990cac56d9c264bacd58d7409d67054c7 (diff)
Have "f_datalen" keep track of the number of bytes of uncompressed file
data, so that "f_len" still keeps the size of the underlying file (which is necessary in order to make the progress bar when files are being read work correctly). svn path=/trunk/; revision=15415
Diffstat (limited to 'cfile.h')
-rw-r--r--cfile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cfile.h b/cfile.h
index 3dc11d4da4..d78461c72d 100644
--- a/cfile.h
+++ b/cfile.h
@@ -47,7 +47,8 @@ typedef struct _capture_file {
gchar *filename; /* Name of capture file */
gboolean is_tempfile; /* Is capture file a temporary file? */
gboolean user_saved;/* If capture file is temporary, has it been saved by user yet? */
- long f_len; /* Length of capture file */
+ long f_datalen; /* Size of capture file data (uncompressed) */
+ long f_len; /* Length of capture file (compressed if file is) */
guint16 cd_t; /* File type of capture file */
int lnk_t; /* Link-layer type with which to save capture */
guint32 vers; /* Version. For tcpdump minor is appended to major */