aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-11-06 01:55:14 +0000
committerGuy Harris <guy@alum.mit.edu>2001-11-06 01:55:14 +0000
commit6910b84deb396cd81f6f7ca4e68dce3da67121f3 (patch)
treed56ef6f168605a70ea63fefc03089f93202e1473 /wiretap/wtap.h
parentfd514820e4195f4f05ae5bf9c6efd77376ed229b (diff)
Add in some heuristics to try to detect AIX libpcap format. (This works
with one capture I've seen, but perhaps that was done with an old version of AIX, and newer versions use a minor version number, in the file, of 4. However, libpcap hasn't used a minor version of 2 for ages, so perhaps AIX hasn't updated their libpcap in ages, and aren't about to do so soon. If they do, let's hope they change the magic number. The capture file in question *does* have the capture length and real length in the old, pre-2.3, order, so it really looks as if it's an old version, rather than IBM trying to be "helpful" by using a different minor version number so that you can distinguish between normal libpcap and AIX libpcap formats.) svn path=/trunk/; revision=4164
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 45b7b6532c..994c1389e4 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1,6 +1,6 @@
/* wtap.h
*
- * $Id: wtap.h,v 1.92 2001/11/02 13:00:30 gram Exp $
+ * $Id: wtap.h,v 1.93 2001/11/06 01:55:14 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -113,31 +113,32 @@
#define WTAP_FILE_PCAP_SS990915 4
#define WTAP_FILE_PCAP_SS991029 5
#define WTAP_FILE_PCAP_NOKIA 6
-#define WTAP_FILE_LANALYZER 7
-#define WTAP_FILE_NGSNIFFER_UNCOMPRESSED 8
-#define WTAP_FILE_NGSNIFFER_COMPRESSED 9
-#define WTAP_FILE_SNOOP 10
-#define WTAP_FILE_IPTRACE_1_0 11
-#define WTAP_FILE_IPTRACE_2_0 12
-#define WTAP_FILE_NETMON_1_x 13
-#define WTAP_FILE_NETMON_2_x 14
-#define WTAP_FILE_NETXRAY_1_0 15
-#define WTAP_FILE_NETXRAY_1_1 16
-#define WTAP_FILE_NETXRAY_2_00x 17
-#define WTAP_FILE_RADCOM 18
-#define WTAP_FILE_ASCEND 19
-#define WTAP_FILE_NETTL 20
-#define WTAP_FILE_TOSHIBA 21
-#define WTAP_FILE_I4BTRACE 22
-#define WTAP_FILE_CSIDS 23
-#define WTAP_FILE_PPPDUMP 24
-#define WTAP_FILE_ETHERPEEK_MAC_V56 25
-#define WTAP_FILE_ETHERPEEK_MAC_V7 26
-#define WTAP_FILE_VMS 27
-#define WTAP_FILE_DBS_ETHERWATCH 28
+#define WTAP_FILE_PCAP_AIX 7
+#define WTAP_FILE_LANALYZER 8
+#define WTAP_FILE_NGSNIFFER_UNCOMPRESSED 9
+#define WTAP_FILE_NGSNIFFER_COMPRESSED 10
+#define WTAP_FILE_SNOOP 11
+#define WTAP_FILE_IPTRACE_1_0 12
+#define WTAP_FILE_IPTRACE_2_0 13
+#define WTAP_FILE_NETMON_1_x 14
+#define WTAP_FILE_NETMON_2_x 15
+#define WTAP_FILE_NETXRAY_1_0 16
+#define WTAP_FILE_NETXRAY_1_1 17
+#define WTAP_FILE_NETXRAY_2_00x 18
+#define WTAP_FILE_RADCOM 19
+#define WTAP_FILE_ASCEND 20
+#define WTAP_FILE_NETTL 21
+#define WTAP_FILE_TOSHIBA 22
+#define WTAP_FILE_I4BTRACE 23
+#define WTAP_FILE_CSIDS 24
+#define WTAP_FILE_PPPDUMP 25
+#define WTAP_FILE_ETHERPEEK_MAC_V56 26
+#define WTAP_FILE_ETHERPEEK_MAC_V7 27
+#define WTAP_FILE_VMS 28
+#define WTAP_FILE_DBS_ETHERWATCH 29
/* last WTAP_FILE_ value + 1 */
-#define WTAP_NUM_FILE_TYPES 29
+#define WTAP_NUM_FILE_TYPES 30
/*
* Maximum packet size we'll support.