diff options
author | David Fort <contact@hardening-consulting.com> | 2021-10-01 22:38:57 +0200 |
---|---|---|
committer | David Fort <contact@hardening-consulting.com> | 2021-10-02 11:04:03 +0200 |
commit | 7b5661dfe0bb9d8b735fecea338d1fa1d20f6a24 (patch) | |
tree | 8c48243ba5bdcb52b4d82fbf7dcc56e899f69570 /epan/dissectors | |
parent | 3841bcd82cf95b7150e1a8d435b852a28982e7d7 (diff) |
rdp: dissect close requests PDU in drdynvc channel
This patch adds the display of the corresponding channel name.
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-rdp_drdynvc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rdp_drdynvc.c b/epan/dissectors/packet-rdp_drdynvc.c index 9e936f2026..86fcf61b58 100644 --- a/epan/dissectors/packet-rdp_drdynvc.c +++ b/epan/dissectors/packet-rdp_drdynvc.c @@ -459,6 +459,16 @@ dissect_rdp_drdynvc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, } break; } + case DRDYNVC_CLOSE_REQUEST_PDU: { + drdynvc_channel_def_t *channel = drdynvc_find_channel_by_id(info, channelId); + + col_set_str(pinfo->cinfo, COL_INFO, "Close request"); + if (channel) { + proto_item *channelName = proto_tree_add_string_format_value(tree, hf_rdp_drdynvc_channelName, tvb, offset, 0, NULL, "%s", channel->name); + proto_item_set_generated(channelName); + } + break; + } default: break; } @@ -598,7 +608,7 @@ void proto_register_rdp_drdynvc(void) { { &hf_rdp_drdynvc_data, { "Data", "rdp_drdynvc.data", FT_BYTES, BASE_NONE, NULL, 0, - NULL, HFILL }} + NULL, HFILL }}, }; /* List of subtrees */ |