Coverage Report

Created: 2025-02-15 06:25

/src/wireshark/epan/dissectors/packet-dcerpc-rs_repadm.c
Line
Count
Source
1
/* packet-dcerpc-rs_repadm.c
2
 *
3
 * Routines for dcerpc Registry server administration operations.
4
 * Copyright 2002, 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_repadm.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_repadm (void);
22
void proto_reg_handoff_rs_repadm (void);
23
24
static int proto_rs_repadm;
25
static int hf_rs_repadm_opnum;
26
27
28
static int ett_rs_repadm;
29
30
31
static e_guid_t uuid_rs_repadm = { 0x5b8c2fa8, 0xb60b, 0x11c9, { 0xbe, 0x0f, 0x08, 0x00, 0x1e, 0x01, 0x8f, 0xa0 } };
32
static uint16_t ver_rs_repadm = 1;
33
34
35
36
37
static const dcerpc_sub_dissector rs_repadm_dissectors[] = {
38
  { 0, "stop",              NULL, NULL},
39
  { 1, "maint",             NULL, NULL},
40
  { 2, "mkey",              NULL, NULL},
41
  { 3, "info",              NULL, NULL},
42
  { 4, "info_full",         NULL, NULL},
43
  { 5, "destroy",           NULL, NULL},
44
  { 6, "init_replica",      NULL, NULL},
45
  { 7, "change_master",     NULL, NULL},
46
  { 8, "become_master",     NULL, NULL},
47
  { 9, "become_slave",      NULL, NULL},
48
  { 10, "set_sw_rev",       NULL, NULL},
49
  { 11, "get_sw_vers_info", NULL, NULL},
50
  { 0, NULL, NULL, NULL }
51
};
52
53
54
void
55
proto_register_rs_repadm (void)
56
14
{
57
14
  static hf_register_info hf[] = {
58
14
  { &hf_rs_repadm_opnum,
59
14
    { "Operation", "rs_repadm.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }}
60
14
  };
61
62
14
  static int *ett[] = {
63
14
    &ett_rs_repadm,
64
14
  };
65
14
  proto_rs_repadm = proto_register_protocol ("Registry server administration operations.", "RS_REPADM", "rs_repadm");
66
14
  proto_register_field_array (proto_rs_repadm, hf, array_length (hf));
67
14
  proto_register_subtree_array (ett, array_length (ett));
68
14
}
69
70
void
71
proto_reg_handoff_rs_repadm (void)
72
14
{
73
  /* Register the protocol as dcerpc */
74
14
  dcerpc_init_uuid (proto_rs_repadm, ett_rs_repadm, &uuid_rs_repadm, ver_rs_repadm, rs_repadm_dissectors, hf_rs_repadm_opnum);
75
14
}
76
77
/*
78
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
79
 *
80
 * Local variables:
81
 * c-basic-offset: 8
82
 * tab-width: 8
83
 * indent-tabs-mode: t
84
 * End:
85
 *
86
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
87
 * :indentSize=8:tabSize=8:noTabs=false:
88
 */