diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-08-19 01:17:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-08-19 01:17:24 +0000 |
commit | e67b202e2c4b0b6bcf21bff9ad0fc724346c8d14 (patch) | |
tree | e7ca1bbae435f05ab942e776bf3bdd99a6c3eb42 /cfile.h | |
parent | 1e1df99990cac56d9c264bacd58d7409d67054c7 (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |