Coverage Report

Created: 2025-12-27 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-dcerpc-rs_prop_pgo.c
Line
Count
Source
1
/* packet-dcerpc-rs_prop_pgo.c
2
 *
3
 * Routines for rs_prop_pgo dissection
4
 * Copyright 2004, Jaime Fournier <jaime.fournier@hush.com>
5
 * This information is based off the released idl files from opengroup.
6
 * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_prop_pgo.idl
7
 *
8
 * Wireshark - Network traffic analyzer
9
 * By Gerald Combs <gerald@wireshark.org>
10
 * Copyright 1998 Gerald Combs
11
 *
12
 * SPDX-License-Identifier: GPL-2.0-or-later
13
 */
14
15
#include "config.h"
16
17
18
#include <epan/packet.h>
19
#include "packet-dcerpc.h"
20
21
void proto_register_rs_prop_pgo (void);
22
void proto_reg_handoff_rs_prop_pgo (void);
23
24
static int proto_rs_prop_pgo;
25
static int hf_rs_prop_pgo_opnum;
26
27
28
static int ett_rs_prop_pgo;
29
static e_guid_t uuid_rs_prop_pgo =
30
  { 0xc23626e8, 0xde34, 0x11ca, {0x8c, 0xbc, 0x08, 0x00, 0x1e, 0x03, 0x94,
31
                                 0xc7} };
32
33
static uint16_t ver_rs_prop_pgo = 1;
34
35
36
static const dcerpc_sub_dissector rs_prop_pgo_dissectors[] = {
37
  {0, "add",               NULL, NULL},
38
  {1, "rename",            NULL, NULL},
39
  {2, "replace",           NULL, NULL},
40
  {3, "add_member",        NULL, NULL},
41
  {4, "delete_member",     NULL, NULL},
42
  {5, "add_member_global", NULL, NULL},
43
  {0, NULL, NULL, NULL}
44
};
45
46
void
47
proto_register_rs_prop_pgo (void)
48
14
{
49
14
  static hf_register_info hf[] = {
50
14
    {&hf_rs_prop_pgo_opnum,
51
14
     {"Operation", "rs_prop_pgo.opnum", FT_UINT16, BASE_DEC, NULL, 0x0,
52
14
      NULL, HFILL}},
53
14
  };
54
55
14
  static int *ett[] = {
56
14
    &ett_rs_prop_pgo,
57
14
  };
58
14
  proto_rs_prop_pgo =
59
14
    proto_register_protocol
60
14
    ("DCE/RPC Registry server propagation interface - PGO items",
61
14
     "rs_prop_pgo", "rs_prop_pgo");
62
14
  proto_register_field_array (proto_rs_prop_pgo, hf, array_length (hf));
63
14
  proto_register_subtree_array (ett, array_length (ett));
64
14
}
65
66
void
67
proto_reg_handoff_rs_prop_pgo (void)
68
14
{
69
  /* Register the protocol as dcerpc */
70
14
  dcerpc_init_uuid (proto_rs_prop_pgo, ett_rs_prop_pgo, &uuid_rs_prop_pgo,
71
14
                    ver_rs_prop_pgo, rs_prop_pgo_dissectors,
72
14
                    hf_rs_prop_pgo_opnum);
73
14
}
74
75
/*
76
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
77
 *
78
 * Local Variables:
79
 * c-basic-offset: 2
80
 * tab-width: 8
81
 * indent-tabs-mode: nil
82
 * End:
83
 *
84
 * ex: set shiftwidth=2 tabstop=8 expandtab:
85
 * :indentSize=2:tabSize=8:noTabs=true:
86
 */