Coverage Report

Created: 2026-07-12 07:10

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-dcerpc-ubikvote.c
Line
Count
Source
1
/* packet-dcerpc-ubikvote.c
2
 *
3
 * Routines for DCE DFS Ubik Voting  routines.
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/file.tar.gz file/ncsubik/ubikvote_proc.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_ubikvote (void);
22
void proto_reg_handoff_ubikvote (void);
23
24
static int proto_ubikvote;
25
static int hf_ubikvote_opnum;
26
27
28
static int ett_ubikvote;
29
30
31
static e_guid_t uuid_ubikvote = { 0x4d37f2dd, 0xed43, 0x0003, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
32
static uint16_t ver_ubikvote = 4;
33
34
35
static const dcerpc_sub_dissector ubikvote_dissectors[] = {
36
  { 0, "Beacon",              NULL, NULL},
37
  { 1, "Debug",               NULL, NULL},
38
  { 2, "SDebug",              NULL, NULL},
39
  { 3, "GetServerInterfaces", NULL, NULL},
40
  { 4, "GetSyncSite",         NULL, NULL},
41
  { 5, "DebugV2",             NULL, NULL},
42
  { 6, "SDebugV2",            NULL, NULL},
43
  { 7, "GetSyncSiteIdentity", NULL, NULL},
44
  { 0, NULL, NULL, NULL }
45
};
46
47
void
48
proto_register_ubikvote (void)
49
15
{
50
15
  static hf_register_info hf[] = {
51
15
    { &hf_ubikvote_opnum,
52
15
      { "Operation", "ubikvote.opnum", FT_UINT16, BASE_DEC,
53
15
        NULL, 0x0, NULL, HFILL }}
54
15
  };
55
56
15
  static int *ett[] = {
57
15
    &ett_ubikvote,
58
15
  };
59
15
  proto_ubikvote = proto_register_protocol ("DCE DFS FLDB UBIKVOTE", "UBIKVOTE", "ubikvote");
60
15
  proto_register_field_array (proto_ubikvote, hf, array_length (hf));
61
15
  proto_register_subtree_array (ett, array_length (ett));
62
15
}
63
64
void
65
proto_reg_handoff_ubikvote (void)
66
15
{
67
  /* Register the protocol as dcerpc */
68
15
  dcerpc_init_uuid (proto_ubikvote, ett_ubikvote, &uuid_ubikvote, ver_ubikvote, ubikvote_dissectors, hf_ubikvote_opnum);
69
15
}
70
71
/*
72
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
73
 *
74
 * Local variables:
75
 * c-basic-offset: 8
76
 * tab-width: 8
77
 * indent-tabs-mode: t
78
 * End:
79
 *
80
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
81
 * :indentSize=8:tabSize=8:noTabs=false:
82
 */