1 /* packet-dcerpc-bossvr.c
\r
3 * Routines for dcerpc bossvr dissection
\r
4 * Copyright 2002, Jaime Fournier <jafour1@yahoo.com>
\r
5 * This information is based off the released idl files from opengroup.
\r
6 * ftp://ftp.opengroup.org/pub/dce122/dce/src/file.tar.gz file/bosserver/bbos_ncs_interface.idl
\r
8 * $Id: packet-dcerpc-bossvr.c,v 1.1 2002/09/12 09:12:26 sahlberg Exp $
\r
10 * Ethereal - Network traffic analyzer
\r
11 * By Gerald Combs <gerald@ethereal.com>
\r
12 * Copyright 1998 Gerald Combs
\r
14 * This program is free software; you can redistribute it and/or
\r
15 * modify it under the terms of the GNU General Public License
\r
16 * as published by the Free Software Foundation; either version 2
\r
17 * of the License, or (at your option) any later version.
\r
19 * This program is distributed in the hope that it will be useful,
\r
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
22 * GNU General Public License for more details.
\r
24 * You should have received a copy of the GNU General Public License
\r
25 * along with this program; if not, write to the Free Software
\r
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
\r
29 #ifdef HAVE_CONFIG_H
\r
34 #ifdef HAVE_SYS_TYPES_H
\r
35 #include <sys/types.h>
\r
41 #include <epan/packet.h>
\r
42 #include "packet-dcerpc.h"
\r
45 static int proto_bossvr = -1;
\r
46 static int hf_bossvr_opnum = -1;
\r
49 static gint ett_bossvr = -1;
\r
52 static e_uuid_t uuid_bossvr = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x01 } };
\r
53 static guint16 ver_bossvr = 0;
\r
56 static dcerpc_sub_dissector bossvr_dissectors[] = {
\r
57 { 0, "GetServerStatus", NULL, NULL},
\r
58 { 1, "CreateBnode", NULL, NULL},
\r
59 { 2, "DeleteBnode", NULL, NULL},
\r
60 { 3, "SetStatus", NULL, NULL},
\r
61 { 4, "GetStatus", NULL, NULL},
\r
62 { 5, "EnumerateInstance", NULL, NULL},
\r
63 { 6, "GetInstanceInfo", NULL, NULL},
\r
64 { 7, "GetInstanceParm", NULL, NULL},
\r
65 { 8, "AddSUser", NULL, NULL},
\r
66 { 9, "DeleteSUser", NULL, NULL},
\r
67 { 10, "ListSUsers", NULL, NULL},
\r
68 { 11, "ListKeys", NULL, NULL},
\r
69 { 12, "AddKey", NULL, NULL},
\r
70 { 13, "DeleteKey", NULL, NULL},
\r
71 { 14, "GenerateKey", NULL, NULL},
\r
72 { 15, "GarbageCollectKeys", NULL, NULL},
\r
73 { 16, "GetCellName", NULL, NULL},
\r
74 { 17, "SetTStatus", NULL, NULL},
\r
75 { 18, "ShutdownAll", NULL, NULL},
\r
76 { 19, "RestartAll", NULL, NULL},
\r
77 { 20, "StartupAll", NULL, NULL},
\r
78 { 21, "SetNoAuthFlag", NULL, NULL},
\r
79 { 22, "ReBossvr", NULL, NULL},
\r
80 { 23, "Restart", NULL, NULL},
\r
81 { 24, "Install", NULL, NULL},
\r
82 { 25, "UnInstall", NULL, NULL},
\r
83 { 26, "GetDates", NULL, NULL},
\r
84 { 27, "Prune", NULL, NULL},
\r
85 { 28, "SetRestartTime", NULL, NULL},
\r
86 { 29, "GetRestartTime", NULL, NULL},
\r
87 { 30, "GetLog", NULL, NULL},
\r
88 { 31, "WaitAll", NULL, NULL},
\r
89 { 32, "SetDebug", NULL, NULL},
\r
90 { 33, "GetServerInterfaces", NULL, NULL},
\r
91 { 0, NULL, NULL, NULL }
\r
94 static const value_string bossvr_opnum_vals[] = {
\r
95 { 0, "GetServerStatus" },
\r
96 { 1, "CreateBnode" },
\r
97 { 2, "DeleteBnode" },
\r
100 { 5, "EnumerateInstance" },
\r
101 { 6, "GetInstanceInfo" },
\r
102 { 7, "GetInstanceParm" },
\r
104 { 9, "DeleteSUser" },
\r
105 { 10, "ListSUsers" },
\r
106 { 11, "ListKeys" },
\r
108 { 13, "DeleteKey" },
\r
109 { 14, "GenerateKey" },
\r
110 { 15, "GarbageCollectKeys" },
\r
111 { 16, "GetCellName" },
\r
112 { 17, "SetTStatus" },
\r
113 { 18, "ShutdownAll" },
\r
114 { 19, "RestartAll" },
\r
115 { 20, "StartupAll" },
\r
116 { 21, "SetNoAuthFlag" },
\r
117 { 22, "ReBossvr" },
\r
120 { 25, "UnInstall" },
\r
121 { 26, "GetDates" },
\r
123 { 28, "SetRestartTime" },
\r
124 { 29, "GetRestartTime" },
\r
127 { 32, "SetDebug" },
\r
128 { 33, "GetServerInterfaces" },
\r
134 proto_register_bossvr (void)
\r
136 static hf_register_info hf[] = {
\r
137 { &hf_bossvr_opnum,
\r
138 { "Operation", "bossvr.opnum", FT_UINT16, BASE_DEC,
\r
139 VALS(bossvr_opnum_vals), 0x0, "Operation", HFILL }}
\r
142 static gint *ett[] = {
\r
145 proto_bossvr = proto_register_protocol ("DCE/RPC BOS Server", "BOSSVR", "bossvr");
\r
146 proto_register_field_array (proto_bossvr, hf, array_length (hf));
\r
147 proto_register_subtree_array (ett, array_length (ett));
\r
151 proto_reg_handoff_bossvr (void)
\r
153 /* Register the protocol as dcerpc */
\r
154 dcerpc_init_uuid (proto_bossvr, ett_bossvr, &uuid_bossvr, ver_bossvr, bossvr_dissectors, hf_bossvr_opnum);
\r