aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-07-31 19:27:57 +0000
committerGuy Harris <guy@alum.mit.edu>2002-07-31 19:27:57 +0000
commit5d929e0e8f940c016a55a4f2e8e53874864c4476 (patch)
tree4bbe5fccdfc59dee68f652dd3e23e0da2fafa360 /wiretap/wtap.h
parent6b10bf4a3722f5388db37d1c42fca48ba7e52806 (diff)
downloadwireshark-5d929e0e8f940c016a55a4f2e8e53874864c4476.tar.gz
wireshark-5d929e0e8f940c016a55a4f2e8e53874864c4476.tar.bz2
wireshark-5d929e0e8f940c016a55a4f2e8e53874864c4476.zip
From Motonori Shindo: support for reading CoSine L2 debug output.
svn path=/trunk/; revision=5922
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h41
1 files changed, 38 insertions, 3 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 4254cd2870..6e1101e10b 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1,6 +1,6 @@
/* wtap.h
*
- * $Id: wtap.h,v 1.118 2002/07/29 06:09:59 guy Exp $
+ * $Id: wtap.h,v 1.119 2002/07/31 19:27:57 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -114,9 +114,10 @@
#define WTAP_ENCAP_PFLOG 26
#define WTAP_ENCAP_HHDLC 27
#define WTAP_ENCAP_DOCSIS 28
+#define WTAP_ENCAP_COSINE 29
/* last WTAP_ENCAP_ value + 1 */
-#define WTAP_NUM_ENCAP_TYPES 29
+#define WTAP_NUM_ENCAP_TYPES 30
/* File types that can be read by wiretap.
We support writing some many of these file types, too, so we
@@ -153,9 +154,10 @@
#define WTAP_FILE_VMS 29
#define WTAP_FILE_DBS_ETHERWATCH 30
#define WTAP_FILE_VISUAL_NETWORKS 31
+#define WTAP_FILE_COSINE 32
/* last WTAP_FILE_ value + 1 */
-#define WTAP_NUM_FILE_TYPES 32
+#define WTAP_NUM_FILE_TYPES 33
/*
* Maximum packet size we'll support.
@@ -291,12 +293,45 @@ struct ieee_802_11_phdr {
guint8 signal_level; /* percentage */
};
+/* Packet "pseudo-header" for the output from CoSine L2 debug output. */
+
+/* XXX */
+#define COSINE_MAX_IF_NAME_LEN 128
+
+#define COSINE_ENCAP_TEST 1
+#define COSINE_ENCAP_PPoATM 2
+#define COSINE_ENCAP_PPoFR 3
+#define COSINE_ENCAP_ATM 4
+#define COSINE_ENCAP_FR 5
+#define COSINE_ENCAP_HDLC 6
+#define COSINE_ENCAP_PPP 7
+#define COSINE_ENCAP_ETH 8
+#define COSINE_ENCAP_UNKNOWN 99
+
+#define COSINE_DIR_TX 1
+#define COSINE_DIR_RX 2
+
+/* XXX */
+struct cosine_phdr {
+ guint8 encap; /* COSINE_ENCAP_* as defined above */
+ guint8 direction; /* COSINE_DIR_*, as defined above */
+ char if_name[COSINE_MAX_IF_NAME_LEN];
+ guint16 pro; /* */
+ guint16 off; /* */
+ guint16 pri; /* */
+ guint16 rm; /* */
+ guint16 err; /* */
+ guint16 code1; /* */
+ guint16 code2; /* */
+};
+
union wtap_pseudo_header {
struct x25_phdr x25;
struct atm_phdr atm;
struct ascend_phdr ascend;
struct p2p_phdr p2p;
struct ieee_802_11_phdr ieee_802_11;
+ struct cosine_phdr cosine;
};
struct wtap_pkthdr {