Use MAC address documentation range in filter examples
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-rs_plcy.c
1 /* packet-dcerpc-rs_plcy.c
2  *
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
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25  */
26
27 #include "config.h"
28
29 #include <epan/packet.h>
30 #include "packet-dcerpc.h"
31
32 void proto_register_dcerpc_rs_plcy(void);
33 void proto_reg_handoff_dcerpc_rs_plcy(void);
34
35 /* Global hf index fields */
36
37 static int proto_dcerpc_rs_plcy = -1;
38 static int hf_rs_plcy_opnum = -1;
39 static gint ett_dcerpc_rs_plcy = -1;
40
41 static e_guid_t uuid_dcerpc_rs_plcy = {
42         0x4c878280, 0x4000, 0x0000,
43         { 0x0D, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 }
44 };
45
46 static guint16 ver_dcerpc_rs_plcy = 1;
47
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 }
60 };
61
62 void
63 proto_register_dcerpc_rs_plcy(void)
64 {
65         static hf_register_info hf[] = {
66
67                 /* Global indexes */
68
69
70                 { &hf_rs_plcy_opnum,
71                   { "Operation", "rs_plcy.opnum", FT_UINT16, BASE_DEC,
72                     NULL, 0x0, NULL, HFILL }},
73
74         };
75
76         static gint *ett[] = {
77                 &ett_dcerpc_rs_plcy
78         };
79
80         proto_dcerpc_rs_plcy = proto_register_protocol(
81                 "RS Interface properties", "RS_PLCY", "rs_plcy");
82
83         proto_register_field_array(proto_dcerpc_rs_plcy, hf,
84                 array_length(hf));
85
86         proto_register_subtree_array(ett, array_length(ett));
87 }
88
89 void
90 proto_reg_handoff_dcerpc_rs_plcy(void)
91 {
92         /* Register protocol as dcerpc */
93
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);
97 }
98
99 /*
100  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
101  *
102  * Local variables:
103  * c-basic-offset: 8
104  * tab-width: 8
105  * indent-tabs-mode: t
106  * End:
107  *
108  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
109  * :indentSize=8:tabSize=8:noTabs=false:
110  */