Coverage Report

Created: 2026-01-02 06:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-dcerpc-cds_clerkserver.c
Line
Count
Source
1
/* packet-dcerpc-cds_clerkserver.c
2
 *
3
 * Routines for cds_clerkserver  dissection
4
 * Routines for dcerpc Afs4Int dissection
5
 * Copyright 2002, Jaime Fournier <Jaime.Fournier@hush.com>
6
 * This information is based off the released idl files from opengroup.
7
 * ftp://ftp.opengroup.org/pub/dce122/dce/src/directory.tar.gz directory/cds/stubs/cds_clerkserver.idl
8
 *
9
 * Wireshark - Network traffic analyzer
10
 * By Gerald Combs <gerald@wireshark.org>
11
 * Copyright 1998 Gerald Combs
12
 *
13
 * SPDX-License-Identifier: GPL-2.0-or-later
14
 */
15
16
#include "config.h"
17
18
19
#include <epan/packet.h>
20
#include "packet-dcerpc.h"
21
22
void proto_register_cds_clerkserver (void);
23
void proto_reg_handoff_cds_clerkserver (void);
24
25
static int proto_cds_clerkserver;
26
static int hf_cds_clerkserver_opnum;
27
28
29
static int ett_cds_clerkserver;
30
31
32
static e_guid_t uuid_cds_clerkserver = { 0x257df1c9, 0xc6d3, 0x11ca, { 0x85, 0x54, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
33
static uint16_t ver_cds_clerkserver = 1;
34
35
36
37
static const dcerpc_sub_dissector cds_clerkserver_dissectors[] = {
38
  {  0, "AddReplica",             NULL, NULL},
39
  {  1, "AllowClearinghouses",    NULL, NULL},
40
  {  2, "Combine",                NULL, NULL},
41
  {  3, "CreateChild",            NULL, NULL},
42
  {  4, "CreateDirectory",        NULL, NULL},
43
  {  5, "CreateSoftLink",         NULL, NULL},
44
  {  6, "CreateObject",           NULL, NULL},
45
  {  7, "DeleteChild",            NULL, NULL},
46
  {  8, "DeleteObject",           NULL, NULL},
47
  {  9, "DeleteSoftLink",         NULL, NULL},
48
  { 10, "DeleteDirectory",        NULL, NULL},
49
  { 11, "DisallowClearinghouses", NULL, NULL},
50
  { 12, "DoUpdate",               NULL, NULL},
51
  { 13, "EnumerateAttributes",    NULL, NULL},
52
  { 14, "EnumerateChildren",      NULL, NULL},
53
  { 15, "EnumerateObjects",       NULL, NULL},
54
  { 16, "EnumerateSoftLinks",     NULL, NULL},
55
  { 17, "LinkReplica",            NULL, NULL},
56
  { 18, "ModifyAttribute",        NULL, NULL},
57
  { 19, "ModifyReplica",          NULL, NULL},
58
  { 20, "NewEpoch",               NULL, NULL},
59
  { 21, "ReadAttribute",          NULL, NULL},
60
  { 22, "RemoveReplica",          NULL, NULL},
61
  { 23, "ResolveName",            NULL, NULL},
62
  { 24, "Skulk",                  NULL, NULL},
63
  { 25, "TestAttribute",          NULL, NULL},
64
  { 26, "TestGroup",              NULL, NULL},
65
  { 0, NULL, NULL, NULL }
66
};
67
68
void
69
proto_register_cds_clerkserver (void)
70
14
{
71
14
  static hf_register_info hf[] = {
72
14
    { &hf_cds_clerkserver_opnum,
73
14
      { "Operation", "cds_clerkserver.opnum", FT_UINT16, BASE_DEC,
74
14
        NULL, 0x0, NULL, HFILL }}
75
14
  };
76
77
14
  static int *ett[] = {
78
14
    &ett_cds_clerkserver,
79
14
  };
80
14
  proto_cds_clerkserver = proto_register_protocol ("CDS Clerk Server Calls", "CDS_CLERK", "cds_clerkserver");
81
14
  proto_register_field_array (proto_cds_clerkserver, hf, array_length (hf));
82
14
  proto_register_subtree_array (ett, array_length (ett));
83
14
}
84
85
void
86
proto_reg_handoff_cds_clerkserver (void)
87
14
{
88
  /* Register the protocol as dcerpc */
89
14
  dcerpc_init_uuid (proto_cds_clerkserver, ett_cds_clerkserver, &uuid_cds_clerkserver, ver_cds_clerkserver, cds_clerkserver_dissectors, hf_cds_clerkserver_opnum);
90
14
}
91
92
/*
93
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
94
 *
95
 * Local variables:
96
 * c-basic-offset: 8
97
 * tab-width: 8
98
 * indent-tabs-mode: t
99
 * End:
100
 *
101
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
102
 * :indentSize=8:tabSize=8:noTabs=false:
103
 */