aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-10-10 03:59:29 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-10-10 03:59:29 +0000
commit8cdaeb0adc3765705dd1ebfaf03f917fd8292d33 (patch)
tree415804b0a4da7d57f519eb52cdba4c9730211c10 /xdlc.h
parent8333e3b3cfac7752ac0f723e314cc20fb439abf4 (diff)
Changed the macro XDLC_HAS_PAYLOAD(control) to look at only the first
bit of 'control' to check to see if it's an information frame: #define XDLC_HAS_PAYLOAD(control) \ (((control) & 0x1) == XDLC_I || (control) == (XDLC_UI|XDLC_U)) I had erroneously AND'ed with 0x3 when I first put the AND in there. svn path=/trunk/; revision=797
Diffstat (limited to 'xdlc.h')
-rw-r--r--xdlc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xdlc.h b/xdlc.h
index bbfe418d01..d79e1e0d12 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.7 1999/09/27 13:51:54 gram Exp $
+ * $Id: xdlc.h,v 1.8 1999/10/10 03:59:29 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -64,7 +64,7 @@
* Unnumbered Information frame) and FALSE if it doesn't.
*/
#define XDLC_HAS_PAYLOAD(control) \
- (((control) & 0x3) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
+ (((control) & 0x1) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
/*
* This macro takes the control field of an xDLC frame, and a flag saying