aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-22 03:50:31 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-22 03:50:31 +0000
commit5a2b4b7ad22f688019af55474195bd432656177f (patch)
treefa448cade738814520012092e59dc02a5b940b1b /wiretap/wtap.c
parentc82c5954f2eb348ac5ad575d6fdf2b56ab836f9a (diff)
downloadwireshark-5a2b4b7ad22f688019af55474195bd432656177f.tar.gz
wireshark-5a2b4b7ad22f688019af55474195bd432656177f.tar.bz2
wireshark-5a2b4b7ad22f688019af55474195bd432656177f.zip
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()". svn path=/trunk/; revision=546
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,