Coverage Report

Created: 2026-06-30 07:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-dcerpc-dtsprovider.c
Line
Count
Source
1
/* packet-dcerpc-dtsprovider.c
2
 * Routines for dcerpc Time server dissection
3
 * Copyright 2002, Jaime Fournier <Jaime.Fournier@hush.com>
4
 * This information is based off the released idl files from opengroup.
5
 * ftp://ftp.opengroup.org/pub/dce122/dce/src/time.tar.gz time/service/dtsprovider.idl
6
 *
7
 * Wireshark - Network traffic analyzer
8
 * By Gerald Combs <gerald@wireshark.org>
9
 * Copyright 1998 Gerald Combs
10
 *
11
 * SPDX-License-Identifier: GPL-2.0-or-later
12
 */
13
14
#include "config.h"
15
16
17
#include <epan/packet.h>
18
#include "packet-dcerpc.h"
19
20
void proto_register_dtsprovider (void);
21
void proto_reg_handoff_dtsprovider (void);
22
23
static int proto_dtsprovider;
24
static int hf_dtsprovider_opnum;
25
/* static int hf_dtsprovider_status; */
26
27
28
static int ett_dtsprovider;
29
30
31
static e_guid_t uuid_dtsprovider = { 0xbfca1238, 0x628a, 0x11c9, { 0xa0, 0x73, 0x08, 0x00, 0x2b, 0x0d, 0xea, 0x7a } };
32
static uint16_t ver_dtsprovider = 1;
33
34
35
static const dcerpc_sub_dissector dtsprovider_dissectors[] = {
36
  { 0, "ContactProvider", NULL, NULL},
37
  { 1, "ServerRequestProviderTime", NULL, NULL},
38
  { 0, NULL, NULL, NULL }
39
};
40
41
void
42
proto_register_dtsprovider (void)
43
14
{
44
14
  static hf_register_info hf[] = {
45
14
    { &hf_dtsprovider_opnum,
46
14
      { "Operation", "dtsprovider.opnum", FT_UINT16, BASE_DEC,
47
14
        NULL, 0x0, NULL, HFILL }},
48
#if 0
49
    { &hf_dtsprovider_status,
50
      { "Status", "dtsprovider.status", FT_UINT32, BASE_DEC|BASE_EXT_STRING,
51
        &dce_error_vals_ext, 0x0, "Return code, status of executed command", HFILL }}
52
#endif
53
14
  };
54
55
14
  static int *ett[] = {
56
14
    &ett_dtsprovider,
57
14
  };
58
14
  proto_dtsprovider = proto_register_protocol ("DCE Distributed Time Service Provider", "DTSPROVIDER", "dtsprovider");
59
14
  proto_register_field_array (proto_dtsprovider, hf, array_length (hf));
60
14
  proto_register_subtree_array (ett, array_length (ett));
61
14
}
62
63
void
64
proto_reg_handoff_dtsprovider (void)
65
14
{
66
  /* Register the protocol as dcerpc */
67
14
  dcerpc_init_uuid (proto_dtsprovider, ett_dtsprovider, &uuid_dtsprovider, ver_dtsprovider, dtsprovider_dissectors, hf_dtsprovider_opnum);
68
14
}
69
70
/*
71
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
72
 *
73
 * Local variables:
74
 * c-basic-offset: 8
75
 * tab-width: 8
76
 * indent-tabs-mode: t
77
 * End:
78
 *
79
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
80
 * :indentSize=8:tabSize=8:noTabs=false:
81
 */