Coverage Report

Created: 2025-02-15 06:25

/src/wireshark/epan/dissectors/packet-dcerpc-trksvr.c
Line
Count
Source
1
/* packet-dcerpc-trksvr.c
2
 * Routines for DCERPC Distributed Link tracking Server packet disassembly
3
 * Copyright 2003, Ronnie Sahlberg
4
 *
5
 * Wireshark - Network traffic analyzer
6
 * By Gerald Combs <gerald@wireshark.org>
7
 * Copyright 1998 Gerald Combs
8
 *
9
 * SPDX-License-Identifier: GPL-2.0-or-later
10
 */
11
/* The IDL file for this interface can be extracted by grepping for idl
12
 * in capitals.
13
 */
14
15
#include "config.h"
16
17
#include <epan/packet.h>
18
#include "packet-dcerpc.h"
19
20
void proto_register_dcerpc_trksvr(void);
21
void proto_reg_handoff_dcerpc_trksvr(void);
22
23
static int proto_dcerpc_trksvr;
24
static int hf_trksvr_opnum;
25
/* static int hf_trksvr_rc; */
26
27
static int ett_dcerpc_trksvr;
28
29
/*
30
  IDL [ uuid(4da1-943d-11d1-acae-00c0afc2aa3f),
31
  IDL   version(1.0),
32
  IDL   implicit_handle(handle_t rpc_binding)
33
  IDL ] interface trksvr
34
  IDL {
35
*/
36
static e_guid_t uuid_dcerpc_trksvr = {
37
  0x4da1c422, 0x943d, 0x11d1,
38
  { 0xac, 0xae, 0x00, 0xc0, 0x4f, 0xc2, 0xaa, 0x3f }
39
};
40
41
static uint16_t ver_dcerpc_trksvr = 1;
42
43
static const dcerpc_sub_dissector dcerpc_trksvr_dissectors[] = {
44
  { 0, "LnkSvrMessage",
45
    NULL,
46
    NULL },
47
  {0, NULL, NULL,  NULL }
48
};
49
50
void
51
proto_register_dcerpc_trksvr(void)
52
14
{
53
14
static hf_register_info hf[] = {
54
14
  { &hf_trksvr_opnum, {
55
14
    "Operation", "trksvr.opnum", FT_UINT16, BASE_DEC,
56
14
    NULL, 0x0, NULL, HFILL }},
57
#if 0
58
  { &hf_trksvr_rc, {
59
    "Return code", "trksvr.rc", FT_UINT32, BASE_HEX | BASE_EXT_STRING,
60
    &NT_errors_ext, 0x0, "TRKSVR return code", HFILL }},
61
#endif
62
14
  };
63
64
14
  static int *ett[] = {
65
14
    &ett_dcerpc_trksvr
66
14
  };
67
68
14
  proto_dcerpc_trksvr = proto_register_protocol("Microsoft Distributed Link Tracking Server Service", "TRKSVR", "trksvr");
69
70
14
  proto_register_field_array(proto_dcerpc_trksvr, hf,
71
14
           array_length(hf));
72
73
14
  proto_register_subtree_array(ett, array_length(ett));
74
14
}
75
76
void
77
proto_reg_handoff_dcerpc_trksvr(void)
78
14
{
79
  /* Register protocol as dcerpc */
80
81
14
  dcerpc_init_uuid(proto_dcerpc_trksvr, ett_dcerpc_trksvr,
82
14
       &uuid_dcerpc_trksvr, ver_dcerpc_trksvr,
83
14
       dcerpc_trksvr_dissectors, hf_trksvr_opnum);
84
14
}
85
86
/*
87
 * Editor modelines
88
 *
89
 * Local Variables:
90
 * c-basic-offset: 8
91
 * tab-width: 8
92
 * indent-tabs-mode: t
93
 * End:
94
 *
95
 * ex: set shiftwidth=8 tabstop=8 noexpandtab:
96
 * :indentSize=8:tabSize=8:noTabs=false:
97
 */