aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-31 07:12:42 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-31 07:12:42 +0000
commit56f644145e0a4299a10099738fb74e1a08cd6fbd (patch)
tree7e11961398633886725fb3b33b3a254666a04af2 /wiretap/wtap.h
parent663bc2174e185804d1aa41c664a27ff6093a131d (diff)
Discard the WTAP_ENCAP_LAPD encapsulation type in favor of a
WTAP_ENCAP_ISDN encapsulation type, which includes a pseudo-header giving the direction (user-to-network or network-to-user) and the channel number. Add a new circuit type, using the ISDN channel number as the circuit ID. Add an ISDN dissector to put the direction and channel number into the protocol tree and to call the appropriate dissector for the payload based on the channel (LAPD for the D channel; V.120, PPP, or data for B channels, based on some heuristics). svn path=/trunk/; revision=6521
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 3969739d2f..ebbd73790d 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1,6 +1,6 @@
/* wtap.h
*
- * $Id: wtap.h,v 1.123 2002/10/22 09:11:13 guy Exp $
+ * $Id: wtap.h,v 1.124 2002/10/31 07:12:42 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -104,8 +104,8 @@
#define WTAP_ENCAP_ATM_SNIFFER 12
#define WTAP_ENCAP_NULL 13
#define WTAP_ENCAP_ASCEND 14
-#define WTAP_ENCAP_LAPD 15
-#define WTAP_ENCAP_V120 16
+#define WTAP_ENCAP_ISDN 15
+#define WTAP_ENCAP_IP_OVER_FC 16
#define WTAP_ENCAP_PPP_WITH_PHDR 17
#define WTAP_ENCAP_IEEE_802_11 18
#define WTAP_ENCAP_IEEE_802_11_WITH_RADIO 19
@@ -119,10 +119,9 @@
#define WTAP_ENCAP_HHDLC 27
#define WTAP_ENCAP_DOCSIS 28
#define WTAP_ENCAP_COSINE 29
-#define WTAP_ENCAP_IP_OVER_FC 30
/* last WTAP_ENCAP_ value + 1 */
-#define WTAP_NUM_ENCAP_TYPES 31
+#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
@@ -191,6 +190,14 @@ struct x25_phdr {
guint8 flags; /* ENCAP_LAPB, ENCAP_V120 : 1st bit means From DCE */
};
+/* Packet "pseudo-header" information for ISDN capture files. */
+
+/* Direction */
+struct isdn_phdr {
+ gboolean uton;
+ guint8 channel; /* 0 = D-channel; n = B-channel n */
+};
+
/* Packet "pseudo-header" for ATM capture files.
Not all of this information is supplied by all capture types. */
@@ -328,6 +335,7 @@ struct cosine_phdr {
union wtap_pseudo_header {
struct x25_phdr x25;
+ struct isdn_phdr isdn;
struct atm_phdr atm;
struct ascend_phdr ascend;
struct p2p_phdr p2p;