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
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
}
53 proto_register_ubikdisk (void)
55 static hf_register_info hf
[] = {
57 { "Operation", "ubikdisk.opnum", FT_UINT16
, BASE_DEC
,
58 NULL
, 0x0, NULL
, HFILL
}}
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
));
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
85 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
86 * :indentSize=8:tabSize=8:noTabs=false: