svn commit: lorikeet r199 - in trunk/ethereal/plugins/pidl: .

tpot at samba.org tpot at samba.org
Sun Jan 23 11:06:12 GMT 2005


Author: tpot
Date: 2005-01-23 11:06:06 +0000 (Sun, 23 Jan 2005)
New Revision: 199

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=199

Log:
A nopull dissector for policy handle by calling the dissect_nt_policy_hnd
function from packet-dcerpc-nt.  #ifdef'ed out for the moment though.

Modified:
   trunk/ethereal/plugins/pidl/eparser.c


Changeset:
Modified: trunk/ethereal/plugins/pidl/eparser.c
===================================================================
--- trunk/ethereal/plugins/pidl/eparser.c	2005-01-21 08:25:06 UTC (rev 198)
+++ trunk/ethereal/plugins/pidl/eparser.c	2005-01-23 11:06:06 UTC (rev 199)
@@ -3,6 +3,8 @@
 #include "eparser.h"
 #include <ctype.h>
 
+#include "epan/dissectors/packet-dcerpc-nt.h"
+
 struct pidl_pull *pidl_pull_init(tvbuff_t *tvb, int offset, packet_info *pinfo,
 				 guint8 *drep)
 {
@@ -856,6 +858,22 @@
 	return NT_STATUS_OK;
 }
 
+#if 0
+
+static int hf_hnd = -1;
+
+NTSTATUS ndr_pull_policy_handle(struct pidl_pull *ndr, int ndr_flags,
+				pidl_tree *tree, struct policy_handle *data)
+{
+	ndr->offset = dissect_nt_policy_hnd(
+		ndr->tvb, ndr->offset, ndr->pinfo, tree->proto_tree, 
+		ndr->drep, hf_hnd, (e_ctx_hnd *)data, NULL, FALSE, FALSE);
+
+	return NT_STATUS_OK;
+}
+
+#endif
+
 gint hf_conformant_size = -1;
 
 void proto_register_eparser(void)
@@ -871,6 +889,15 @@
         { &hf_subcontext_size16, { "Uint16 subcontext", "eparser.subcontext16", FT_UINT16, BASE_DEC, NULL, 0x0, "Uint16 subcontext", HFILL }},
         { &hf_subcontext_size32, { "Uint32 subcontext", "eparser.subcontext32", FT_UINT32, BASE_DEC, NULL, 0x0, "Uint32 subcontext", HFILL }},
         { &hf_dom_sid2_num_auths, { "Num Auths", "eparser.num_auths", FT_UINT32, BASE_DEC, NULL, 0x0, "Num Auths", HFILL }},
+
+#if 0
+
+		{ &hf_hnd,
+		  { "Context handle", "eparser.hnd", FT_BYTES, BASE_NONE,
+		    NULL, 0x0, "Policy handle", HFILL }},
+
+#endif
+
         };
 
         static gint *ett[] = {



More information about the samba-cvs mailing list