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>
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2001-07-11 01:25:45 +00:00
|
|
|
*
|
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
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2004-12-19 16:30:25 +00:00
|
|
|
/* see packet-dcom.c for details about DCOM */
|
|
|
|
|
2001-07-11 01:25:45 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include <glib.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
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
static e_uuid_t uuid_oxid = { 0x99fcfec4, 0x5260, 0x101b, { 0xbb, 0xcb, 0x00, 0xaa, 0x00, 0x21, 0x34, 0x7a } };
|
|
|
|
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,
|
|
|
|
packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
|
|
{
|
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, drep,
|
2005-01-29 20:39:14 +00:00
|
|
|
hf_oxid_setid, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_oxid_simple_ping_resp(tvbuff_t *tvb, int offset,
|
|
|
|
packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
|
|
{
|
|
|
|
guint32 u32HResult;
|
|
|
|
|
|
|
|
|
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32HResult);
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
2004-12-19 16:13: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,
|
|
|
|
packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
|
|
{
|
|
|
|
guint32 u32HResult;
|
|
|
|
|
|
|
|
|
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32HResult);
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
|
|
|
}
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_oxid_complex_ping_rqst(tvbuff_t *tvb, int offset,
|
|
|
|
packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
|
|
{
|
|
|
|
guint16 u16SeqNum;
|
|
|
|
guint16 u16AddToSet;
|
|
|
|
guint16 u16DelFromSet;
|
|
|
|
guint32 u32Pointer;
|
|
|
|
guint32 u32ArraySize;
|
|
|
|
|
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, drep,
|
2005-01-29 20:39:14 +00:00
|
|
|
hf_oxid_setid, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_seqnum, &u16SeqNum);
|
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_addtoset, &u16AddToSet);
|
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_delfromset, &u16DelFromSet);
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " AddToSet=%u DelFromSet=%u",
|
|
|
|
u16AddToSet, u16DelFromSet);
|
|
|
|
}
|
|
|
|
|
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32Pointer);
|
|
|
|
if (u32Pointer) {
|
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32ArraySize);
|
|
|
|
|
|
|
|
while (u16AddToSet--) {
|
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, drep,
|
2005-01-29 20:39:14 +00:00
|
|
|
hf_oxid_oid, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
}
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2005-01-18 20:44:11 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32Pointer);
|
|
|
|
if (u32Pointer) {
|
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32ArraySize);
|
|
|
|
|
|
|
|
while (u16DelFromSet--) {
|
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, drep,
|
2005-01-29 20:39:14 +00:00
|
|
|
hf_oxid_oid, NULL);
|
2005-01-18 20:44:11 +00:00
|
|
|
}
|
|
|
|
}
|
2004-12-19 16:13: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,
|
|
|
|
packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
|
|
{
|
|
|
|
guint16 u16PingBackoffFactor;
|
|
|
|
guint32 u32HResult;
|
|
|
|
|
|
|
|
|
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, drep,
|
2005-01-29 20:39:14 +00:00
|
|
|
hf_oxid_setid, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_ping_backoff_factor, &u16PingBackoffFactor);
|
|
|
|
|
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32HResult);
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
2004-12-19 16:13: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,
|
|
|
|
packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
|
|
{
|
|
|
|
guint16 u16ProtSeqs;
|
|
|
|
guint32 u32ArraySize;
|
|
|
|
guint32 u32ItemIdx;
|
|
|
|
|
|
|
|
|
|
|
|
offset = dissect_dcom_ID(tvb, offset, pinfo, tree, drep,
|
2005-01-29 20:39:14 +00:00
|
|
|
hf_oxid_oxid, NULL);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_requested_protseqs, &u16ProtSeqs);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32ArraySize);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
u32ItemIdx = 1;
|
|
|
|
while (u32ArraySize--) {
|
|
|
|
offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_protseqs, &u16ProtSeqs);
|
|
|
|
u32ItemIdx++;
|
|
|
|
}
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13: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_resolve_oxid2_resp(tvbuff_t *tvb, int offset,
|
|
|
|
packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
|
|
{
|
|
|
|
guint32 u32Pointer;
|
|
|
|
guint32 u32ArraySize;
|
|
|
|
e_uuid_t ipid;
|
|
|
|
guint32 u32AuthnHint;
|
|
|
|
guint16 u16VersionMajor;
|
|
|
|
guint16 u16VersionMinor;
|
|
|
|
guint32 u32HResult;
|
2003-09-24 08:05:50 +00:00
|
|
|
|
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32Pointer);
|
|
|
|
if (u32Pointer) {
|
|
|
|
offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32ArraySize);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_DUALSTRINGARRAY(tvb, offset, pinfo, tree, drep,
|
2006-08-11 19:15:12 +00:00
|
|
|
hf_oxid_bindings, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
offset = dissect_dcom_UUID(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_ipid, &ipid);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep,
|
|
|
|
hf_oxid_authn_hint, &u32AuthnHint);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_COMVERSION(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u16VersionMajor, &u16VersionMinor);
|
|
|
|
}
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, drep,
|
|
|
|
&u32HResult);
|
2003-09-24 08:05:50 +00:00
|
|
|
|
2004-12-19 16:13:05 +00:00
|
|
|
if (check_col(pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " -> %s",
|
|
|
|
val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
|
2003-09-24 08:05:50 +00:00
|
|
|
}
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_oxid_server_alive2_resp(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|
|
|
proto_tree *tree, guint8 *drep) {
|
|
|
|
guint16 u16VersionMajor;
|
|
|
|
guint16 u16VersionMinor;
|
|
|
|
|
|
|
|
offset = dissect_dcom_COMVERSION(tvb, offset, pinfo, tree, drep, &u16VersionMajor, &u16VersionMinor);
|
|
|
|
|
|
|
|
/* XXX - understand what those 8 bytes mean! don't skip'em!*/
|
2005-01-29 20:39:14 +00:00
|
|
|
dissect_dcerpc_uint64(tvb , offset, pinfo, tree, drep, hf_oxid_Unknown1, NULL);
|
|
|
|
offset += 8;
|
2004-12-19 16:13:05 +00:00
|
|
|
|
2006-08-11 19:15:12 +00:00
|
|
|
offset = dissect_dcom_DUALSTRINGARRAY(tvb, offset, pinfo, tree, drep, hf_oxid_ds_array, NULL);
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
/* unknown field 2 */
|
2005-01-29 20:39:14 +00:00
|
|
|
dissect_dcerpc_uint64(tvb, offset, pinfo, tree, drep, hf_oxid_Unknown2, NULL);
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
static hf_register_info hf[] = {
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_opnum,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "Operation", "oxid.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
{ &hf_oxid_setid,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "SetId", "oxid_setid", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_seqnum,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "SeqNum", "oxid_seqnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_addtoset,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "AddToSet", "oxid_addtoset", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_delfromset,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "DelFromSet", "oxid_delfromset", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_oid,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "OID", "oxid_oid", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_ping_backoff_factor,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "PingBackoffFactor", "oxid_ping_backoff_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_oxid,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "OXID", "oxid_oxid", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
{ &hf_oxid_requested_protseqs,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "RequestedProtSeq", "oxid_requested_protseqs", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_protseqs,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "ProtSeq", "oxid_protseqs", FT_UINT16, BASE_DEC, VALS(dcom_protseq_vals), 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
{ &hf_oxid_bindings,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "OxidBindings", "oxid_bindings", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_ipid,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "IPID", "oxid_ipid", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_authn_hint,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "AuthnHint", "oxid_authn_hint", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
|
|
|
|
{ &hf_oxid_ds_array,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "Address", "dcom.oxid.address", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_Unknown1,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "unknown 8 bytes 1", "oxid5.unknown1", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2004-12-19 16:13:05 +00:00
|
|
|
{ &hf_oxid_Unknown2,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
{ "unknown 8 bytes 2", "oxid5.unknown2", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }}
|
2001-07-11 01:25:45 +00:00
|
|
|
};
|
|
|
|
static gint *ett[] = {
|
2002-05-31 00:31:13 +00:00
|
|
|
&ett_oxid
|
2001-07-11 01:25:45 +00:00
|
|
|
};
|
2004-08-13 09:47:23 +00:00
|
|
|
proto_oxid = proto_register_protocol ("DCOM OXID Resolver", "IOXIDResolver", "oxid");
|
2001-07-11 01:25:45 +00:00
|
|
|
proto_register_field_array (proto_oxid, hf, array_length (hf));
|
|
|
|
proto_register_subtree_array (ett, array_length (ett));
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_oxid (void)
|
|
|
|
{
|
|
|
|
/* Register the protocol as dcerpc */
|
2004-12-19 16:13:05 +00:00
|
|
|
dcerpc_init_uuid (proto_oxid, ett_oxid, &uuid_oxid, ver_oxid, oxid_dissectors, hf_oxid_opnum);
|
2001-07-11 01:25:45 +00:00
|
|
|
}
|