path: root/cfile.h
diff options
authorGuy Harris <guy@alum.mit.edu>2012-05-24 05:05:29 +0000
committerGuy Harris <guy@alum.mit.edu>2012-05-24 05:05:29 +0000
commitcf6d9841e37906448ad1a571a648140325efcae0 (patch)
tree8e14522dbdae5295fd41a236e7f9e49daab36c4e /cfile.h
parent73888ed977e7ba3356d3c5e31c182508d576dfc1 (diff)
Keep track, in Wiretap, of whether the file is compressed, and provide
an API to fetch that. When doing "Save" on a compressed file, write it out compressed. In the Statistics -> Summary dialog and in capinfos, report whether the file is gzip-compressed. svn path=/trunk/; revision=42818
Diffstat (limited to 'cfile.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/cfile.h b/cfile.h
index 63bd0eee90..d33f361fb4 100644
--- a/cfile.h
+++ b/cfile.h
@@ -73,6 +73,7 @@ typedef struct _capture_file {
gboolean unsaved_changes; /* Does the capture file have changes that have not been saved? */
gint64 f_datalen; /* Size of capture file data (uncompressed) */
guint16 cd_t; /* File type of capture file */
+ gboolean iscompressed; /* TRUE if the file is compressed */
int lnk_t; /* Link-layer type with which to save capture */
guint32 count; /* Total number of frames */
guint32 displayed_count; /* Number of displayed frames */