summaryrefslogtreecommitdiff
path: root/summary.h
diff options
context:
space:
mode:
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 /summary.h
parent73888ed977e7ba3356d3c5e31c182508d576dfc1 (diff)
downloadwireshark-cf6d9841e37906448ad1a571a648140325efcae0.tar.gz
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 'summary.h')
-rw-r--r--summary.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/summary.h b/summary.h
index f359990345..ee3f712b6f 100644
--- a/summary.h
+++ b/summary.h
@@ -33,7 +33,7 @@ typedef struct iface_options_tag {
char *name;
char *descr;
char *cfilter;
- char *isb_comment;
+ char *isb_comment;
guint64 drops; /**< number of packet drops */
gboolean drops_known; /**< TRUE if number of packet drops is known */
gboolean has_snap; /**< TRUE if maximum capture packet length is known */
@@ -64,6 +64,7 @@ typedef struct _summary_tally {
const char *filename;
gint64 file_length; /**< file length in bytes */
int file_type; /**< wiretap file type */
+ int iscompressed; /**< TRUE if file is compressed */
int encap_type; /**< wiretap encapsulation type */
gboolean has_snap; /**< TRUE if maximum capture packet length is known */
int snap; /**< Maximum captured packet length */