aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-11 08:04:06 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-11 08:04:06 +0000
commit58e3869bc30a028c764b828d66356f36a2413fb7 (patch)
treea3b96176056944b3d60296ccafb71de16251ce31 /xdlc.h
parentcc2b984869be598b1ec36277ce4c17551371ce22 (diff)
"XDLC_CONTROL_LEN()" actually returned the length of the entire xDLC
header, under the assumption that the address field was two octets. It should return the length of the *control* field, and leave it up to its caller to add in the length of the address field. (The address field appears to be one byte in SNA, not two bytes.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1006 f5534014-38df-0310-8fa8-9805f1628bb7
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 d79e1e0d12..8d0e2cc77e 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.8 1999/10/10 03:59:29 gram Exp $
+ * $Id: xdlc.h,v 1.9 1999/11/11 08:04:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -70,10 +70,10 @@
* This macro takes the control field of an xDLC frame, and a flag saying
* whether we're doing basic or extended operation, and evaluates to
* the length of that field (if it's an Unnumbered frame, or we're not
- * in extended mode, it's 3 bytes long, otherwise it's 4 bytes long).
+ * in extended mode, it's 1 byte long, otherwise it's 2 bytes long).
*/
#define XDLC_CONTROL_LEN(control, is_extended) \
- ((((control) & 0x3) == XDLC_U || !(is_extended)) ? 3 : 4)
+ ((((control) & 0x3) == XDLC_U || !(is_extended)) ? 1 : 2)
int get_xdlc_control(const u_char *pd, int offset, int is_response,
int extended);