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: packet-dcerpc-roverride.c,v 1.5 2004/01/27 04:15:48 guy Exp $
10 * Ethereal - Network traffic analyzer
11 * By Gerald Combs <gerald@ethereal.com>
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34 #ifdef HAVE_SYS_TYPES_H
35 #include <sys/types.h>
41 #include <epan/packet.h>
42 #include "packet-dcerpc.h"
45 static int proto_roverride = -1;
46 static int hf_roverride_opnum = -1;
49 static gint ett_roverride = -1;
52 static e_uuid_t uuid_roverride = { 0x5d978990, 0x4851, 0x11ca, { 0x99, 0x37, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x48 } };
53 static guint16 ver_roverride = 1;
56 static dcerpc_sub_dissector roverride_dissectors[] = {
57 { 0, "roverride_get_login_info", NULL, NULL},
58 { 1, "roverride_check_passwd", NULL, NULL},
59 { 2, "roverride_is_passwd_overridden", NULL, NULL},
60 { 3, "roverride_get_by_unix_num", NULL, NULL},
61 { 4, "roverride_get_group_info", NULL, NULL},
62 { 5, "roverride_check_group_passwd", NULL, NULL},
63 { 6, "roverride_is_grp_pwd_overridden", NULL, NULL},
64 { 0, NULL, NULL, NULL }
68 proto_register_roverride (void)
70 static hf_register_info hf[] = {
71 { &hf_roverride_opnum,
72 { "Operation", "roverride.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, "Operation", HFILL }},
75 static gint *ett[] = {
78 proto_roverride = proto_register_protocol ("Remote Override interface", "roverride", "roverride");
79 proto_register_field_array (proto_roverride, hf, array_length (hf));
80 proto_register_subtree_array (ett, array_length (ett));
84 proto_reg_handoff_roverride (void)
86 /* Register the protocol as dcerpc */
87 dcerpc_init_uuid (proto_roverride, ett_roverride, &uuid_roverride, ver_roverride, roverride_dissectors, hf_roverride_opnum);