aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-08-05 06:30:05 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-08-05 06:30:05 +0000
commit29a6bb249d197cdd282f3576b9dc01e77ba94dbf (patch)
tree675551e71d96842995481f577187a1fb4213eb15 /xdlc.c
parentfd6e34bcb539b64154c8531af28bcd1679591311 (diff)
Patch from Olivier Abad to make it correctly display non-extended
informatino frames. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@443 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'xdlc.c')
-rw-r--r--xdlc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/xdlc.c b/xdlc.c
index db8c5500be..098890ada5 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.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! */