summaryrefslogtreecommitdiff
path: root/xdlc.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-24 02:05:39 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-24 02:05:39 +0000
commit05b04d0a427356685e25b2db1a55de4d6ae0e449 (patch)
tree828e68b71202bb850d46c64ad6c28440a739381d /xdlc.h
parente55dac5888a2e8c9891930286e20c7651689a97d (diff)
downloadwireshark-05b04d0a427356685e25b2db1a55de4d6ae0e449.tar.gz
xDLC frames other than I and UI frames may have a payload, e.g. TEST
frames; rename "XDLC_HAS_PAYLOAD()" to "XDLC_IS_INFORMATION()", and if the frame isn't an "information" frame, dissect its payload (if any) as data. svn path=/trunk/; revision=1528
Diffstat (limited to 'xdlc.h')
-rw-r--r--xdlc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/xdlc.h b/xdlc.h
index 152ea677b2..930eb35b8d 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.11 2000/01/07 22:05:43 guy Exp $
+ * $Id: xdlc.h,v 1.12 2000/01/24 02:05:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -60,10 +60,11 @@
/*
* This macro takes the control field of an xDLC frame, as returned by
* "get_xdlc_control()" or "dissect_xdlc_control()", and evaluates to
- * TRUE if the frame has a payload (i.e., if it's an Information or
- * Unnumbered Information frame) and FALSE if it doesn't.
+ * TRUE if the frame is an "information" frame and FALSE if it isn't.
+ * Note that frames other than information frames can have data in them,
+ * e.g. TEST frames.
*/
-#define XDLC_HAS_PAYLOAD(control) \
+#define XDLC_IS_INFORMATION(control) \
(((control) & 0x1) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
/*