sec_vt_header: dissect drep
authorGregor Beck <gbeck@sernet.de>
Wed, 4 Sep 2013 09:14:07 +0000 (11:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 29 Jan 2014 08:18:26 +0000 (09:18 +0100)
epan/dissectors/packet-dcerpc.c

index 4e34602c1a7be819c7bdfba810e827ba783576b7..ac4af72e9b83f930a8f20481bef086ada87f2798 100644 (file)
@@ -2909,6 +2909,7 @@ dissect_sec_vt_header(proto_tree *tree, tvbuff_t *tvb, int offset)
 {
        proto_item *ti = proto_tree_add_text(tree, tvb, offset, -1, "header2");
        proto_tree *tr = proto_item_add_subtree(ti, ett_dcerpc_sec_vt_header);
+       guint32 drep;
        guint8 ptype = tvb_get_guint8(tvb, offset);
 
        proto_tree_add_uint(tr, hf_dcerpc_packet_type, tvb, offset, 1, ptype);
@@ -2920,7 +2921,8 @@ dissect_sec_vt_header(proto_tree *tree, tvbuff_t *tvb, int offset)
        proto_tree_add_text(tr, tvb, offset, 2, "Reserved2");
        offset += 2;
 
-       proto_tree_add_text(tr, tvb, offset, 4, "drep");
+       drep = tvb_get_letohl(tvb, offset); //??? dcerpc_tvb_get_ntohl
+       proto_tree_add_dcerpc_drep(tr, tvb, offset, (guint8*)&drep, 4);
        offset += 4;
 
        proto_tree_add_text(tr, tvb, offset, 4, "call_id");