diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-09-27 08:33:26 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-09-27 08:33:26 +0000 |
commit | b9c9fa3921b67f63cc83854fee8b4352d455e94a (patch) | |
tree | 9198af1ce9f06e1a32c163c5a2792d9ab6d6ad53 /xdlc.h | |
parent | 2db2fd635136aa484c059ef98e4b331bcf3ffcbe (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.h | 4 |
1 files changed, 2 insertions, 2 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.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 |