aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-08-22 03:50:31 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-08-22 03:50:31 +0000
commit6e42a0d445b9934875cf6e0c5c95e10470e2a657 (patch)
treefa448cade738814520012092e59dc02a5b940b1b /wiretap/wtap.c
parent80a96a96370de2dee5f9894259b01ce82c89952c (diff)
Fix the pcap-encapsulation-to-wiretap-encapsulation mapping table.
Have the code that opens "libpcap" files for writing check to make sure that the Wiretap encapsulation can be written to a "libpcap" file, and return -1 and supply a new WTAP_ERR_UNSUPPORTED_ENCAP error code if it can't. Handle that new error code in "wtap_strerror()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@546 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r--wiretap/wtap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index 58c95b4eb4..cdc48c63ed 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -1,6 +1,6 @@
/* wtap.c
*
- * $Id: wtap.c,v 1.16 1999/08/22 02:52:48 guy Exp $
+ * $Id: wtap.c,v 1.17 1999/08/22 03:50:31 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -94,6 +94,7 @@ static const char *wtap_errlist[] = {
"File contains record data we don't support",
NULL,
"Files can't be saved in that format",
+ "Files from that network type can't be saved in that format",
"That format doesn't support per-packet encapsulations",
NULL,
NULL,