2003-12-16 05:07:49 +00:00
|
|
|
/* packet-dcerpc-trksvr.c
|
|
|
|
* Routines for DCERPC Distributed Link tracking Server packet disassembly
|
|
|
|
* Copyright 2003, Ronnie Sahlberg
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2003-12-16 05:07:49 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2003-12-16 05:07:49 +00:00
|
|
|
*/
|
|
|
|
/* The IDL file for this interface can be extracted by grepping for idl
|
|
|
|
* in capitals.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include "packet-dcerpc.h"
|
|
|
|
|
2014-04-21 16:34:14 +00:00
|
|
|
void proto_register_dcerpc_trksvr(void);
|
|
|
|
void proto_reg_handoff_dcerpc_trksvr(void);
|
|
|
|
|
2003-12-16 05:07:49 +00:00
|
|
|
static int proto_dcerpc_trksvr = -1;
|
|
|
|
static int hf_trksvr_opnum = -1;
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static int hf_trksvr_rc = -1; */
|
2003-12-16 05:07:49 +00:00
|
|
|
|
|
|
|
static gint ett_dcerpc_trksvr = -1;
|
|
|
|
|
|
|
|
/*
|
|
|
|
IDL [ uuid(4da1-943d-11d1-acae-00c0afc2aa3f),
|
|
|
|
IDL version(1.0),
|
|
|
|
IDL implicit_handle(handle_t rpc_binding)
|
|
|
|
IDL ] interface trksvr
|
|
|
|
IDL {
|
|
|
|
*/
|
2015-03-03 10:47:53 +00:00
|
|
|
static e_guid_t uuid_dcerpc_trksvr = {
|
2014-03-07 15:47:53 +00:00
|
|
|
0x4da1c422, 0x943d, 0x11d1,
|
|
|
|
{ 0xac, 0xae, 0x00, 0xc0, 0x4f, 0xc2, 0xaa, 0x3f }
|
2003-12-16 05:07:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static guint16 ver_dcerpc_trksvr = 1;
|
|
|
|
|
|
|
|
static dcerpc_sub_dissector dcerpc_trksvr_dissectors[] = {
|
2014-03-07 15:47:53 +00:00
|
|
|
{ 0, "LnkSvrMessage",
|
2003-12-16 05:07:49 +00:00
|
|
|
NULL,
|
|
|
|
NULL },
|
2014-03-07 15:47:53 +00:00
|
|
|
{0, NULL, NULL, NULL }
|
2003-12-16 05:07:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_register_dcerpc_trksvr(void)
|
|
|
|
{
|
|
|
|
static hf_register_info hf[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{ &hf_trksvr_opnum, {
|
2003-12-16 05:07:49 +00:00
|
|
|
"Operation", "trksvr.opnum", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2003-12-16 05:07:49 +00:00
|
|
|
{ &hf_trksvr_rc, {
|
2013-11-27 16:30:20 +00:00
|
|
|
"Return code", "trksvr.rc", FT_UINT32, BASE_HEX | BASE_EXT_STRING,
|
|
|
|
&NT_errors_ext, 0x0, "TRKSVR return code", HFILL }},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2003-12-16 05:07:49 +00:00
|
|
|
};
|
|
|
|
|
2014-03-07 15:47:53 +00:00
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_dcerpc_trksvr
|
|
|
|
};
|
2003-12-16 05:07:49 +00:00
|
|
|
|
2014-03-07 15:47:53 +00:00
|
|
|
proto_dcerpc_trksvr = proto_register_protocol(
|
|
|
|
"Microsoft Distributed Link Tracking Server Service", "TRKSVR", "trksvr");
|
2003-12-16 05:07:49 +00:00
|
|
|
|
2014-03-07 15:47:53 +00:00
|
|
|
proto_register_field_array(proto_dcerpc_trksvr, hf,
|
2003-12-16 05:07:49 +00:00
|
|
|
array_length(hf));
|
|
|
|
|
2014-03-07 15:47:53 +00:00
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2003-12-16 05:07:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_dcerpc_trksvr(void)
|
|
|
|
{
|
2014-03-07 15:47:53 +00:00
|
|
|
/* Register protocol as dcerpc */
|
2003-12-16 05:07:49 +00:00
|
|
|
|
2014-03-07 15:47:53 +00:00
|
|
|
dcerpc_init_uuid(proto_dcerpc_trksvr, ett_dcerpc_trksvr,
|
|
|
|
&uuid_dcerpc_trksvr, ver_dcerpc_trksvr,
|
|
|
|
dcerpc_trksvr_dissectors, hf_trksvr_opnum);
|
2003-12-16 05:07:49 +00:00
|
|
|
}
|
2014-03-07 15:47:53 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 8
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
*/
|