Remove all $Id$ from top of file
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-cprpc_server.c
1 /* packet-dcerpc-cprpc_server.c
2  * Routines for DNS Control Program Server dissection
3  * Copyright 2002, Jaime Fournier <Jaime.Fournier@hush.com>
4  * This information is based off the released idl files from opengroup.
5  * ftp://ftp.opengroup.org/pub/dce122/dce/src/directory.tar.gz directory/cds/stubs/cprpc_server.idl
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25
26 #include "config.h"
27
28
29 #include <glib.h>
30 #include <epan/packet.h>
31 #include "packet-dcerpc.h"
32
33
34 static int proto_cprpc_server = -1;
35 static int hf_cprpc_server_opnum = -1;
36
37
38 static gint ett_cprpc_server = -1;
39
40
41 static e_uuid_t uuid_cprpc_server = { 0x4885772c, 0xc6d3, 0x11ca, { 0x84, 0xc6, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
42 static guint16  ver_cprpc_server = 1;
43
44
45 static dcerpc_sub_dissector cprpc_server_dissectors[] = {
46         { 0, "dnscp_server", NULL, NULL},
47         { 0, NULL, NULL, NULL }
48 };
49
50 void
51 proto_register_cprpc_server (void)
52 {
53         static hf_register_info hf[] = {
54           { &hf_cprpc_server_opnum,
55             { "Operation", "cprpc_server.opnum", FT_UINT16, BASE_DEC,
56               NULL, 0x0, NULL, HFILL }}
57         };
58
59         static gint *ett[] = {
60                 &ett_cprpc_server,
61         };
62         proto_cprpc_server = proto_register_protocol ("DNS Control Program Server", "cprpc_server", "cprpc_server");
63         proto_register_field_array (proto_cprpc_server, hf, array_length (hf));
64         proto_register_subtree_array (ett, array_length (ett));
65 }
66
67 void
68 proto_reg_handoff_cprpc_server (void)
69 {
70         /* Register the protocol as dcerpc */
71         dcerpc_init_uuid (proto_cprpc_server, ett_cprpc_server, &uuid_cprpc_server, ver_cprpc_server, cprpc_server_dissectors, hf_cprpc_server_opnum);
72 }