sec_vt_header: dissect cont_id + opnum
authorGregor Beck <gbeck@sernet.de>
Thu, 5 Sep 2013 11:12:02 +0000 (13:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 29 Jan 2014 08:18:26 +0000 (09:18 +0100)
epan/dissectors/packet-dcerpc.c

index aaf7277ff49eaf9866ca764d355f9ba8dacbcf5f..6e126bbab348b59ff4c7982fc499e49871ac7785 100644 (file)
@@ -2910,6 +2910,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, call_id;
+       guint16 cont_id, opnum;
        guint8 ptype = tvb_get_guint8(tvb, offset);
 
        proto_tree_add_uint(tr, hf_dcerpc_packet_type, tvb, offset, 1, ptype);
@@ -2930,10 +2931,14 @@ dissect_sec_vt_header(proto_tree *tree, tvbuff_t *tvb, int offset)
        proto_tree_add_uint(tr, hf_dcerpc_cn_call_id, tvb, offset, 4, call_id);
        offset += 4;
 
-       proto_tree_add_text(tr, tvb, offset, 2, "p_cont_id");
+//??? dissect_dcerpc_uint16
+       cont_id = tvb_get_letohs(tvb, offset); //??? dcerpc_tvb_get_ntohs
+       proto_tree_add_uint(tr, hf_dcerpc_cn_ctx_id, tvb, offset, 2, cont_id);
        offset += 2;
 
-       proto_tree_add_text(tr, tvb, offset, 4, "opnum");
+//??? dissect_dcerpc_uint16
+       opnum = tvb_get_letohs(tvb, offset); //??? dcerpc_tvb_get_ntohs
+       proto_tree_add_uint(tr, hf_dcerpc_opnum, tvb, offset, 2, cont_id);
        offset += 2;
 
        proto_item_set_end(ti, tvb, offset);