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-ubikdisk.c
Line
Count
Source
1
/* packet-dcerpc-ubikdisk.c
2
 *
3
 * Routines for DCE DFS UBIK Disk 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/ubikdisk_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_ubikdisk (void);
22
void proto_reg_handoff_ubikdisk (void);
23
24
static int proto_ubikdisk;
25
static int hf_ubikdisk_opnum;
26
27
28
static int ett_ubikdisk;
29
30
31
static e_guid_t uuid_ubikdisk = { 0x4d37f2dd, 0xed43, 0x0002, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
32
static uint16_t ver_ubikdisk = 4;
33
34
35
static const dcerpc_sub_dissector ubikdisk_dissectors[] = {
36
  {  0, "Begin", NULL, NULL},
37
  {  1, "Commit", NULL, NULL},
38
  {  2, "Lock", NULL, NULL},
39
  {  3, "Write", NULL, NULL},
40
  {  4, "GetVersion", NULL, NULL},
41
  {  5, "GetFile", NULL, NULL},
42
  {  6, "SendFile", NULL, NULL},
43
  {  7, "Abort", NULL, NULL},
44
  {  8, "ReleaseLocks", NULL, NULL},
45
  {  9, "Truncate", NULL, NULL},
46
  { 10, "Probe", NULL, NULL},
47
  { 11, "GetServerInterfaces", NULL, NULL},
48
  { 12, "BulkUpdate", NULL, NULL},
49
  { 0, NULL, NULL, NULL }
50
};
51
52
void
53
proto_register_ubikdisk (void)
54
14
{
55
14
  static hf_register_info hf[] = {
56
14
    { &hf_ubikdisk_opnum,
57
14
      { "Operation", "ubikdisk.opnum", FT_UINT16, BASE_DEC,
58
14
        NULL, 0x0, NULL, HFILL }}
59
14
  };
60
61
14
  static int *ett[] = {
62
14
    &ett_ubikdisk,
63
14
  };
64
14
  proto_ubikdisk = proto_register_protocol ("DCE DFS FLDB UBIK TRANSFER", "UBIKDISK", "ubikdisk");
65
14
  proto_register_field_array (proto_ubikdisk, hf, array_length (hf));
66
14
  proto_register_subtree_array (ett, array_length (ett));
67
14
}
68
69
void
70
proto_reg_handoff_ubikdisk (void)
71
14
{
72
  /* Register the protocol as dcerpc */
73
14
  dcerpc_init_uuid (proto_ubikdisk, ett_ubikdisk, &uuid_ubikdisk, ver_ubikdisk, ubikdisk_dissectors, hf_ubikdisk_opnum);
74
14
}
75
76
/*
77
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
78
 *
79
 * Local variables:
80
 * c-basic-offset: 8
81
 * tab-width: 8
82
 * indent-tabs-mode: t
83
 * End:
84
 *
85
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
86
 * :indentSize=8:tabSize=8:noTabs=false:
87
 */