aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-23 22:47:13 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-23 22:47:13 +0000
commit397b2be709acf1afba6ec8455d4096ff54dab2b7 (patch)
tree86a97861f770195320f784b948fc6b3b6860efcb /xdlc.h
parent42aba512c6d1972243b938dc181d5229e42b87f0 (diff)
The only LLC frame types that should be dissected based on their SAP or,
if the SAPs are SNAP, based on their ethertype are I frames and UI frames; others don't have payload to be dissected as belonging to other protocols. svn path=/trunk/; revision=555
Diffstat (limited to 'xdlc.h')
-rw-r--r--xdlc.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/xdlc.h b/xdlc.h
index cbc699a37b..3f2bc0e8bf 100644
--- a/xdlc.h
+++ b/xdlc.h
@@ -2,7 +2,7 @@
* Define *DLC frame types, and routine to dissect the control field of
* a *DLC frame.
*
- * $Id: xdlc.h,v 1.1 1999/08/04 04:37:46 guy Exp $
+ * $Id: xdlc.h,v 1.2 1999/08/23 22:47:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -32,5 +32,33 @@
#define XDLC_S 0x01 /* Supervisory frames */
#define XDLC_U 0x03 /* Unnumbered frames */
+/*
+ * U-format modifiers.
+ */
+#define XDLC_U_MODIFIER_MASK 0xEC
+#define XDLC_UI 0x00 /* Unnumbered Information */
+#define XDLC_UP 0x20 /* Unnumbered Poll */
+#define XDLC_DISC 0x40 /* Disconnect (command) */
+#define XDLC_RD 0x40 /* Request Disconnect (response) */
+#define XDLC_UA 0x60 /* Unnumbered Acknowledge */
+#define XDLC_SNRM 0x80 /* Set Normal Response Mode */
+#define XDLC_TEST 0xC0 /* Test */
+#define XDLC_SIM 0x04 /* Set Initialization Mode (command) */
+#define XDLC_RIM 0x04 /* Request Initialization Mode (response) */
+#define XDLC_FRMR 0x84 /* Frame reject */
+#define XDLC_CFGR 0xC4 /* Configure */
+#define XDLC_SARM 0x0C /* Set Asynchronous Response Mode (command) */
+#define XDLC_DM 0x0C /* Disconnected mode (response) */
+#define XDLC_SABM 0x2C /* Set Asynchronous Balanced Mode */
+#define XDLC_SARME 0x4C /* Set Asynchronous Response Mode Extended */
+#define XDLC_SABME 0x6C /* Set Asynchronous Balanced Mode Extended */
+#define XDLC_RESET 0x8C /* Reset */
+#define XDLC_XID 0xAC /* Exchange identification */
+#define XDLC_SNRME 0xCC /* Set Normal Response Mode Extended */
+#define XDLC_BCN 0xEC /* Beacon */
+
+int get_xdlc_control(const u_char *pd, int offset, int is_response,
+ int extended);
+
int dissect_xdlc_control(const u_char *pd, int offset, frame_data *fd,
proto_tree *xdlc_tree, int hf_xdlc_control, int is_response, int extended);