aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-27 08:33:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-27 08:33:26 +0000
commitb9c9fa3921b67f63cc83854fee8b4352d455e94a (patch)
tree9198af1ce9f06e1a32c163c5a2792d9ab6d6ad53 /xdlc.h
parent2db2fd635136aa484c059ef98e4b331bcf3ffcbe (diff)
When checking whether a control field is for a UI frame, you have to
check all the bits of the control field (otherwise, you're just checking whether it's a U frame). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@730 f5534014-38df-0310-8fa8-9805f1628bb7
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 878f903890..895162d658 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.5 1999/09/27 03:12:55 gram Exp $
+ * $Id: xdlc.h,v 1.6 1999/09/27 08:33:26 guy 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 & 0x3) == (XDLC_UI|XDLC_U))
+ ((control & 0x3) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
/*
* This macro takes the control field of an xDLC frame, and a flag saying