HTTPS (almost) everywhere.
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-bossvr.c
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 = -1;
26 static int hf_bossvr_opnum = -1;
27
28
29 static gint ett_bossvr = -1;
30
31
32 static e_guid_t uuid_bossvr = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x01 } };
33 static guint16  ver_bossvr = 0;
34
35
36 static 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 {
77         static hf_register_info hf[] = {
78                 { &hf_bossvr_opnum,
79                   { "Operation", "bossvr.opnum", FT_UINT16, BASE_DEC,
80                     NULL, 0x0, NULL, HFILL }}
81         };
82
83         static gint *ett[] = {
84                 &ett_bossvr,
85         };
86         proto_bossvr = proto_register_protocol ("DCE DFS Basic Overseer Server", "BOSSVR", "bossvr");
87         proto_register_field_array (proto_bossvr, hf, array_length (hf));
88         proto_register_subtree_array (ett, array_length (ett));
89 }
90
91 void
92 proto_reg_handoff_dcerpc_bossvr (void)
93 {
94         /* Register the protocol as dcerpc */
95         dcerpc_init_uuid (proto_bossvr, ett_bossvr, &uuid_bossvr, ver_bossvr, bossvr_dissectors, hf_bossvr_opnum);
96 }
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  */