MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-cprpc_server.c
blobab62ad93fc642f8ee1013328bf5a87ed4183b34a
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
7 * $Id$
9 * Wireshark - Network traffic analyzer
10 * By Gerald Combs <gerald@wireshark.org>
11 * Copyright 1998 Gerald Combs
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #include "config.h"
31 #include <glib.h>
32 #include <epan/packet.h>
33 #include "packet-dcerpc.h"
36 static int proto_cprpc_server = -1;
37 static int hf_cprpc_server_opnum = -1;
40 static gint ett_cprpc_server = -1;
43 static e_uuid_t uuid_cprpc_server = { 0x4885772c, 0xc6d3, 0x11ca, { 0x84, 0xc6, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
44 static guint16 ver_cprpc_server = 1;
47 static dcerpc_sub_dissector cprpc_server_dissectors[] = {
48 { 0, "dnscp_server", NULL, NULL},
49 { 0, NULL, NULL, NULL }
52 void
53 proto_register_cprpc_server (void)
55 static hf_register_info hf[] = {
56 { &hf_cprpc_server_opnum,
57 { "Operation", "cprpc_server.opnum", FT_UINT16, BASE_DEC,
58 NULL, 0x0, NULL, HFILL }}
61 static gint *ett[] = {
62 &ett_cprpc_server,
64 proto_cprpc_server = proto_register_protocol ("DNS Control Program Server", "cprpc_server", "cprpc_server");
65 proto_register_field_array (proto_cprpc_server, hf, array_length (hf));
66 proto_register_subtree_array (ett, array_length (ett));
69 void
70 proto_reg_handoff_cprpc_server (void)
72 /* Register the protocol as dcerpc */
73 dcerpc_init_uuid (proto_cprpc_server, ett_cprpc_server, &uuid_cprpc_server, ver_cprpc_server, cprpc_server_dissectors, hf_cprpc_server_opnum);