summaryrefslogtreecommitdiff
path: root/wiretap/snoop.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-16 22:22:29 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-17 06:22:57 +0000
commit40f69b2778cb6a9add18cfeacbca430284b1cd66 (patch)
tree009e9cf4303fe66a2c8b3755fb2952ad993f2c4a /wiretap/snoop.c
parentb56d4d01876a378530922e4de446b8434f75d871 (diff)
downloadwireshark-40f69b2778cb6a9add18cfeacbca430284b1cd66.tar.gz
Use WTAP_ERR_UNSUPPORTED for input file stuff we can't handle.
WTAP_ERR_UNSUPPORTED_ENCAP means "I can't *write* that particular encapsulation type to a file of this format", which mainly means "that file format simply can't handle packets of that type"; WTAP_ERR_UNSUPPORTED means "this file can't currently be supported by Wireshark, as there's some feature in the file - such as a file or per-packet encapsulation type - that we don't (yet) handle". Change-Id: I53cadf9913d20efb2bccb29f61877b71d53807be Reviewed-on: https://code.wireshark.org/review/5794 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/snoop.c')
-rw-r--r--wiretap/snoop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/snoop.c b/wiretap/snoop.c
index ad3886ec7c..9bd2cdbc74 100644
--- a/wiretap/snoop.c
+++ b/wiretap/snoop.c
@@ -369,7 +369,7 @@ wtap_open_return_val snoop_open(wtap *wth, int *err, gchar **err_info)
if (is_shomiti) {
if (hdr.network >= NUM_SHOMITI_ENCAPS
|| shomiti_encap[hdr.network] == WTAP_ENCAP_UNKNOWN) {
- *err = WTAP_ERR_UNSUPPORTED_ENCAP;
+ *err = WTAP_ERR_UNSUPPORTED;
*err_info = g_strdup_printf("snoop: Shomiti network type %u unknown or unsupported",
hdr.network);
return WTAP_OPEN_ERROR;
@@ -381,7 +381,7 @@ wtap_open_return_val snoop_open(wtap *wth, int *err, gchar **err_info)
} else if (hdr.network & SNOOP_PRIVATE_BIT) {
if ((hdr.network^SNOOP_PRIVATE_BIT) >= NUM_SNOOP_PRIVATE_ENCAPS
|| snoop_private_encap[hdr.network^SNOOP_PRIVATE_BIT] == WTAP_ENCAP_UNKNOWN) {
- *err = WTAP_ERR_UNSUPPORTED_ENCAP;
+ *err = WTAP_ERR_UNSUPPORTED;
*err_info = g_strdup_printf("snoop: private network type %u unknown or unsupported",
hdr.network);
return WTAP_OPEN_ERROR;
@@ -393,7 +393,7 @@ wtap_open_return_val snoop_open(wtap *wth, int *err, gchar **err_info)
} else {
if (hdr.network >= NUM_SNOOP_ENCAPS
|| snoop_encap[hdr.network] == WTAP_ENCAP_UNKNOWN) {
- *err = WTAP_ERR_UNSUPPORTED_ENCAP;
+ *err = WTAP_ERR_UNSUPPORTED;
*err_info = g_strdup_printf("snoop: network type %u unknown or unsupported",
hdr.network);
return WTAP_OPEN_ERROR;