epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / packet-dcerpc-ftserver.c
blob70cfdfbccd058f585e539e2ead1e377924d338a3
1 /* packet-dcerpc-ftserver.c
3 * Routines for dcerpc ftserver dissection
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.tgz file/ftserver/ftserver_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_ftserver (void);
22 void proto_reg_handoff_ftserver (void);
24 static int proto_ftserver;
25 static int hf_ftserver_opnum;
29 static int ett_ftserver;
32 static e_guid_t uuid_ftserver = { 0x4d37f2dd, 0xed43, 0x0004, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
33 static uint16_t ver_ftserver = 4;
36 static const dcerpc_sub_dissector ftserver_dissectors[] = {
37 { 0, "CreateTrans", NULL, NULL },
38 { 1, "AbortTrans", NULL, NULL },
39 { 2, "DeleteTrans", NULL, NULL },
40 { 3, "CreateVolume", NULL, NULL },
41 { 4, "DeleteVolume", NULL, NULL },
42 { 5, "Dump", NULL, NULL },
43 { 6, "Restore", NULL, NULL },
44 { 7, "Forward", NULL, NULL },
45 { 8, "Clone", NULL, NULL },
46 { 9, "ReClone", NULL, NULL },
47 { 10, "GetFlags", NULL, NULL },
48 { 11, "SetFlags", NULL, NULL },
49 { 12, "GetStatus", NULL, NULL },
50 { 13, "SetStatus", NULL, NULL },
51 { 14, "ListVolumes", NULL, NULL },
52 { 15, "ListAggregates", NULL, NULL },
53 { 16, "AggregateInfo", NULL, NULL },
54 { 17, "Monitor", NULL, NULL },
55 { 18, "GetOneVolStatus", NULL, NULL },
56 { 19, "GetServerInterfaces", NULL, NULL },
57 { 20, "SwapIDs", NULL, NULL },
58 { 0, NULL, NULL, NULL }
61 void
62 proto_register_ftserver (void)
64 static hf_register_info hf[] = {
65 { &hf_ftserver_opnum,
66 { "Operation", "ftserver.opnum", FT_UINT16, BASE_DEC,
67 NULL, 0x0, NULL, HFILL }}
70 static int *ett[] = {
71 &ett_ftserver,
73 proto_ftserver = proto_register_protocol ("FTServer Operations", "FTSERVER", "ftserver");
74 proto_register_field_array (proto_ftserver, hf, array_length (hf));
75 proto_register_subtree_array (ett, array_length (ett));
78 void
79 proto_reg_handoff_ftserver (void)
81 /* Register the protocol as dcerpc */
82 dcerpc_init_uuid (proto_ftserver, ett_ftserver, &uuid_ftserver, ver_ftserver, ftserver_dissectors, hf_ftserver_opnum);
86 * Editor modelines - https://www.wireshark.org/tools/modelines.html
88 * Local variables:
89 * c-basic-offset: 8
90 * tab-width: 8
91 * indent-tabs-mode: t
92 * End:
94 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
95 * :indentSize=8:tabSize=8:noTabs=false: