aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-nt.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-01 05:21:08 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-01 05:21:08 +0000
commitfc8dec51cec9d1e69992fb052044a3b289ceb14b (patch)
treef73a9a820caf4e6ce3b81776b77b1adcdccbedb1 /epan/dissectors/packet-dcerpc-nt.c
parentd4f5825984c733bff0fb7e4e25f61343a5d5bcf7 (diff)
Move "dissect_nt_GUID()" into "packet-dcerpc-nt.c", as it's used by the
LSA dissector as well, and declare it in "packet-dcerpc-nt.h". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13223 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dcerpc-nt.c')
-rw-r--r--epan/dissectors/packet-dcerpc-nt.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dcerpc-nt.c b/epan/dissectors/packet-dcerpc-nt.c
index 7f018fd59e..c4d32ec63e 100644
--- a/epan/dissectors/packet-dcerpc-nt.c
+++ b/epan/dissectors/packet-dcerpc-nt.c
@@ -323,6 +323,18 @@ dissect_ndr_counted_ascii_string(tvbuff_t *tvb, int offset,
tvb, offset, pinfo, tree, drep, hf_index, cb_str_postprocess, GINT_TO_POINTER(2 + levels));
}
+static int hf_nt_guid = -1;
+
+int
+dissect_nt_GUID(tvbuff_t *tvb, int offset,
+ packet_info *pinfo, proto_tree *tree,
+ guint8 *drep)
+{
+ offset=dissect_ndr_uuid_t(tvb, offset, pinfo, tree, drep, hf_nt_guid, NULL);
+
+ return offset;
+}
+
/* This function is used to dissect a DCERPC encoded 64 bit time value.
XXX it should be fixed both here and in dissect_nt_64bit_time so
it can handle both BIG and LITTLE endian encodings
@@ -1486,6 +1498,11 @@ void dcerpc_smb_init(int proto_dcerpc)
NULL, 0x0, "Length of string in short integers",
HFILL }},
+ /* GUIDs */
+ { &hf_nt_guid,
+ { "GUID", "nt.guid", FT_STRING, BASE_NONE,
+ NULL, 0x0, "GUID (uuid for groups?)", HFILL }},
+
/* Policy handles */
{ &hf_nt_policy_open_frame,