aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-20 20:27:11 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-20 20:27:11 +0000
commita02794c549553e4bf8925833f5be8e84384bbd79 (patch)
treec50585220c6bf0b68d8f22b95c65a5a9181f9d45 /xdlc.c
parent2ac6b591119f6c45af91450a816a864ab6c0986b (diff)
From Jan Kiszka: compress the summary line display.
svn path=/trunk/; revision=9758
Diffstat (limited to 'xdlc.c')
-rw-r--r--xdlc.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/xdlc.c b/xdlc.c
index f6d8864aee..885ab13fb8 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.23 2004/01/18 08:32:46 guy Exp $
+ * $Id: xdlc.c,v 1.24 2004/01/20 20:27:11 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -223,17 +223,18 @@ dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo,
}
if (is_extended) {
poll_final = (control & XDLC_P_F_EXT);
- sprintf(info, "S%s, %sN(R) = %u", frame_type,
+ sprintf(info, "S%s, func=%s, N(R)=%u", frame_type,
(poll_final ?
- (is_response ? "func = F, " : "func = P, ") :
+ (is_response ? " F" : " P") :
""),
(control & XDLC_N_R_EXT_MASK) >> XDLC_N_R_EXT_SHIFT);
} else {
poll_final = (control & XDLC_P_F);
- sprintf(info, "S%s, %sN(R) = %u", frame_type,
+ sprintf(info, "S%s, func=%s, N(R)=%u",
(poll_final ?
- (is_response ? "func = F, " : "func = P, ") :
+ (is_response ? " F" : " P") :
""),
+ frame_type,
(control & XDLC_N_R_MASK) >> XDLC_N_R_SHIFT);
}
if (check_col(pinfo->cinfo, COL_INFO)) {
@@ -292,7 +293,7 @@ dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo,
if (modifier == NULL)
modifier = "Unknown";
poll_final = (control & XDLC_P_F);
- sprintf(info, "U%s, func = %s",
+ sprintf(info, "U%s, func=%s",
(poll_final ?
(is_response ? " F" : " P") :
""),
@@ -334,7 +335,7 @@ dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo,
cf_items = cf_items_ext;
control_format = "Control field: %s (0x%04X)";
poll_final = (control & XDLC_P_F_EXT);
- sprintf(info, "I%s, N(R) = %u, N(S) = %u",
+ sprintf(info, "I%s, N(R)=%u, N(S)=%u",
((control & XDLC_P_F_EXT) ? " P" : ""),
(control & XDLC_N_R_EXT_MASK) >> XDLC_N_R_EXT_SHIFT,
(control & XDLC_N_S_EXT_MASK) >> XDLC_N_S_EXT_SHIFT);
@@ -344,7 +345,7 @@ dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo,
cf_items = cf_items_nonext;
control_format = "Control field: %s (0x%02X)";
poll_final = (control & XDLC_P_F);
- sprintf(info, "I%s, N(R) = %u, N(S) = %u",
+ sprintf(info, "I%s, N(R)=%u, N(S)=%u",
((control & XDLC_P_F) ? " P" : ""),
(control & XDLC_N_R_MASK) >> XDLC_N_R_SHIFT,
(control & XDLC_N_S_MASK) >> XDLC_N_S_SHIFT);