/src/wireshark/epan/dissectors/packet-dcerpc-ftserver.c
Line | Count | Source |
1 | | /* packet-dcerpc-ftserver.c |
2 | | * |
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 |
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_ftserver (void); |
22 | | void proto_reg_handoff_ftserver (void); |
23 | | |
24 | | static int proto_ftserver; |
25 | | static int hf_ftserver_opnum; |
26 | | |
27 | | |
28 | | |
29 | | static int ett_ftserver; |
30 | | |
31 | | |
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; |
34 | | |
35 | | |
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 } |
59 | | }; |
60 | | |
61 | | void |
62 | | proto_register_ftserver (void) |
63 | 16 | { |
64 | 16 | static hf_register_info hf[] = { |
65 | 16 | { &hf_ftserver_opnum, |
66 | 16 | { "Operation", "ftserver.opnum", FT_UINT16, BASE_DEC, |
67 | 16 | NULL, 0x0, NULL, HFILL }} |
68 | 16 | }; |
69 | | |
70 | 16 | static int *ett[] = { |
71 | 16 | &ett_ftserver, |
72 | 16 | }; |
73 | 16 | proto_ftserver = proto_register_protocol ("FTServer Operations", "FTSERVER", "ftserver"); |
74 | 16 | proto_register_field_array (proto_ftserver, hf, array_length (hf)); |
75 | 16 | proto_register_subtree_array (ett, array_length (ett)); |
76 | 16 | } |
77 | | |
78 | | void |
79 | | proto_reg_handoff_ftserver (void) |
80 | 16 | { |
81 | | /* Register the protocol as dcerpc */ |
82 | 16 | dcerpc_init_uuid (proto_ftserver, ett_ftserver, &uuid_ftserver, ver_ftserver, ftserver_dissectors, hf_ftserver_opnum); |
83 | 16 | } |
84 | | |
85 | | /* |
86 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
87 | | * |
88 | | * Local variables: |
89 | | * c-basic-offset: 8 |
90 | | * tab-width: 8 |
91 | | * indent-tabs-mode: t |
92 | | * End: |
93 | | * |
94 | | * vi: set shiftwidth=8 tabstop=8 noexpandtab: |
95 | | * :indentSize=8:tabSize=8:noTabs=false: |
96 | | */ |