Update Free Software Foundation address.
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-rep_proc.c
1 /* packet-dcerpc-rep_proc.c
2  *
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
7  *
8  * $Id$
9  *
10  * Wireshark - Network traffic analyzer
11  * By Gerald Combs <gerald@wireshark.org>
12  * Copyright 1998 Gerald Combs
13  *
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.
18  *
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.
23  *
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.
27  */
28
29 #ifdef HAVE_CONFIG_H
30 #include "config.h"
31 #endif
32
33
34 #include <glib.h>
35 #include <epan/packet.h>
36 #include "packet-dcerpc.h"
37
38
39 static int proto_rep_proc = -1;
40 static int hf_rep_proc_opnum = -1;
41
42
43 static gint ett_rep_proc = -1;
44
45
46 static e_uuid_t uuid_rep_proc = { 0x4d37f2dd, 0xed43, 0x0005, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
47 static guint16  ver_rep_proc = 4;
48
49
50 static dcerpc_sub_dissector rep_proc_dissectors[] = {
51         { 0, "CheckReplicationConfig", NULL, NULL },
52         { 1, "AllCheckReplicationConfig", NULL, NULL },
53         { 2, "KeepFilesAlive", NULL , NULL},
54         { 3, "GetVolChangedFiles", NULL, NULL },
55         { 4, "GetRepStatus", NULL, NULL},
56         { 5, "GetRepServerStatus", NULL, NULL},
57         { 6, "UpdateSelf", NULL, NULL},
58         { 7, "Probe", NULL, NULL},
59         { 8, "GetOneRepStatus", NULL, NULL },
60         { 9, "GetServerInterfaces", NULL, NULL},
61         { 0, NULL, NULL, NULL }
62 };
63
64
65 void
66 proto_register_rep_proc (void)
67 {
68         static hf_register_info hf[] = {
69           { &hf_rep_proc_opnum,
70             { "Operation", "rep_proc.opnum", FT_UINT16, BASE_DEC,
71               NULL, 0x0, NULL, HFILL }}
72         };
73
74         static gint *ett[] = {
75                 &ett_rep_proc,
76         };
77         proto_rep_proc = proto_register_protocol ("DCE DFS Replication Server", "REP_PROC", "rep_proc");
78         proto_register_field_array (proto_rep_proc, hf, array_length (hf));
79         proto_register_subtree_array (ett, array_length (ett));
80 }
81
82 void
83 proto_reg_handoff_rep_proc (void)
84 {
85         /* Register the protocol as dcerpc */
86         dcerpc_init_uuid (proto_rep_proc, ett_rep_proc, &uuid_rep_proc, ver_rep_proc, rep_proc_dissectors, hf_rep_proc_opnum);
87 }