/src/wireshark/epan/dissectors/packet-dcerpc-rs_plcy.c
Line | Count | Source |
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 | | * SPDX-License-Identifier: GPL-2.0-or-later |
13 | | */ |
14 | | |
15 | | #include "config.h" |
16 | | |
17 | | #include <epan/packet.h> |
18 | | #include "packet-dcerpc.h" |
19 | | |
20 | | void proto_register_dcerpc_rs_plcy(void); |
21 | | void proto_reg_handoff_dcerpc_rs_plcy(void); |
22 | | |
23 | | /* Global hf index fields */ |
24 | | |
25 | | static int proto_dcerpc_rs_plcy; |
26 | | static int hf_rs_plcy_opnum; |
27 | | static int ett_dcerpc_rs_plcy; |
28 | | |
29 | | static e_guid_t uuid_dcerpc_rs_plcy = { |
30 | | 0x4c878280, 0x4000, 0x0000, |
31 | | { 0x0D, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 } |
32 | | }; |
33 | | |
34 | | static uint16_t ver_dcerpc_rs_plcy = 1; |
35 | | |
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 } |
48 | | }; |
49 | | |
50 | | void |
51 | | proto_register_dcerpc_rs_plcy(void) |
52 | 15 | { |
53 | 15 | static hf_register_info hf[] = { |
54 | | |
55 | | /* Global indexes */ |
56 | | |
57 | | |
58 | 15 | { &hf_rs_plcy_opnum, |
59 | 15 | { "Operation", "rs_plcy.opnum", FT_UINT16, BASE_DEC, |
60 | 15 | NULL, 0x0, NULL, HFILL }}, |
61 | | |
62 | 15 | }; |
63 | | |
64 | 15 | static int *ett[] = { |
65 | 15 | &ett_dcerpc_rs_plcy |
66 | 15 | }; |
67 | | |
68 | 15 | proto_dcerpc_rs_plcy = proto_register_protocol("RS Interface properties", "RS_PLCY", "rs_plcy"); |
69 | | |
70 | 15 | proto_register_field_array(proto_dcerpc_rs_plcy, hf, |
71 | 15 | array_length(hf)); |
72 | | |
73 | 15 | proto_register_subtree_array(ett, array_length(ett)); |
74 | 15 | } |
75 | | |
76 | | void |
77 | | proto_reg_handoff_dcerpc_rs_plcy(void) |
78 | 15 | { |
79 | | /* Register protocol as dcerpc */ |
80 | | |
81 | 15 | dcerpc_init_uuid(proto_dcerpc_rs_plcy, ett_dcerpc_rs_plcy, |
82 | 15 | &uuid_dcerpc_rs_plcy, ver_dcerpc_rs_plcy, |
83 | 15 | dcerpc_rs_plcy_dissectors, hf_rs_plcy_opnum); |
84 | 15 | } |
85 | | |
86 | | /* |
87 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
88 | | * |
89 | | * Local variables: |
90 | | * c-basic-offset: 8 |
91 | | * tab-width: 8 |
92 | | * indent-tabs-mode: t |
93 | | * End: |
94 | | * |
95 | | * vi: set shiftwidth=8 tabstop=8 noexpandtab: |
96 | | * :indentSize=8:tabSize=8:noTabs=false: |
97 | | */ |