aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/iptrace.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-02-19 08:00:08 +0000
committerGuy Harris <guy@alum.mit.edu>2000-02-19 08:00:08 +0000
commit585268e3e1056e802dcf6507e3613b92ca0d694c (patch)
tree1cb5d9d7ecc359592c1b10ea73028296927a2894 /wiretap/iptrace.c
parent1b401fa9e1b6637b3af0c0297560ac217a033217 (diff)
Use WTAP_ERR_UNSUPPORTED_ENCAP for all attempts to open or read a
capture file for an unsupported link-layer encapsulation type (as the nettl reader does), and report it correctly if it occurs on an open or read attempt rather than a save attempt. svn path=/trunk/; revision=1647
Diffstat (limited to 'wiretap/iptrace.c')
-rw-r--r--wiretap/iptrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/iptrace.c b/wiretap/iptrace.c
index ff48b772cd..69dc53545b 100644
--- a/wiretap/iptrace.c
+++ b/wiretap/iptrace.c
@@ -1,6 +1,6 @@
/* iptrace.c
*
- * $Id: iptrace.c,v 1.24 2000/01/22 06:22:37 guy Exp $
+ * $Id: iptrace.c,v 1.25 2000/02/19 08:00:06 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -147,7 +147,7 @@ static int iptrace_read_1_0(wtap *wth, int *err)
if (wth->phdr.pkt_encap == WTAP_ENCAP_UNKNOWN) {
g_message("iptrace: interface type IFT=0x%02x unknown or unsupported",
pkt_hdr.if_type);
- *err = WTAP_ERR_UNSUPPORTED;
+ *err = WTAP_ERR_UNSUPPORTED_ENCAP;
return -1;
}
@@ -251,7 +251,7 @@ static int iptrace_read_2_0(wtap *wth, int *err)
if (wth->phdr.pkt_encap == WTAP_ENCAP_UNKNOWN) {
g_message("iptrace: interface type IFT=0x%02x unknown or unsupported",
pkt_hdr.if_type);
- *err = WTAP_ERR_UNSUPPORTED;
+ *err = WTAP_ERR_UNSUPPORTED_ENCAP;
return -1;
}