diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-08-05 06:30:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-08-05 06:30:05 +0000 |
commit | d7dc4260928708469a6be81213600f63dbf0b5cc (patch) | |
tree | 675551e71d96842995481f577187a1fb4213eb15 /xdlc.c | |
parent | bbca6ac57ad750857849a4b25378489447f047de (diff) |
Patch from Olivier Abad to make it correctly display non-extended
informatino frames.
svn path=/trunk/; revision=443
Diffstat (limited to 'xdlc.c')
-rw-r--r-- | xdlc.c | 8 |
1 files changed, 5 insertions, 3 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.1 1999/08/04 04:37:46 guy Exp $ + * $Id: xdlc.c,v 1.2 1999/08/05 06:30:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -355,9 +355,11 @@ dissect_xdlc_control(const u_char *pd, int offset, frame_data *fd, col_add_str(fd, COL_INFO, info); if (xdlc_tree) { tc = proto_tree_add_item_format(xdlc_tree, hf_xdlc_control, - offset, 2, + offset, (is_extended) ? 2 : 1, frame_type, - "Control field: %s (0x%04X)", info, control); + (is_extended) ? "Control field: %s (0x%04X)" + : "Control field: %s (0x%02X)", + info, control); control_tree = proto_item_add_subtree(tc, ETT_XDLC_CONTROL); if (is_extended) { /* XXX - make it shift the value appropriately! */ |