aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-09-26 13:34:10 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-09-26 13:34:10 +0000
commit4536f019013d72441225816241ffddee12fefc35 (patch)
tree120704d7b00ff73cc3943bd6b6bb1bf4ff43e407
parenta4ff2983086866048e3bac1f653431e37a4f046d (diff)
Make Information Frame honor is_extended variable when reading Control.
svn path=/trunk/; revision=725
-rw-r--r--xdlc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xdlc.c b/xdlc.c
index b2a9fabf78..e0203a602e 100644
--- a/xdlc.c
+++ b/xdlc.c
@@ -2,7 +2,7 @@
* Routines for use by various SDLC-derived protocols, such as HDLC
* and its derivatives LAPB, IEEE 802.2 LLC, etc..
*
- * $Id: xdlc.c,v 1.7 1999/08/27 18:02:41 guy Exp $
+ * $Id: xdlc.c,v 1.8 1999/09/26 13:34:10 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -385,7 +385,10 @@ dissect_xdlc_control(const u_char *pd, int offset, frame_data *fd,
/*
* Information frame.
*/
- control = pd[offset];
+ if (is_extended)
+ control = pletohs(&pd[offset]);
+ else
+ control = pd[offset];
if (is_extended) {
sprintf(info, "I%s, N(R) = %u, N(S) = %u",
((control & XDLC_P_F_EXT) ? " P" : ""),