MSWSP: add two more Property Sets
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-rs_repadm.c
blob8dcf999cd5ab3d811cc8136f66bd0f2114d05d08
1 /* packet-dcerpc-rs_repadm.c
3 * Routines for dcerpc Registry server administration operations.
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/security.tar.gz security/idl/rs_repadm.idl
8 * $Id$
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29 #include "config.h"
32 #include <glib.h>
33 #include <epan/packet.h>
34 #include "packet-dcerpc.h"
37 static int proto_rs_repadm = -1;
38 static int hf_rs_repadm_opnum = -1;
41 static gint ett_rs_repadm = -1;
44 static e_uuid_t uuid_rs_repadm = { 0x5b8c2fa8, 0xb60b, 0x11c9, { 0xbe, 0x0f, 0x08, 0x00, 0x1e, 0x01, 0x8f, 0xa0 } };
45 static guint16 ver_rs_repadm = 1;
50 static dcerpc_sub_dissector rs_repadm_dissectors[] = {
51 { 0, "stop", NULL, NULL},
52 { 1, "maint", NULL, NULL},
53 { 2, "mkey", NULL, NULL},
54 { 3, "info", NULL, NULL},
55 { 4, "info_full", NULL, NULL},
56 { 5, "destroy", NULL, NULL},
57 { 6, "init_replica", NULL, NULL},
58 { 7, "change_master", NULL, NULL},
59 { 8, "become_master", NULL, NULL},
60 { 9, "become_slave", NULL, NULL},
61 { 10, "set_sw_rev", NULL, NULL},
62 { 11, "get_sw_vers_info", NULL, NULL},
63 { 0, NULL, NULL, NULL }
67 void
68 proto_register_rs_repadm (void)
70 static hf_register_info hf[] = {
71 { &hf_rs_repadm_opnum,
72 { "Operation", "rs_repadm.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }}
75 static gint *ett[] = {
76 &ett_rs_repadm,
78 proto_rs_repadm = proto_register_protocol ("Registry server administration operations.", "RS_REPADM", "rs_repadm");
79 proto_register_field_array (proto_rs_repadm, hf, array_length (hf));
80 proto_register_subtree_array (ett, array_length (ett));
83 void
84 proto_reg_handoff_rs_repadm (void)
86 /* Register the protocol as dcerpc */
87 dcerpc_init_uuid (proto_rs_repadm, ett_rs_repadm, &uuid_rs_repadm, ver_rs_repadm, rs_repadm_dissectors, hf_rs_repadm_opnum);