diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-20 20:27:11 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-20 20:27:11 +0000 |
commit | 1c4c54427ee8c4abbe7e9b83bb3d2d386c7a473f (patch) | |
tree | c50585220c6bf0b68d8f22b95c65a5a9181f9d45 /xdlc.c | |
parent | c18e8d319c2f595f69407e86b6413e09858404d0 (diff) |
From Jan Kiszka: compress the summary line display.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9758 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'xdlc.c')
-rw-r--r-- | xdlc.c | 17 |
1 files changed, 9 insertions, 8 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.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); |