summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-dcom-remunkn.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-03-03 02:47:53 -0800
committerGuy Harris <guy@alum.mit.edu>2015-03-03 10:55:29 +0000
commit499d95964d0d19bbec7f78d6fe4461eb26c552ca (patch)
treebf926f264babd15bcbc12456a6985f5fc5969bdb /epan/dissectors/packet-dcom-remunkn.c
parenta0ce286d8d3aaa5a63f69bb03d15d2d225941169 (diff)
downloadwireshark-499d95964d0d19bbec7f78d6fe4461eb26c552ca.tar.gz
Eliminate e_uuid_t in favor of e_guid_t.
That eliminates a redundant and confusing data type, and avoids issues with one piece of code using e_uuid_t but wanting to use routines expecting an e_guid_t. Change-Id: I95e172d46d342ab40f6254300ecbd2a0530cde60 Reviewed-on: https://code.wireshark.org/review/7506 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-dcom-remunkn.c')
-rw-r--r--epan/dissectors/packet-dcom-remunkn.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/dissectors/packet-dcom-remunkn.c b/epan/dissectors/packet-dcom-remunkn.c
index efaa246c58..0e35b2d643 100644
--- a/epan/dissectors/packet-dcom-remunkn.c
+++ b/epan/dissectors/packet-dcom-remunkn.c
@@ -52,11 +52,11 @@ static gint ett_remunk_rqi_result = -1;
static gint ett_remunk = -1;
-static e_uuid_t uuid_remunk = { 0x00000131, 0x0000, 0x0000, { 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
+static e_guid_t uuid_remunk = { 0x00000131, 0x0000, 0x0000, { 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
static guint16 ver_remunk = 0;
static int proto_remunk = -1;
-static e_uuid_t ipid_remunk = { 0x00000131, 0x1234, 0x5678, { 0xCA, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
+static e_guid_t ipid_remunk = { 0x00000131, 0x1234, 0x5678, { 0xCA, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
/* There is a little bit confusion about the IRemUnknown2 interface UUIDs */
/* DCOM documentation tells us: 0x00000142 (7 methods) */
@@ -65,14 +65,14 @@ static e_uuid_t ipid_remunk = { 0x00000131, 0x1234, 0x5678, { 0xCA, 0xFE, 0x00,
/* There is some evidence, that the DCOM documentation is wrong, so using 143 for IRemUnknown2 now. */
static gint ett_remunk2 = -1;
-static e_uuid_t uuid_remunk2 = { 0x00000143, 0x0000, 0x0000, { 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
+static e_guid_t uuid_remunk2 = { 0x00000143, 0x0000, 0x0000, { 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
static guint16 ver_remunk2 = 0;
static int proto_remunk2 = -1;
typedef struct remunk_remqueryinterface_call_s {
guint iid_count;
- e_uuid_t *iids;
+ e_guid_t *iids;
} remunk_remqueryinterface_call_t;
@@ -80,12 +80,12 @@ static int
dissect_remunk_remqueryinterface_rqst(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep)
{
- e_uuid_t ipid;
+ e_guid_t ipid;
guint32 u32Refs;
guint16 u16IIDs;
guint32 u32ArraySize;
guint32 u32ItemIdx;
- e_uuid_t iid;
+ e_guid_t iid;
remunk_remqueryinterface_call_t *call;
@@ -105,9 +105,9 @@ dissect_remunk_remqueryinterface_rqst(tvbuff_t *tvb, int offset,
/* limit the allocation to a reasonable size */
if(u32ArraySize < 100) {
- call = (remunk_remqueryinterface_call_t *)wmem_alloc(wmem_file_scope(), sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_uuid_t));
+ call = (remunk_remqueryinterface_call_t *)wmem_alloc(wmem_file_scope(), sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_guid_t));
call->iid_count = u32ArraySize;
- call->iids = (e_uuid_t *) (call+1);
+ call->iids = (e_guid_t *) (call+1);
di->call_data->private_data = call;
} else {
call = NULL;
@@ -136,12 +136,12 @@ dissect_remunk_remqueryinterface_resp(tvbuff_t *tvb, int offset,
proto_tree *sub_tree;
guint32 u32HResult;
guint32 u32SubStart;
- e_uuid_t iid;
- e_uuid_t iid_null = DCERPC_UUID_NULL;
+ e_guid_t iid;
+ e_guid_t iid_null = DCERPC_UUID_NULL;
remunk_remqueryinterface_call_t *call = (remunk_remqueryinterface_call_t *)di->call_data->private_data;
guint64 oxid;
guint64 oid;
- e_uuid_t ipid;
+ e_guid_t ipid;
offset = dissect_dcom_that(tvb, offset, pinfo, tree, di, drep);
@@ -216,7 +216,7 @@ dissect_remunk_remrelease_rqst(tvbuff_t *tvb, int offset,
guint32 u32Pointer;
guint32 u32IntRefs;
guint32 u32ItemIdx;
- e_uuid_t ipid;
+ e_guid_t ipid;
guint32 u32PublicRefs;
guint32 u32PrivateRefs;
const gchar *pszFormat;
@@ -260,7 +260,7 @@ dissect_remunk_remrelease_rqst(tvbuff_t *tvb, int offset,
/* update subtree */
proto_item_append_text(sub_item, "[%u]: IPID=%s, PublicRefs=%u, PrivateRefs=%u",
u32ItemIdx,
- guids_resolve_uuid_to_str(&ipid),
+ guids_resolve_guid_to_str(&ipid),
u32PublicRefs, u32PrivateRefs);
proto_item_set_len(sub_item, offset - u32SubStart);