2004-12-19 16:49:34 +00:00
|
|
|
/* packet-dcom-remunkn.c
|
2004-08-13 09:47:23 +00:00
|
|
|
* Routines for the IRemUnknown interface
|
|
|
|
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-08-13 09:47:23 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-08-13 09:47:23 +00:00
|
|
|
*/
|
|
|
|
|
2004-12-19 16:49:34 +00:00
|
|
|
/* see packet-dcom.c for details about DCOM */
|
|
|
|
|
2004-08-13 09:47:23 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <epan/packet.h>
|
2013-09-13 14:14:23 +00:00
|
|
|
#include <epan/wmem/wmem.h>
|
2004-08-13 09:47:23 +00:00
|
|
|
#include "packet-dcerpc.h"
|
2004-12-19 16:49:34 +00:00
|
|
|
#include "packet-dcom.h"
|
2006-08-17 19:09:41 +00:00
|
|
|
#include "guid-utils.h"
|
2004-12-19 16:49:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
static int hf_remunk_opnum = -1;
|
|
|
|
|
2006-08-14 23:39:48 +00:00
|
|
|
|
2004-12-19 16:49:34 +00:00
|
|
|
static int hf_remunk_refs = -1;
|
|
|
|
static int hf_remunk_iids = -1;
|
|
|
|
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static int hf_remunk_flags = -1; */
|
2004-12-19 16:49:34 +00:00
|
|
|
static int hf_remunk_qiresult = -1;
|
|
|
|
|
|
|
|
static gint ett_remunk_reminterfaceref = -1;
|
|
|
|
static int hf_remunk_reminterfaceref = -1;
|
|
|
|
static int hf_remunk_interface_refs = -1;
|
|
|
|
static int hf_remunk_public_refs = -1;
|
|
|
|
static int hf_remunk_private_refs = -1;
|
|
|
|
|
|
|
|
|
|
|
|
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 guint16 ver_remunk = 0;
|
|
|
|
static int proto_remunk = -1;
|
|
|
|
|
2006-08-17 19:09:41 +00:00
|
|
|
static e_uuid_t ipid_remunk = { 0x00000131, 0x1234, 0x5678, { 0xCA, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
|
|
|
|
|
2004-12-19 16:49:34 +00:00
|
|
|
/* There is a little bit confusion about the IRemUnknown2 interface UUIDs */
|
|
|
|
/* DCOM documentation tells us: 0x00000142 (7 methods) */
|
|
|
|
/* win2000 registry tells us: 0x00000142 IRemoteQI (4 methods) */
|
|
|
|
/* win2000 registry tells us: 0x00000143 IRemUnknown2 (7 methods) */
|
2005-05-24 20:01:08 +00:00
|
|
|
/* There is some evidence, that the DCOM documentation is wrong, so using 143 for IRemUnknown2 now. */
|
2004-12-19 16:49:34 +00:00
|
|
|
|
|
|
|
static gint ett_remunk2 = -1;
|
2005-05-24 20:01:08 +00:00
|
|
|
static e_uuid_t uuid_remunk2 = { 0x00000143, 0x0000, 0x0000, { 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 } };
|
2004-12-19 16:49:34 +00:00
|
|
|
static guint16 ver_remunk2 = 0;
|
|
|
|
static int proto_remunk2 = -1;
|
|
|
|
|
|
|
|
|
2006-08-11 19:15:12 +00:00
|
|
|
typedef struct remunk_remqueryinterface_call_s {
|
2010-05-10 15:54:57 +00:00
|
|
|
guint iid_count;
|
2006-08-11 19:15:12 +00:00
|
|
|
e_uuid_t *iids;
|
|
|
|
} remunk_remqueryinterface_call_t;
|
|
|
|
|
2004-12-19 16:49:34 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_remunk_remqueryinterface_rqst(tvbuff_t *tvb, int offset,
|
2013-11-06 14:31:29 +00:00
|
|
|
packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep)
|
2004-12-19 16:49:34 +00:00
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
e_uuid_t ipid;
|
|
|
|
guint32 u32Refs;
|
|
|
|
guint16 u16IIDs;
|
|
|
|
guint32 u32ArraySize;
|
|
|
|
guint32 u32ItemIdx;
|
|
|
|
e_uuid_t iid;
|
|
|
|
remunk_remqueryinterface_call_t *call;
|
2004-12-19 16:49:34 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_this(tvb, offset, pinfo, tree, di, drep);
|
2005-01-24 19:30:07 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_UUID(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_dcom_ipid, &ipid);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_remunk_refs, &u32Refs);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_remunk_iids, &u16IIDs);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
&u32ArraySize);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2006-08-11 19:15:12 +00:00
|
|
|
/* limit the allocation to a reasonable size */
|
|
|
|
if(u32ArraySize < 100) {
|
2013-09-13 14:14:23 +00:00
|
|
|
call = (remunk_remqueryinterface_call_t *)wmem_alloc(wmem_file_scope(), sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_uuid_t));
|
2010-05-10 15:54:57 +00:00
|
|
|
call->iid_count = u32ArraySize;
|
|
|
|
call->iids = (e_uuid_t *) (call+1);
|
2013-11-06 14:31:29 +00:00
|
|
|
di->call_data->private_data = call;
|
2006-08-11 19:15:12 +00:00
|
|
|
} else {
|
|
|
|
call = NULL;
|
|
|
|
}
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
for (u32ItemIdx = 0; u32ArraySize--; u32ItemIdx++) {
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_append_UUID(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_dcom_iid, u32ItemIdx+1, &iid);
|
2006-08-11 19:15:12 +00:00
|
|
|
if(call != NULL) {
|
2010-05-10 15:54:57 +00:00
|
|
|
call->iids[u32ItemIdx] = iid;
|
2006-08-11 19:15:12 +00:00
|
|
|
}
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
return offset;
|
2004-12-19 16:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_remunk_remqueryinterface_resp(tvbuff_t *tvb, int offset,
|
2013-11-06 14:31:29 +00:00
|
|
|
packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep)
|
2004-12-19 16:49:34 +00:00
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
guint32 u32Pointer;
|
|
|
|
guint32 u32ArraySize;
|
|
|
|
guint32 u32ItemIdx;
|
|
|
|
proto_item *sub_item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
guint32 u32HResult;
|
|
|
|
guint32 u32SubStart;
|
|
|
|
e_uuid_t iid;
|
|
|
|
e_uuid_t iid_null = DCERPC_UUID_NULL;
|
2013-11-06 14:31:29 +00:00
|
|
|
remunk_remqueryinterface_call_t *call = (remunk_remqueryinterface_call_t *)di->call_data->private_data;
|
2010-05-10 15:54:57 +00:00
|
|
|
guint64 oxid;
|
|
|
|
guint64 oid;
|
|
|
|
e_uuid_t ipid;
|
2004-12-19 16:49:34 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_that(tvb, offset, pinfo, tree, di, drep);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
&u32Pointer);
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
&u32ArraySize);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
u32ItemIdx = 1;
|
|
|
|
while (u32ArraySize--) {
|
|
|
|
/* add subtree */
|
2011-10-04 22:44:31 +00:00
|
|
|
sub_item = proto_tree_add_item(tree, hf_remunk_qiresult, tvb, offset, 0, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
sub_tree = proto_item_add_subtree(sub_item, ett_remunk_rqi_result);
|
|
|
|
|
|
|
|
/* REMQIRESULT */
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, sub_tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
&u32HResult);
|
|
|
|
u32SubStart = offset - 4;
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, sub_tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
&u32Pointer);
|
|
|
|
|
|
|
|
/* try to read the iid from the request */
|
|
|
|
if(call != NULL && u32ItemIdx <= call->iid_count) {
|
|
|
|
iid = call->iids[u32ItemIdx-1];
|
|
|
|
} else {
|
|
|
|
iid = iid_null;
|
|
|
|
}
|
2004-08-13 09:47:23 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* XXX - this doesn't seem to be dependent on the pointer above?!? */
|
|
|
|
/*if (u32Pointer) {*/
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_STDOBJREF(tvb, offset, pinfo, sub_tree, di, drep, 0 /* hfindex */,
|
2010-05-10 15:54:57 +00:00
|
|
|
&oxid, &oid, &ipid);
|
|
|
|
/*}*/
|
2006-08-11 19:15:12 +00:00
|
|
|
|
|
|
|
/* add interface instance to database (we currently only handle IPv4) */
|
|
|
|
if(pinfo->net_src.type == AT_IPv4) {
|
2011-05-20 20:29:19 +00:00
|
|
|
dcom_interface_new(pinfo,
|
2013-03-19 20:00:52 +00:00
|
|
|
(guint8 *)pinfo->net_src.data,
|
2011-05-20 20:29:19 +00:00
|
|
|
&iid, oxid, oid, &ipid);
|
2006-08-11 19:15:12 +00:00
|
|
|
}
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* update subtree */
|
|
|
|
proto_item_append_text(sub_item, "[%u]: %s",
|
|
|
|
u32ItemIdx,
|
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
|
|
|
proto_item_set_len(sub_item, offset - u32SubStart);
|
|
|
|
|
|
|
|
/* update column info now */
|
2011-09-26 11:33:10 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " %s[%u]",
|
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)"),
|
|
|
|
u32ItemIdx);
|
2010-05-10 15:54:57 +00:00
|
|
|
u32ItemIdx++;
|
|
|
|
}
|
2006-08-11 19:15:12 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* HRESULT of call */
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
&u32HResult);
|
2004-08-13 09:47:23 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* update column info now */
|
2011-09-26 11:33:10 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)"));
|
2004-08-13 09:47:23 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
return offset;
|
2004-12-19 16:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_remunk_remrelease_rqst(tvbuff_t *tvb, int offset,
|
2013-11-06 14:31:29 +00:00
|
|
|
packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep)
|
2004-12-19 16:49:34 +00:00
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
guint32 u32Pointer;
|
|
|
|
guint32 u32IntRefs;
|
|
|
|
guint32 u32ItemIdx;
|
|
|
|
e_uuid_t ipid;
|
|
|
|
guint32 u32PublicRefs;
|
|
|
|
guint32 u32PrivateRefs;
|
|
|
|
const gchar *pszFormat;
|
|
|
|
proto_item *sub_item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
guint32 u32SubStart;
|
2004-12-19 16:49:34 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_this(tvb, offset, pinfo, tree, di, drep);
|
2005-01-24 19:30:07 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
&u32Pointer);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_remunk_interface_refs, &u32IntRefs);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* update column info now */
|
2011-09-26 11:33:10 +00:00
|
|
|
if (u32IntRefs) {
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " Cnt=%u Refs=", u32IntRefs);
|
|
|
|
} else {
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, " Cnt=0");
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
|
2011-09-26 11:33:10 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
u32ItemIdx = 1;
|
|
|
|
while (u32IntRefs--) {
|
2004-12-19 16:49:34 +00:00
|
|
|
/* add subtree */
|
2011-10-04 22:44:31 +00:00
|
|
|
sub_item = proto_tree_add_item(tree, hf_remunk_reminterfaceref, tvb, offset, 0, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
sub_tree = proto_item_add_subtree(sub_item, ett_remunk_reminterfaceref);
|
|
|
|
u32SubStart = offset;
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_UUID(tvb, offset, pinfo, sub_tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_dcom_ipid, &ipid);
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_DWORD(tvb, offset, pinfo, sub_tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_remunk_public_refs, &u32PublicRefs);
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_DWORD(tvb, offset, pinfo, sub_tree, di, drep,
|
2010-05-10 15:54:57 +00:00
|
|
|
hf_remunk_private_refs, &u32PrivateRefs);
|
|
|
|
|
|
|
|
/* update subtree */
|
|
|
|
proto_item_append_text(sub_item, "[%u]: IPID=%s, PublicRefs=%u, PrivateRefs=%u",
|
|
|
|
u32ItemIdx,
|
|
|
|
guids_resolve_uuid_to_str(&ipid),
|
|
|
|
u32PublicRefs, u32PrivateRefs);
|
|
|
|
proto_item_set_len(sub_item, offset - u32SubStart);
|
|
|
|
|
|
|
|
/* update column info now */
|
2011-09-26 11:33:10 +00:00
|
|
|
pszFormat = "";
|
|
|
|
if (u32ItemIdx == 1) {
|
|
|
|
pszFormat = "%u-%u";
|
|
|
|
} else if (u32ItemIdx < 10) {
|
|
|
|
pszFormat = ",%u-%u";
|
|
|
|
} else if (u32ItemIdx == 10) {
|
|
|
|
pszFormat = ",...";
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
2011-09-26 11:33:10 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, pszFormat, u32PublicRefs, u32PrivateRefs);
|
2013-09-13 14:14:23 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
u32ItemIdx++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return offset;
|
2004-12-19 16:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* sub dissector table of IRemUnknown interface */
|
|
|
|
static dcerpc_sub_dissector remunk_dissectors[] = {
|
|
|
|
{ 0, "QueryInterface", NULL, NULL },
|
|
|
|
{ 1, "AddRef", NULL, NULL },
|
|
|
|
{ 2, "Release", NULL, NULL },
|
|
|
|
|
|
|
|
{ 3, "RemQueryInterface", dissect_remunk_remqueryinterface_rqst, dissect_remunk_remqueryinterface_resp },
|
2010-05-10 15:54:57 +00:00
|
|
|
{ 4, "RemAddRef", NULL, NULL },
|
2004-12-19 16:49:34 +00:00
|
|
|
{ 5, "RemRelease", dissect_remunk_remrelease_rqst, dissect_dcom_simple_resp },
|
|
|
|
{ 0, NULL, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
/* sub dissector table of IRemUnknown2 interface */
|
|
|
|
static dcerpc_sub_dissector remunk2_dissectors[] = {
|
|
|
|
{ 0, "QueryInterface", NULL, NULL },
|
|
|
|
{ 1, "AddRef", NULL, NULL },
|
|
|
|
{ 2, "Release", NULL, NULL },
|
|
|
|
|
|
|
|
{ 3, "RemQueryInterface", dissect_remunk_remqueryinterface_rqst, dissect_remunk_remqueryinterface_resp },
|
2010-05-10 15:54:57 +00:00
|
|
|
{ 4, "RemAddRef", NULL, NULL },
|
2004-12-19 16:49:34 +00:00
|
|
|
{ 5, "RemRelease", dissect_remunk_remrelease_rqst, dissect_dcom_simple_resp },
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
{ 6, "RemQueryInterface2", NULL, NULL },
|
2004-12-19 16:49:34 +00:00
|
|
|
{ 0, NULL, NULL, NULL }
|
2004-08-13 09:47:23 +00:00
|
|
|
};
|
|
|
|
|
2004-12-19 16:49:34 +00:00
|
|
|
|
|
|
|
|
2004-08-13 09:47:23 +00:00
|
|
|
void
|
2004-12-19 16:49:34 +00:00
|
|
|
proto_register_remunk (void)
|
2004-08-13 09:47:23 +00:00
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
static hf_register_info hf_remunk_rqi_array[] = {
|
2004-12-19 16:49:34 +00:00
|
|
|
{ &hf_remunk_opnum,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "Operation", "remunk.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
{ &hf_remunk_refs,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "Refs", "remunk.refs", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_remunk_iids,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "IIDs", "remunk.iids", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_remunk_qiresult,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "QIResult", "remunk.qiresult", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_remunk_flags,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "Flags", "remunk.flags", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_remunk_public_refs,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "PublicRefs", "remunk.public_refs", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_remunk_reminterfaceref,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "RemInterfaceRef", "remunk.reminterfaceref", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_remunk_interface_refs,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "InterfaceRefs", "remunk.int_refs", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_remunk_private_refs,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "PrivateRefs", "remunk.private_refs", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }}
|
2010-05-10 15:54:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static gint *ett_remunk_array[] = {
|
|
|
|
&ett_remunk,
|
|
|
|
&ett_remunk_rqi_result,
|
|
|
|
&ett_remunk2,
|
|
|
|
&ett_remunk_reminterfaceref
|
|
|
|
};
|
|
|
|
|
|
|
|
proto_remunk = proto_register_protocol ("IRemUnknown", "IRemUnknown", "remunk");
|
|
|
|
proto_register_field_array (proto_remunk, hf_remunk_rqi_array, array_length (hf_remunk_rqi_array));
|
|
|
|
|
|
|
|
proto_remunk2 = proto_register_protocol ("IRemUnknown2", "IRemUnknown2", "remunk2");
|
|
|
|
|
|
|
|
proto_register_subtree_array (ett_remunk_array, array_length (ett_remunk_array));
|
2004-08-13 09:47:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2004-12-19 16:49:34 +00:00
|
|
|
proto_reg_handoff_remunk (void)
|
2004-08-13 09:47:23 +00:00
|
|
|
{
|
2006-08-17 19:09:41 +00:00
|
|
|
|
|
|
|
/* Register the IPID */
|
|
|
|
guids_add_uuid(&ipid_remunk, "IPID-IRemUnknown");
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Register the interfaces */
|
|
|
|
dcerpc_init_uuid(proto_remunk, ett_remunk,
|
|
|
|
&uuid_remunk, ver_remunk,
|
|
|
|
remunk_dissectors, hf_remunk_opnum);
|
2004-12-19 16:49:34 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
dcerpc_init_uuid(proto_remunk2, ett_remunk2,
|
|
|
|
&uuid_remunk2, ver_remunk2,
|
|
|
|
remunk2_dissectors, hf_remunk_opnum);
|
2004-08-13 09:47:23 +00:00
|
|
|
}
|