aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-01-02 06:10:55 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-01-02 06:10:55 +0000
commit3688d96c459a5847a49d14264c0398600379f8b9 (patch)
treef87737491cb959697c6414b4ea1745e7528c1acc /wiretap/file.c
parentd1a7effcf97733edfac7ea145cccddc1032cbf6f (diff)
Added the iptrace (AIX's packet-capture tool) file format to wiretap.
This necessitated a change in ethereal because iptrace supports multi-NIC packet capturing, including multi-datalink-type capturing. svn path=/trunk/; revision=145
Diffstat (limited to 'wiretap/file.c')
-rw-r--r--wiretap/file.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/wiretap/file.c b/wiretap/file.c
index 5aee94034f..9ff7538b24 100644
--- a/wiretap/file.c
+++ b/wiretap/file.c
@@ -1,6 +1,6 @@
/* file.c
*
- * $Id: file.c,v 1.4 1998/11/15 05:29:09 guy Exp $
+ * $Id: file.c,v 1.5 1999/01/02 06:10:55 gram Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -29,6 +29,7 @@
#include "ngsniffer.h"
#include "libpcap.h"
#include "snoop.h"
+#include "iptrace.h"
/* The open_file_* routines should return the WTAP_FILE_* type
* that they are checking for if the file is successfully recognized
@@ -65,6 +66,10 @@ wtap* wtap_open_offline(char *filename, int filetype)
if ((wth->file_type = snoop_open(wth)) != WTAP_FILE_UNKNOWN) {
goto success;
}
+ /* WTAP_FILE_IPTRACE */
+ if ((wth->file_type = iptrace_open(wth)) != WTAP_FILE_UNKNOWN) {
+ goto success;
+ }
printf("failed\n");
/* WTAP_FILE_UNKNOWN */
@@ -93,6 +98,11 @@ wtap* wtap_open_offline(char *filename, int filetype)
goto success;
}
break;
+ case WTAP_FILE_IPTRACE:
+ if ((wth->file_type = iptrace_open(wth)) != WTAP_FILE_UNKNOWN) {
+ goto success;
+ }
+ break;
default:
goto failure;
}