epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / packet-dcerpc-rs_plcy.c
blob85b71f1f4e661beef0713250567c805f14f4b946
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
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #include "config.h"
17 #include <epan/packet.h>
18 #include "packet-dcerpc.h"
20 void proto_register_dcerpc_rs_plcy(void);
21 void proto_reg_handoff_dcerpc_rs_plcy(void);
23 /* Global hf index fields */
25 static int proto_dcerpc_rs_plcy;
26 static int hf_rs_plcy_opnum;
27 static int ett_dcerpc_rs_plcy;
29 static e_guid_t uuid_dcerpc_rs_plcy = {
30 0x4c878280, 0x4000, 0x0000,
31 { 0x0D, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 }
34 static uint16_t ver_dcerpc_rs_plcy = 1;
36 static const dcerpc_sub_dissector dcerpc_rs_plcy_dissectors[] = {
37 { 0, "rs_properties_get_info", NULL, NULL },
38 { 1, "rs_properties_set_info ", NULL, NULL },
39 { 2, "rs_policy_get_info", NULL, NULL },
40 { 3, "rs_policy_set_info", NULL, NULL },
41 { 4, "rs_policy_get_effective", NULL, NULL },
42 { 5, "rs_policy_get_override_info", NULL, NULL },
43 { 6, "rs_policy_set_override_info", NULL, NULL },
44 { 7, "rs_auth_policy_get_info", NULL, NULL },
45 { 8, "rs_auth_policy_get_effective", NULL, NULL },
46 { 9, "rs_auth_policy_set_info", NULL, NULL },
47 { 0, NULL, NULL, NULL }
50 void
51 proto_register_dcerpc_rs_plcy(void)
53 static hf_register_info hf[] = {
55 /* Global indexes */
58 { &hf_rs_plcy_opnum,
59 { "Operation", "rs_plcy.opnum", FT_UINT16, BASE_DEC,
60 NULL, 0x0, NULL, HFILL }},
64 static int *ett[] = {
65 &ett_dcerpc_rs_plcy
68 proto_dcerpc_rs_plcy = proto_register_protocol("RS Interface properties", "RS_PLCY", "rs_plcy");
70 proto_register_field_array(proto_dcerpc_rs_plcy, hf,
71 array_length(hf));
73 proto_register_subtree_array(ett, array_length(ett));
76 void
77 proto_reg_handoff_dcerpc_rs_plcy(void)
79 /* Register protocol as dcerpc */
81 dcerpc_init_uuid(proto_dcerpc_rs_plcy, ett_dcerpc_rs_plcy,
82 &uuid_dcerpc_rs_plcy, ver_dcerpc_rs_plcy,
83 dcerpc_rs_plcy_dissectors, hf_rs_plcy_opnum);
87 * Editor modelines - https://www.wireshark.org/tools/modelines.html
89 * Local variables:
90 * c-basic-offset: 8
91 * tab-width: 8
92 * indent-tabs-mode: t
93 * End:
95 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
96 * :indentSize=8:tabSize=8:noTabs=false: