checkAPIs.pl: support for new-style dissectors in check_hf_entries
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-rs_prop_plcy.c
1 /* packet-dcerpc-rs_prop_plcy.c
2  *
3  * Routines for rs_prop_plcy dissection
4  * Copyright 2004, 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/rs_prop_plcy.idl
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * SPDX-License-Identifier: GPL-2.0-or-later
13  */
14
15 #include "config.h"
16
17
18 #include <epan/packet.h>
19 #include "packet-dcerpc.h"
20
21 void proto_register_rs_prop_plcy (void);
22 void proto_reg_handoff_rs_prop_plcy (void);
23
24 static int proto_rs_prop_plcy = -1;
25 static int hf_rs_prop_plcy_opnum = -1;
26
27
28 static gint ett_rs_prop_plcy = -1;
29 static e_guid_t uuid_rs_prop_plcy =
30   { 0xe6ac5cb8, 0xde3e, 0x11ca, {0x93, 0x76, 0x08, 0x00, 0x1e, 0x03, 0x94,
31                                  0xc7} };
32
33 static guint16 ver_rs_prop_plcy = 1;
34
35
36 static dcerpc_sub_dissector rs_prop_plcy_dissectors[] = {
37   {0, "rs_prop_properties_set_info",     NULL, NULL},
38   {1, "rs_prop_plcy_set_info",           NULL, NULL},
39   {2, "rs_prop_auth_plcy_set_info",      NULL, NULL},
40   {3, "rs_prop_plcy_set_dom_cache_info", NULL, NULL},
41   {0, NULL, NULL, NULL}
42 };
43
44 void
45 proto_register_rs_prop_plcy (void)
46 {
47   static hf_register_info hf[] = {
48     {&hf_rs_prop_plcy_opnum,
49      {"Operation", "rs_prop_plcy.opnum", FT_UINT16, BASE_DEC, NULL, 0x0,
50       NULL, HFILL}},
51   };
52
53   static gint *ett[] = {
54     &ett_rs_prop_plcy,
55   };
56   proto_rs_prop_plcy =
57     proto_register_protocol
58     ("DCE/RPC Registry server propagation interface - properties and policies",
59      "rs_prop_plcy", "rs_prop_plcy");
60   proto_register_field_array (proto_rs_prop_plcy, hf, array_length (hf));
61   proto_register_subtree_array (ett, array_length (ett));
62 }
63
64 void
65 proto_reg_handoff_rs_prop_plcy (void)
66 {
67   /* Register the protocol as dcerpc */
68   dcerpc_init_uuid (proto_rs_prop_plcy, ett_rs_prop_plcy, &uuid_rs_prop_plcy,
69                     ver_rs_prop_plcy, rs_prop_plcy_dissectors,
70                     hf_rs_prop_plcy_opnum);
71 }
72
73 /*
74  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
75  *
76  * Local Variables:
77  * c-basic-offset: 2
78  * tab-width: 8
79  * indent-tabs-mode: nil
80  * End:
81  *
82  * ex: set shiftwidth=2 tabstop=8 expandtab:
83  * :indentSize=2:tabSize=8:noTabs=true:
84  */