1 /* packet-dcerpc-rs_plcy.c
3 * Routines for dcerpc RS_PLCY dissection
4 * Copyright 2003, 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 rs_plcy.idl
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.
32 #include <epan/packet.h>
33 #include "packet-dcerpc.h"
35 /* Global hf index fields */
37 static int proto_dcerpc_rs_plcy
= -1;
38 static int hf_rs_plcy_opnum
= -1;
39 static gint ett_dcerpc_rs_plcy
= -1;
41 static e_uuid_t uuid_dcerpc_rs_plcy
= {
42 0x4c878280, 0x4000, 0x0000,
43 { 0x0D, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 }
46 static guint16 ver_dcerpc_rs_plcy
= 1;
48 static dcerpc_sub_dissector dcerpc_rs_plcy_dissectors
[] = {
49 { 0, "rs_properties_get_info", NULL
, NULL
},
50 { 1, "rs_properties_set_info ", NULL
, NULL
},
51 { 2, "rs_policy_get_info", NULL
, NULL
},
52 { 3, "rs_policy_set_info", NULL
, NULL
},
53 { 4, "rs_policy_get_effective", NULL
, NULL
},
54 { 5, "rs_policy_get_override_info", NULL
, NULL
},
55 { 6, "rs_policy_set_override_info", NULL
, NULL
},
56 { 7, "rs_auth_policy_get_info", NULL
, NULL
},
57 { 8, "rs_auth_policy_get_effective", NULL
, NULL
},
58 { 9, "rs_auth_policy_set_info", NULL
, NULL
},
59 { 0, NULL
, NULL
, NULL
}
63 proto_register_dcerpc_rs_plcy(void)
65 static hf_register_info hf
[] = {
71 { "Operation", "rs_plcy.opnum", FT_UINT16
, BASE_DEC
,
72 NULL
, 0x0, NULL
, HFILL
}},
76 static gint
*ett
[] = {
80 proto_dcerpc_rs_plcy
= proto_register_protocol(
81 "RS Interface properties", "RS_PLCY", "rs_plcy");
83 proto_register_field_array(proto_dcerpc_rs_plcy
, hf
,
86 proto_register_subtree_array(ett
, array_length(ett
));
90 proto_reg_handoff_dcerpc_rs_plcy(void)
92 /* Register protocol as dcerpc */
94 dcerpc_init_uuid(proto_dcerpc_rs_plcy
, ett_dcerpc_rs_plcy
,
95 &uuid_dcerpc_rs_plcy
, ver_dcerpc_rs_plcy
,
96 dcerpc_rs_plcy_dissectors
, hf_rs_plcy_opnum
);