2004-12-19 16:30:25 +00:00
|
|
|
/* packet-dcom-oxid.c
|
2001-07-11 01:25:45 +00:00
|
|
|
* Routines for DCOM OXID Resolver
|
|
|
|
* Copyright 2001, Todd Sabin <tas@webspan.net>
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2001-07-11 01:25:45 +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.
|
2001-07-11 01:25:45 +00:00
|
|
|
*/
|
|
|
|
|
2004-12-19 16:30:25 +00:00
|
|
|
/* see packet-dcom.c for details about DCOM */
|
|
|
|
|
2001-07-11 01:25:45 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2002-01-21 07:37:49 +00:00
|
|
|
#include <epan/packet.h>
|
2001-07-11 01:25:45 +00:00
|
|
|
#include "packet-dcerpc.h"
|
2004-12-19 16:13:05 +00:00
|
|
|
#include "packet-dcom.h"
|
2001-07-11 01:25:45 +00:00
|
|
|
|
2013-12-15 23:44:12 +00:00
|
|
|
void proto_register_oxid(void);
|
|
|
|
void proto_reg_handoff_oxid(void);
|
|
|
|
|
2001-07-11 01:25:45 +00:00
|
|
|
static int proto_oxid = -1;
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
static int hf_oxid_opnum = -1;
|
|
|
|
static int hf_oxid_setid = -1;
|
|
|
|
static int hf_oxid_seqnum = -1;
|
|
|
|
static int hf_oxid_addtoset = -1;
|
|
|
|
static int hf_oxid_delfromset = -1;
|
|
|
|
static int hf_oxid_oid = -1;
|
|
|
|
static int hf_oxid_ping_backoff_factor = -1;
|
|
|
|
static int hf_oxid_oxid = -1;
|
|
|
|
static int hf_oxid_requested_protseqs = -1;
|
|
|
|
static int hf_oxid_protseqs = -1;
|
|
|
|
static int hf_oxid_bindings = -1;
|
|
|
|
static int hf_oxid_ipid = -1;
|
|
|
|
static int hf_oxid_authn_hint = -1;
|
|
|
|
|
|
|
|
static int hf_oxid_Unknown1 = -1;
|
|
|
|
static int hf_oxid_Unknown2 = -1;
|
|
|
|
static int hf_oxid_ds_array = -1;
|
|
|
|
|
2003-06-26 04:30:31 +00:00
|
|
|
|
2001-07-11 01:25:45 +00:00
|
|
|
static gint ett_oxid = -1;
|
|
|
|
|
2015-03-03 10:47:53 +00:00
|
|
|
static e_guid_t uuid_oxid = { 0x99fcfec4, 0x5260, 0x101b, { 0xbb, 0xcb, 0x00, 0xaa, 0x00, 0x21, 0x34, 0x7a } };
|
2001-07-11 01:25:45 +00:00
|
|
|
static guint16 ver_oxid = 0;
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_oxid_simple_ping_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:13:05 +00:00
|
|
|
{
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_setid, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
return offset;
|
2004-12-19 16:13:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_oxid_simple_ping_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:13:05 +00:00
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
guint32 u32HResult;
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32HResult);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2011-09-26 11:33:10 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
2012-04-26 16:05:05 +00:00
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
return offset;
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2005-05-24 19:57:37 +00:00
|
|
|
static int
|
|
|
|
dissect_oxid_server_alive_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)
|
2005-05-24 19:57:37 +00:00
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
guint32 u32HResult;
|
2005-05-24 19:57:37 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32HResult);
|
2005-05-24 19:57:37 +00:00
|
|
|
|
2011-09-26 11:33:10 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
2012-04-26 16:05:05 +00:00
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
2005-05-24 19:57:37 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
return offset;
|
2005-05-24 19:57:37 +00:00
|
|
|
}
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_oxid_complex_ping_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:13:05 +00:00
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
guint16 u16SeqNum;
|
|
|
|
guint16 u16AddToSet;
|
|
|
|
guint16 u16DelFromSet;
|
|
|
|
guint32 u32Pointer;
|
|
|
|
guint32 u32ArraySize;
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_setid, NULL);
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_seqnum, &u16SeqNum);
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_addtoset, &u16AddToSet);
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_delfromset, &u16DelFromSet);
|
|
|
|
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " AddToSet=%u DelFromSet=%u",
|
|
|
|
u16AddToSet, u16DelFromSet);
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32Pointer);
|
|
|
|
if (u32Pointer) {
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32ArraySize);
|
|
|
|
|
|
|
|
while (u16AddToSet--) {
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_oid, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32Pointer);
|
2005-01-18 20:44:11 +00:00
|
|
|
if (u32Pointer) {
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32ArraySize);
|
2005-01-18 20:44:11 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
while (u16DelFromSet--) {
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_oid, NULL);
|
|
|
|
}
|
|
|
|
}
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
return offset;
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_oxid_complex_ping_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:13:05 +00:00
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
guint16 u16PingBackoffFactor;
|
|
|
|
guint32 u32HResult;
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_setid, NULL);
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_ping_backoff_factor, &u16PingBackoffFactor);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32HResult);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2011-09-26 11:33:10 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
2012-04-26 16:05:05 +00:00
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
return offset;
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2003-09-24 08:05:50 +00:00
|
|
|
static int
|
2004-12-19 16:13:05 +00:00
|
|
|
dissect_oxid_resolve_oxid2_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:13:05 +00:00
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
guint16 u16ProtSeqs;
|
|
|
|
guint32 u32ArraySize;
|
|
|
|
guint32 u32ItemIdx;
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_oxid, NULL);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, di, drep,
|
2004-12-19 16:13:05 +00:00
|
|
|
hf_oxid_requested_protseqs, &u16ProtSeqs);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32ArraySize);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
u32ItemIdx = 1;
|
|
|
|
while (u32ArraySize--) {
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_protseqs, &u16ProtSeqs);
|
|
|
|
u32ItemIdx++;
|
|
|
|
}
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
return offset;
|
2004-12-19 16:13:05 +00:00
|
|
|
}
|
2003-09-24 08:05:50 +00:00
|
|
|
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
static int
|
|
|
|
dissect_oxid_resolve_oxid2_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:13:05 +00:00
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
guint32 u32Pointer;
|
|
|
|
guint32 u32ArraySize;
|
2015-03-03 10:47:53 +00:00
|
|
|
e_guid_t ipid;
|
2012-04-26 16:05:05 +00:00
|
|
|
guint32 u32AuthnHint;
|
|
|
|
guint16 u16VersionMajor;
|
|
|
|
guint16 u16VersionMinor;
|
|
|
|
guint32 u32HResult;
|
2003-09-24 08:05:50 +00:00
|
|
|
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32Pointer);
|
|
|
|
if (u32Pointer) {
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32ArraySize);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_DUALSTRINGARRAY(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_bindings, NULL);
|
2010-10-06 21:51:07 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_UUID(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_ipid, &ipid);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
hf_oxid_authn_hint, &u32AuthnHint);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_COMVERSION(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u16VersionMajor, &u16VersionMinor);
|
|
|
|
}
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, di, drep,
|
2012-04-26 16:05:05 +00:00
|
|
|
&u32HResult);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2011-09-26 11:33:10 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
2012-04-26 16:05:05 +00:00
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2012-04-26 16:05:05 +00:00
|
|
|
return offset;
|
2004-12-19 16:13:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2010-10-06 21:51:07 +00:00
|
|
|
dissect_oxid_server_alive2_resp(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
2013-11-06 14:31:29 +00:00
|
|
|
proto_tree *tree, dcerpc_info *di, guint8 *drep) {
|
2012-04-26 16:05:05 +00:00
|
|
|
guint16 u16VersionMajor;
|
2004-12-19 16:13:05 +00:00
|
|
|
guint16 u16VersionMinor;
|
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_COMVERSION(tvb, offset, pinfo, tree, di, drep, &u16VersionMajor, &u16VersionMinor);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
/* XXX - understand what those 8 bytes mean! don't skip'em!*/
|
2014-09-19 02:40:49 +00:00
|
|
|
dissect_dcerpc_uint64(tvb, offset, pinfo, tree, di, drep, hf_oxid_Unknown1, NULL);
|
2005-01-29 20:39:14 +00:00
|
|
|
offset += 8;
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2013-11-06 14:31:29 +00:00
|
|
|
offset = dissect_dcom_DUALSTRINGARRAY(tvb, offset, pinfo, tree, di, drep, hf_oxid_ds_array, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
/* unknown field 2 */
|
2014-09-19 02:40:49 +00:00
|
|
|
dissect_dcerpc_uint64(tvb, offset, pinfo, tree, di, drep, hf_oxid_Unknown2, NULL);
|
2005-01-29 20:39:14 +00:00
|
|
|
offset += 8;
|
|
|
|
return offset;
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
/* XXX - some dissectors still need to be done */
|
2001-07-11 01:25:45 +00:00
|
|
|
static dcerpc_sub_dissector oxid_dissectors[] = {
|
|
|
|
{ 0, "ResolveOxid", NULL, NULL },
|
2004-12-19 16:13:05 +00:00
|
|
|
{ 1, "SimplePing", dissect_oxid_simple_ping_rqst, dissect_oxid_simple_ping_resp },
|
|
|
|
{ 2, "ComplexPing", dissect_oxid_complex_ping_rqst, dissect_oxid_complex_ping_resp },
|
2005-05-24 19:57:37 +00:00
|
|
|
{ 3, "ServerAlive", NULL /* no input parameters */, dissect_oxid_server_alive_resp },
|
2004-12-19 16:13:05 +00:00
|
|
|
{ 4, "ResolveOxid2", dissect_oxid_resolve_oxid2_rqst, dissect_oxid_resolve_oxid2_resp },
|
|
|
|
{ 5, "ServerAlive2", NULL, dissect_oxid_server_alive2_resp },
|
2001-07-11 01:25:45 +00:00
|
|
|
{ 0, NULL, NULL, NULL },
|
|
|
|
};
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2001-07-11 01:25:45 +00:00
|
|
|
void
|
|
|
|
proto_register_oxid (void)
|
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_oxid_opnum,
|
|
|
|
{ "Operation", "oxid.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
|
|
|
|
{ &hf_oxid_setid,
|
|
|
|
{ "SetId", "oxid.setid", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_seqnum,
|
|
|
|
{ "SeqNum", "oxid.seqnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_addtoset,
|
|
|
|
{ "AddToSet", "oxid.addtoset", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_delfromset,
|
|
|
|
{ "DelFromSet", "oxid.delfromset", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_oid,
|
|
|
|
{ "OID", "oxid.oid", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_ping_backoff_factor,
|
|
|
|
{ "PingBackoffFactor", "oxid.ping_backoff_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_oxid,
|
|
|
|
{ "OXID", "oxid.oxid", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
|
|
|
|
|
{ &hf_oxid_requested_protseqs,
|
|
|
|
{ "RequestedProtSeq", "oxid.requested_protseqs", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_protseqs,
|
|
|
|
{ "ProtSeq", "oxid.protseqs", FT_UINT16, BASE_DEC, VALS(dcom_protseq_vals), 0x0, NULL, HFILL }},
|
|
|
|
|
|
|
|
{ &hf_oxid_bindings,
|
|
|
|
{ "OxidBindings", "oxid.bindings", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_ipid,
|
|
|
|
{ "IPID", "oxid.ipid", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_authn_hint,
|
|
|
|
{ "AuthnHint", "oxid.authn_hint", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
|
|
|
|
{ &hf_oxid_ds_array,
|
|
|
|
{ "Address", "dcom.oxid.address", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_Unknown1,
|
|
|
|
{ "unknown 8 bytes 1", "oxid.unknown1", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_oxid_Unknown2,
|
2010-10-06 21:51:07 +00:00
|
|
|
{ "unknown 8 bytes 2", "oxid.unknown2", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }}
|
2012-04-26 16:05:05 +00:00
|
|
|
};
|
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_oxid
|
|
|
|
};
|
|
|
|
proto_oxid = proto_register_protocol ("DCOM OXID Resolver", "IOXIDResolver", "oxid");
|
|
|
|
proto_register_field_array (proto_oxid, hf, array_length (hf));
|
|
|
|
proto_register_subtree_array (ett, array_length (ett));
|
2001-07-11 01:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_oxid (void)
|
|
|
|
{
|
2012-04-26 16:05:05 +00:00
|
|
|
/* Register the protocol as dcerpc */
|
|
|
|
dcerpc_init_uuid (proto_oxid, ett_oxid, &uuid_oxid, ver_oxid, oxid_dissectors, hf_oxid_opnum);
|
2001-07-11 01:25:45 +00:00
|
|
|
}
|
2014-09-28 23:25:09 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|