MSWSP: add two more Property Sets
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-rep_proc.c
blob69096ce8c7792d101a65ae92b202f24470fb73eb
1 /* packet-dcerpc-rep_proc.c
3 * Routines for dcerpc Replica Server Call 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/fsint/rep_proc.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_rep_proc = -1;
38 static int hf_rep_proc_opnum = -1;
41 static gint ett_rep_proc = -1;
44 static e_uuid_t uuid_rep_proc = { 0x4d37f2dd, 0xed43, 0x0005, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
45 static guint16 ver_rep_proc = 4;
48 static dcerpc_sub_dissector rep_proc_dissectors[] = {
49 { 0, "CheckReplicationConfig", NULL, NULL },
50 { 1, "AllCheckReplicationConfig", NULL, NULL },
51 { 2, "KeepFilesAlive", NULL , NULL},
52 { 3, "GetVolChangedFiles", NULL, NULL },
53 { 4, "GetRepStatus", NULL, NULL},
54 { 5, "GetRepServerStatus", NULL, NULL},
55 { 6, "UpdateSelf", NULL, NULL},
56 { 7, "Probe", NULL, NULL},
57 { 8, "GetOneRepStatus", NULL, NULL },
58 { 9, "GetServerInterfaces", NULL, NULL},
59 { 0, NULL, NULL, NULL }
63 void
64 proto_register_rep_proc (void)
66 static hf_register_info hf[] = {
67 { &hf_rep_proc_opnum,
68 { "Operation", "rep_proc.opnum", FT_UINT16, BASE_DEC,
69 NULL, 0x0, NULL, HFILL }}
72 static gint *ett[] = {
73 &ett_rep_proc,
75 proto_rep_proc = proto_register_protocol ("DCE DFS Replication Server", "REP_PROC", "rep_proc");
76 proto_register_field_array (proto_rep_proc, hf, array_length (hf));
77 proto_register_subtree_array (ett, array_length (ett));
80 void
81 proto_reg_handoff_rep_proc (void)
83 /* Register the protocol as dcerpc */
84 dcerpc_init_uuid (proto_rep_proc, ett_rep_proc, &uuid_rep_proc, ver_rep_proc, rep_proc_dissectors, hf_rep_proc_opnum);