aboutsummaryrefslogtreecommitdiffstats
path: root/capinfos.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2012-06-20 13:30:07 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2012-06-20 13:30:07 +0000
commitc8391561bf16bde475344593e7987bc45c94944e (patch)
tree7f1ac290c1925812ef8d63c739a0e558ed2cd958 /capinfos.c
parentade3bd548ae4b02c8cb9bb8344b9329997ed62d8 (diff)
Use separate filters for the RTT found on a SACK and the RTT found on a
DATA chunk: having them in both places is helpful when looking at the messages but having them separate is helpful when graphing the RTTs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43406 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/capinfos.c b/capinfos.c
index 4ffc0646f3..7c67bb2605 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -191,6 +191,7 @@ typedef enum {
typedef struct _capture_info {
const char *filename;
guint16 file_type;
+ gboolean iscompressed;
int file_encap;
gint64 filesize;
@@ -358,7 +359,9 @@ print_stats(const gchar *filename, capture_info *cf_info)
stop_time_t = (time_t)cf_info->stop_time;
if (filename) printf ("File name: %s\n", filename);
- if (cap_file_type) printf ("File type: %s\n", file_type_string);
+ if (cap_file_type) printf ("File type: %s%s\n",
+ file_type_string,
+ cf_info->iscompressed ? " (gzip compressed)" : "");
if (cap_file_encap) printf ("File encapsulation: %s\n", file_encap_string);
if (cap_file_encap && (cf_info->file_encap == WTAP_ENCAP_PER_PACKET)) {
int i;
@@ -749,6 +752,7 @@ process_cap_file(wtap *wth, const char *filename)
/* File Type */
cf_info.file_type = wtap_file_type(wth);
+ cf_info.iscompressed = wtap_iscompressed(wth);
/* File Encapsulation */
cf_info.file_encap = wtap_file_encap(wth);