/src/wireshark/epan/dissectors/packet-dcerpc-bossvr.c
Line | Count | Source |
1 | | /* packet-dcerpc-bossvr.c |
2 | | * |
3 | | * Routines for DCE DFS Basic Overseer Server 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.tar.gz file/bosserver/bbos_ncs_interface.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_dcerpc_bossvr(void); |
22 | | void proto_reg_handoff_dcerpc_bossvr(void); |
23 | | |
24 | | |
25 | | static int proto_bossvr; |
26 | | static int hf_bossvr_opnum; |
27 | | |
28 | | |
29 | | static int ett_bossvr; |
30 | | |
31 | | |
32 | | static e_guid_t uuid_bossvr = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x01 } }; |
33 | | static uint16_t ver_bossvr; |
34 | | |
35 | | |
36 | | static const dcerpc_sub_dissector bossvr_dissectors[] = { |
37 | | { 0, "GetServerStatus", NULL, NULL}, |
38 | | { 1, "CreateBnode", NULL, NULL}, |
39 | | { 2, "DeleteBnode", NULL, NULL}, |
40 | | { 3, "SetStatus", NULL, NULL}, |
41 | | { 4, "GetStatus", NULL, NULL}, |
42 | | { 5, "EnumerateInstance", NULL, NULL}, |
43 | | { 6, "GetInstanceInfo", NULL, NULL}, |
44 | | { 7, "GetInstanceParm", NULL, NULL}, |
45 | | { 8, "AddSUser", NULL, NULL}, |
46 | | { 9, "DeleteSUser", NULL, NULL}, |
47 | | { 10, "ListSUsers", NULL, NULL}, |
48 | | { 11, "ListKeys", NULL, NULL}, |
49 | | { 12, "AddKey", NULL, NULL}, |
50 | | { 13, "DeleteKey", NULL, NULL}, |
51 | | { 14, "GenerateKey", NULL, NULL}, |
52 | | { 15, "GarbageCollectKeys", NULL, NULL}, |
53 | | { 16, "GetCellName", NULL, NULL}, |
54 | | { 17, "SetTStatus", NULL, NULL}, |
55 | | { 18, "ShutdownAll", NULL, NULL}, |
56 | | { 19, "RestartAll", NULL, NULL}, |
57 | | { 20, "StartupAll", NULL, NULL}, |
58 | | { 21, "SetNoAuthFlag", NULL, NULL}, |
59 | | { 22, "ReBossvr", NULL, NULL}, |
60 | | { 23, "Restart", NULL, NULL}, |
61 | | { 24, "Install", NULL, NULL}, |
62 | | { 25, "UnInstall", NULL, NULL}, |
63 | | { 26, "GetDates", NULL, NULL}, |
64 | | { 27, "Prune", NULL, NULL}, |
65 | | { 28, "SetRestartTime", NULL, NULL}, |
66 | | { 29, "GetRestartTime", NULL, NULL}, |
67 | | { 30, "GetLog", NULL, NULL}, |
68 | | { 31, "WaitAll", NULL, NULL}, |
69 | | { 32, "SetDebug", NULL, NULL}, |
70 | | { 33, "GetServerInterfaces", NULL, NULL}, |
71 | | { 0, NULL, NULL, NULL } |
72 | | }; |
73 | | |
74 | | void |
75 | | proto_register_dcerpc_bossvr (void) |
76 | 14 | { |
77 | 14 | static hf_register_info hf[] = { |
78 | 14 | { &hf_bossvr_opnum, |
79 | 14 | { "Operation", "bossvr.opnum", FT_UINT16, BASE_DEC, |
80 | 14 | NULL, 0x0, NULL, HFILL }} |
81 | 14 | }; |
82 | | |
83 | 14 | static int *ett[] = { |
84 | 14 | &ett_bossvr, |
85 | 14 | }; |
86 | 14 | proto_bossvr = proto_register_protocol ("DCE DFS Basic Overseer Server", "BOSSVR", "bossvr"); |
87 | 14 | proto_register_field_array (proto_bossvr, hf, array_length (hf)); |
88 | 14 | proto_register_subtree_array (ett, array_length (ett)); |
89 | 14 | } |
90 | | |
91 | | void |
92 | | proto_reg_handoff_dcerpc_bossvr (void) |
93 | 14 | { |
94 | | /* Register the protocol as dcerpc */ |
95 | 14 | dcerpc_init_uuid (proto_bossvr, ett_bossvr, &uuid_bossvr, ver_bossvr, bossvr_dissectors, hf_bossvr_opnum); |
96 | 14 | } |
97 | | |
98 | | /* |
99 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
100 | | * |
101 | | * Local variables: |
102 | | * c-basic-offset: 8 |
103 | | * tab-width: 8 |
104 | | * indent-tabs-mode: t |
105 | | * End: |
106 | | * |
107 | | * vi: set shiftwidth=8 tabstop=8 noexpandtab: |
108 | | * :indentSize=8:tabSize=8:noTabs=false: |
109 | | */ |