Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-dcerpc-ubikdisk.c
blobf3397bac2fe02ec60a5a042bfd75e657b216db12
1 /* packet-dcerpc-ubikdisk.c
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
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #include "config.h"
18 #include <epan/packet.h>
19 #include "packet-dcerpc.h"
21 void proto_register_ubikdisk (void);
22 void proto_reg_handoff_ubikdisk (void);
24 static int proto_ubikdisk;
25 static int hf_ubikdisk_opnum;
28 static int ett_ubikdisk;
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;
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 }
52 void
53 proto_register_ubikdisk (void)
55 static hf_register_info hf[] = {
56 { &hf_ubikdisk_opnum,
57 { "Operation", "ubikdisk.opnum", FT_UINT16, BASE_DEC,
58 NULL, 0x0, NULL, HFILL }}
61 static int *ett[] = {
62 &ett_ubikdisk,
64 proto_ubikdisk = proto_register_protocol ("DCE DFS FLDB UBIK TRANSFER", "UBIKDISK", "ubikdisk");
65 proto_register_field_array (proto_ubikdisk, hf, array_length (hf));
66 proto_register_subtree_array (ett, array_length (ett));
69 void
70 proto_reg_handoff_ubikdisk (void)
72 /* Register the protocol as dcerpc */
73 dcerpc_init_uuid (proto_ubikdisk, ett_ubikdisk, &uuid_ubikdisk, ver_ubikdisk, ubikdisk_dissectors, hf_ubikdisk_opnum);
77 * Editor modelines - https://www.wireshark.org/tools/modelines.html
79 * Local variables:
80 * c-basic-offset: 8
81 * tab-width: 8
82 * indent-tabs-mode: t
83 * End:
85 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
86 * :indentSize=8:tabSize=8:noTabs=false: