diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-01-24 02:05:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-01-24 02:05:39 +0000 |
commit | 05b04d0a427356685e25b2db1a55de4d6ae0e449 (patch) | |
tree | 828e68b71202bb850d46c64ad6c28440a739381d /xdlc.h | |
parent | e55dac5888a2e8c9891930286e20c7651689a97d (diff) | |
download | wireshark-05b04d0a427356685e25b2db1a55de4d6ae0e449.tar.gz wireshark-05b04d0a427356685e25b2db1a55de4d6ae0e449.tar.bz2 wireshark-05b04d0a427356685e25b2db1a55de4d6ae0e449.zip |
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.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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)) /* |