From 8bb7095975a0733a67961e73922039a20adf7d01 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Fri, 30 Aug 2013 15:09:36 +0200 Subject: [PATCH] header field for sec_vt_command_length --- epan/dissectors/packet-dcerpc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c index 45844e0abc..a30b17d233 100644 --- a/epan/dissectors/packet-dcerpc.c +++ b/epan/dissectors/packet-dcerpc.c @@ -586,6 +586,7 @@ static int hf_dcerpc_sec_vt_command = -1; static int hf_dcerpc_sec_vt_command_cmd = -1; static int hf_dcerpc_sec_vt_command_end = -1; static int hf_dcerpc_sec_vt_command_must = -1; +static int hf_dcerpc_sec_vt_command_length = -1; static const int* sec_vt_command_fields[] = { &hf_dcerpc_sec_vt_command_cmd, @@ -2870,7 +2871,8 @@ dissect_verification_trailer(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, sec_vt_command_fields, ENC_LITTLE_ENDIAN); offset += 2; - proto_tree_add_text(tree, tvb, offset, 2, "length: %d", len); + proto_tree_add_item(tree, hf_dcerpc_sec_vt_command_length, tvb, + offset, 2, ENC_LITTLE_ENDIAN); offset += 2; proto_tree_add_text(tree, tvb, offset, len, "blob"); offset += len; @@ -6363,6 +6365,8 @@ proto_register_dcerpc(void) { "Cmd", "dcerpc.rpc_sec_vt.command.cmd", FT_UINT16, BASE_HEX, VALS(sec_vt_command_cmd_vals), 0x3fff, NULL, HFILL }}, { &hf_dcerpc_sec_vt_command, { "Command", "dcerpc.rpc_sec_vt.command", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL }}, + { &hf_dcerpc_sec_vt_command_length, + {"Length", "dcerpc.rpc_sec_vt.command.length", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL}}, }; static gint *ett[] = { &ett_dcerpc, -- 2.34.1