1 /* packet-dcerpc-roverride.c
\r
3 * Routines for Remote Override Interface
\r
4 * Copyright 2002, Jaime Fournier <jafour1@yahoo.com>
\r
5 * This information is based off the released idl files from opengroup.
\r
6 * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/roverride.idl
\r
8 * $Id: packet-dcerpc-roverride.c,v 1.1 2002/09/11 09:17:25 sahlberg Exp $
\r
10 * Ethereal - Network traffic analyzer
\r
11 * By Gerald Combs <gerald@ethereal.com>
\r
12 * Copyright 1998 Gerald Combs
\r
14 * This program is free software; you can redistribute it and/or
\r
15 * modify it under the terms of the GNU General Public License
\r
16 * as published by the Free Software Foundation; either version 2
\r
17 * of the License, or (at your option) any later version.
\r
19 * This program is distributed in the hope that it will be useful,
\r
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
22 * GNU General Public License for more details.
\r
24 * You should have received a copy of the GNU General Public License
\r
25 * along with this program; if not, write to the Free Software
\r
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
\r
29 #ifdef HAVE_CONFIG_H
\r
34 #ifdef HAVE_SYS_TYPES_H
\r
35 #include <sys/types.h>
\r
41 #include <epan/packet.h>
\r
42 #include "packet-dcerpc.h"
\r
45 static int proto_roverride = -1;
\r
46 static int hf_roverride_opnum = -1;
\r
49 static gint ett_roverride = -1;
\r
52 static e_uuid_t uuid_roverride = { 0x5d978990, 0x4851, 0x11ca, { 0x99, 0x37, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x48 } };
\r
53 static guint16 ver_roverride = 1;
\r
56 static dcerpc_sub_dissector roverride_dissectors[] = {
\r
57 { 0, "roverride_get_login_info", NULL, NULL},
\r
58 { 1, "roverride_check_passwd", NULL, NULL},
\r
59 { 2, "roverride_is_passwd_overridden", NULL, NULL},
\r
60 { 3, "roverride_get_by_unix_num", NULL, NULL},
\r
61 { 4, "roverride_get_group_info", NULL, NULL},
\r
62 { 5, "roverride_check_group_passwd", NULL, NULL},
\r
63 { 6, "roverride_is_grp_pwd_overridden", NULL, NULL},
\r
64 { 0, NULL, NULL, NULL }
\r
67 static const value_string roverride_opnum_vals[] = {
\r
68 { 0, "roverride_get_login_info" },
\r
69 { 1, "roverride_check_passwd" },
\r
70 { 2, "roverride_is_passwd_overridden" },
\r
71 { 3, "roverride_get_by_unix_num" },
\r
72 { 4, "roverride_get_group_info" },
\r
73 { 5, "roverride_check_group_passwd" },
\r
74 { 6, "roverride_is_grp_pwd_overridden" },
\r
79 proto_register_roverride (void)
\r
81 static hf_register_info hf[] = {
\r
82 { &hf_roverride_opnum,
\r
83 { "Operation", "roverride.opnum", FT_UINT16, BASE_DEC, VALS(roverride_opnum_vals), 0x0, "Operation", HFILL }},
\r
86 static gint *ett[] = {
\r
89 proto_roverride = proto_register_protocol ("Remote Override interface", "roverride", "roverride");
\r
90 proto_register_field_array (proto_roverride, hf, array_length (hf));
\r
91 proto_register_subtree_array (ett, array_length (ett));
\r
95 proto_reg_handoff_roverride (void)
\r
97 /* Register the protocol as dcerpc */
\r
98 dcerpc_init_uuid (proto_roverride, ett_roverride, &uuid_roverride, ver_roverride, roverride_dissectors, hf_roverride_opnum);
\r