diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-09-26 13:34:10 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-09-26 13:34:10 +0000 |
commit | 4536f019013d72441225816241ffddee12fefc35 (patch) | |
tree | 120704d7b00ff73cc3943bd6b6bb1bf4ff43e407 /xdlc.c | |
parent | a4ff2983086866048e3bac1f653431e37a4f046d (diff) |
Make Information Frame honor is_extended variable when reading Control.
svn path=/trunk/; revision=725
Diffstat (limited to 'xdlc.c')
-rw-r--r-- | xdlc.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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" : ""), |