HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-roverride.c
blobc54ef28482981f851fa4d5bcea3b806b08f79035
1 /* packet-dcerpc-roverride.c
3 * Routines for Remote Override Interface
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/roverride.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_roverride = -1;
38 static int hf_roverride_opnum = -1;
41 static gint ett_roverride = -1;
44 static e_uuid_t uuid_roverride = { 0x5d978990, 0x4851, 0x11ca, { 0x99, 0x37, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x48 } };
45 static guint16 ver_roverride = 1;
48 static dcerpc_sub_dissector roverride_dissectors[] = {
49 { 0, "roverride_get_login_info", NULL, NULL},
50 { 1, "roverride_check_passwd", NULL, NULL},
51 { 2, "roverride_is_passwd_overridden", NULL, NULL},
52 { 3, "roverride_get_by_unix_num", NULL, NULL},
53 { 4, "roverride_get_group_info", NULL, NULL},
54 { 5, "roverride_check_group_passwd", NULL, NULL},
55 { 6, "roverride_is_grp_pwd_overridden", NULL, NULL},
56 { 0, NULL, NULL, NULL }
59 void
60 proto_register_roverride (void)
62 static hf_register_info hf[] = {
63 { &hf_roverride_opnum,
64 { "Operation", "roverride.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
67 static gint *ett[] = {
68 &ett_roverride,
70 proto_roverride = proto_register_protocol ("Remote Override interface", "roverride", "roverride");
71 proto_register_field_array (proto_roverride, hf, array_length (hf));
72 proto_register_subtree_array (ett, array_length (ett));
75 void
76 proto_reg_handoff_roverride (void)
78 /* Register the protocol as dcerpc */
79 dcerpc_init_uuid (proto_roverride, ett_roverride, &uuid_roverride, ver_roverride, roverride_dissectors, hf_roverride_opnum);