Coverage Report

Created: 2026-05-14 06:28

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-dcerpc-cprpc_server.c
Line
Count
Source
1
/* packet-dcerpc-cprpc_server.c
2
 * Routines for DNS Control Program 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/directory.tar.gz directory/cds/stubs/cprpc_server.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_cprpc_server (void);
21
void proto_reg_handoff_cprpc_server (void);
22
23
static int proto_cprpc_server;
24
static int hf_cprpc_server_opnum;
25
26
27
static int ett_cprpc_server;
28
29
30
static e_guid_t uuid_cprpc_server = { 0x4885772c, 0xc6d3, 0x11ca, { 0x84, 0xc6, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
31
static uint16_t ver_cprpc_server = 1;
32
33
34
static const dcerpc_sub_dissector cprpc_server_dissectors[] = {
35
  { 0, "dnscp_server", NULL, NULL},
36
  { 0, NULL, NULL, NULL }
37
};
38
39
void
40
proto_register_cprpc_server (void)
41
15
{
42
15
  static hf_register_info hf[] = {
43
15
    { &hf_cprpc_server_opnum,
44
15
      { "Operation", "cprpc_server.opnum", FT_UINT16, BASE_DEC,
45
15
        NULL, 0x0, NULL, HFILL }}
46
15
  };
47
48
15
  static int *ett[] = {
49
15
    &ett_cprpc_server,
50
15
  };
51
15
  proto_cprpc_server = proto_register_protocol ("DNS Control Program Server", "cprpc_server", "cprpc_server");
52
15
  proto_register_field_array (proto_cprpc_server, hf, array_length (hf));
53
15
  proto_register_subtree_array (ett, array_length (ett));
54
15
}
55
56
void
57
proto_reg_handoff_cprpc_server (void)
58
15
{
59
  /* Register the protocol as dcerpc */
60
15
  dcerpc_init_uuid (proto_cprpc_server, ett_cprpc_server, &uuid_cprpc_server, ver_cprpc_server, cprpc_server_dissectors, hf_cprpc_server_opnum);
61
15
}
62
63
/*
64
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
65
 *
66
 * Local variables:
67
 * c-basic-offset: 8
68
 * tab-width: 8
69
 * indent-tabs-mode: t
70
 * End:
71
 *
72
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
73
 * :indentSize=8:tabSize=8:noTabs=false:
74
 */