aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btl2cap.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-07-03 15:06:20 +0200
committerAnders Broman <a.broman58@gmail.com>2017-07-04 03:30:09 +0000
commit478c496d2f211f28041b5f400f1adc5c08cb39ed (patch)
tree1d09e26dba8e9fd48c129cdb8073387802e71066 /epan/dissectors/packet-btl2cap.c
parent7897f04fde3b906cd27c70483d2c61f6e7cde963 (diff)
l2cap: Show initial credits in Info column
Change-Id: I61bc005ed6f9efc31f5756452a10bbcb97a68b66 Reviewed-on: https://code.wireshark.org/review/22504 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-btl2cap.c')
-rw-r--r--epan/dissectors/packet-btl2cap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-btl2cap.c b/epan/dissectors/packet-btl2cap.c
index d1e358ebf6..c654c40b1b 100644
--- a/epan/dissectors/packet-btl2cap.c
+++ b/epan/dissectors/packet-btl2cap.c
@@ -2575,10 +2575,16 @@ dissect_btl2cap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
case 0x14: /* LE Credit Based Connection Request */
offset = dissect_le_credit_based_connrequest(tvb, offset, pinfo, btl2cap_tree, btl2cap_cmd_tree, TRUE, acl_data, l2cap_data);
+
+ col_append_fstr(pinfo->cinfo, COL_INFO, " (CID: %04x, Initial Credits: %u)",
+ tvb_get_letohs(tvb, offset - 8), tvb_get_letohs(tvb, offset - 2));
break;
case 0x15: /* LE Credit Based Connection Response */
offset = dissect_le_credit_based_connresponse(tvb, offset, pinfo, btl2cap_cmd_tree, acl_data);
+
+ col_append_fstr(pinfo->cinfo, COL_INFO, " (CID: %04x, Initial Credits: %u)",
+ tvb_get_letohs(tvb, offset - 10), tvb_get_letohs(tvb, offset - 4));
break;
case 0x16: /* LE Flow Control Credit */
@@ -2589,7 +2595,7 @@ dissect_btl2cap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
offset += 2;
col_append_fstr(pinfo->cinfo, COL_INFO, " (CID: %04x, Credits: %u)",
- tvb_get_letohs(tvb, offset - 4), tvb_get_letohs(tvb, offset - 2));
+ tvb_get_letohs(tvb, offset - 4), tvb_get_letohs(tvb, offset - 2));
break;
default: