aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-09-27 13:51:54 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-09-27 13:51:54 +0000
commita1f28feb1bdd0912215fcf79d331dff82f15640f (patch)
tree7486f5193095aea1ca0775a10ac01ac625cb9235 /xdlc.h
parent073aced0b806207a62e554a9ce239201b5a70fec (diff)
Replace the parens around 'control' in the two macros that I modified. I
accidentally removed them. svn path=/trunk/; revision=732
Diffstat (limited to 'xdlc.h')
-rw-r--r--xdlc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xdlc.h b/xdlc.h
index 895162d658..bbfe418d01 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.6 1999/09/27 08:33:26 guy Exp $
+ * $Id: xdlc.h,v 1.7 1999/09/27 13:51:54 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) & 0x3) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
/*
* This macro takes the control field of an xDLC frame, and a flag saying
@@ -73,7 +73,7 @@
* in extended mode, it's 3 bytes long, otherwise it's 4 bytes long).
*/
#define XDLC_CONTROL_LEN(control, is_extended) \
- (((control & 0x3) == XDLC_U || !(is_extended)) ? 3 : 4)
+ ((((control) & 0x3) == XDLC_U || !(is_extended)) ? 3 : 4)
int get_xdlc_control(const u_char *pd, int offset, int is_response,
int extended);