aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x224.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2009-08-18 00:32:11 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2009-08-18 00:32:11 +0000
commit789f97f3fa1228dbbdff64da283275954a315d91 (patch)
treefc17cd8b6be8590404f1321b296e7b2d58a655b0 /epan/dissectors/packet-x224.c
parent17466ee618fdf5d6beb84ca2933d4ce2bea8e208 (diff)
Display Microsoft's Remote Desktop Protocol (RDP) extension to the X.224
connection request that shows the session load balancing information. There appears to be more dissecting that can be done for this field, but I don't have any sample captures to test this. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29459 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-x224.c')
-rw-r--r--epan/dissectors/packet-x224.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/dissectors/packet-x224.c b/epan/dissectors/packet-x224.c
index 8d6bd59bc5..4c059215f7 100644
--- a/epan/dissectors/packet-x224.c
+++ b/epan/dissectors/packet-x224.c
@@ -43,6 +43,7 @@ static int hf_x224_code = -1;
static int hf_x224_src_ref = -1;
static int hf_x224_dst_ref = -1;
static int hf_x224_class = -1;
+static int hf_x224_rdp_rt = -1;
static int hf_x224_nr = -1;
static int hf_x224_eot = -1;
@@ -99,6 +100,7 @@ static int
dissect_x224_cr(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int offset, x224_conv_info_t *x224_info _U_)
{
guint8 class;
+ gint len, next_offset;
/*DST-REF is always 0 */
offset+=2;
@@ -112,6 +114,13 @@ dissect_x224_cr(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int off
proto_tree_add_item(tree, hf_x224_class, tvb, offset, 1, FALSE);
offset+=1;
+ if(tvb_length_remaining(tvb, offset) > 0) {
+ len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE);
+ proto_tree_add_item(tree, hf_x224_rdp_rt, tvb, offset, len,
+ FALSE);
+ offset = next_offset;
+ }
+
return offset;
}
@@ -297,6 +306,10 @@ proto_register_x224(void)
"Class", "x224.class", FT_UINT8, BASE_HEX,
VALS(class_option_vals), 0xf0, NULL, HFILL }},
+ { &hf_x224_rdp_rt, {
+ "RDP Routing Token", "x224.rdp_rt", FT_STRING, BASE_NONE, NULL, 0,
+ "Used for Remote Desktop Protocol (RDP) load balancing", HFILL }},
+
{ &hf_x224_nr, {
"NR", "x224.nr", FT_UINT8, BASE_HEX,
NULL, 0x7f, NULL, HFILL }},