aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-14 13:07:17 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-14 21:08:18 +0000
commit9cc00c562369fe0b9149eb2aeee090cf52167285 (patch)
tree00f52bc3c14ae31681d6e6b931b3f942f9bcebfa /wiretap/wtap.h
parentc3190d9d70febdd1dbc15269e970f32aeda33f76 (diff)
Check for gzipped files even if we don't have libz.
If we aren't built with libz, report a new "decompression not supported" error if the file is gzipped; the problem isn't that it's a new capture file format we don't support, it's that a *compressed* capture file, in some format, but we don't support the *compression* format used. This can be extended if we add support for other compression formats. Change-Id: I19239525d4e02357e3ca7189996556839af8fce2 Reviewed-on: https://code.wireshark.org/review/25315 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 29f1527d60..13e97829f7 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -2126,6 +2126,9 @@ void wtap_cleanup(void);
#define WTAP_ERR_UNWRITABLE_REC_DATA -25
/** Something in the record data can't be written to that file type */
+#define WTAP_ERR_DECOMPRESSION_NOT_SUPPORTED -26
+ /** We don't support decompressing that type of compressed file */
+
#ifdef __cplusplus
}
#endif /* __cplusplus */