/src/wireshark/epan/dissectors/packet-dcerpc-rs_prop_attr.c
Line | Count | Source |
1 | | /* packet-dcerpc-rs_prop_attr.c |
2 | | * |
3 | | * Routines for rs_prop_attr 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_attr.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_attr (void); |
22 | | void proto_reg_handoff_rs_prop_attr (void); |
23 | | |
24 | | static int proto_rs_prop_attr; |
25 | | static int hf_rs_prop_attr_opnum; |
26 | | |
27 | | |
28 | | static int ett_rs_prop_attr; |
29 | | static e_guid_t uuid_rs_prop_attr = |
30 | | { 0x0eff23e6, 0x555a, 0x11cd, {0x95, 0xbf, 0x08, 0x00, 0x09, 0x27, 0x84, |
31 | | 0xc3} }; |
32 | | |
33 | | static uint16_t ver_rs_prop_attr = 1; |
34 | | |
35 | | |
36 | | static const dcerpc_sub_dissector rs_prop_attr_dissectors[] = { |
37 | | {0, "update", NULL, NULL}, |
38 | | {1, "delete", NULL, NULL}, |
39 | | {0, NULL, NULL, NULL} |
40 | | }; |
41 | | |
42 | | void |
43 | | proto_register_rs_prop_attr (void) |
44 | 14 | { |
45 | 14 | static hf_register_info hf[] = { |
46 | 14 | {&hf_rs_prop_attr_opnum, |
47 | 14 | {"Operation", "rs_prop_attr.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, |
48 | 14 | NULL, HFILL}}, |
49 | 14 | }; |
50 | | |
51 | 14 | static int *ett[] = { |
52 | 14 | &ett_rs_prop_attr, |
53 | 14 | }; |
54 | 14 | proto_rs_prop_attr = |
55 | 14 | proto_register_protocol ("DCE/RPC Prop Attr", "rs_prop_attr", |
56 | 14 | "rs_prop_attr"); |
57 | 14 | proto_register_field_array (proto_rs_prop_attr, hf, array_length (hf)); |
58 | 14 | proto_register_subtree_array (ett, array_length (ett)); |
59 | 14 | } |
60 | | |
61 | | void |
62 | | proto_reg_handoff_rs_prop_attr (void) |
63 | 14 | { |
64 | | /* Register the protocol as dcerpc */ |
65 | 14 | dcerpc_init_uuid (proto_rs_prop_attr, ett_rs_prop_attr, &uuid_rs_prop_attr, |
66 | 14 | ver_rs_prop_attr, rs_prop_attr_dissectors, |
67 | 14 | hf_rs_prop_attr_opnum); |
68 | 14 | } |
69 | | |
70 | | /* |
71 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
72 | | * |
73 | | * Local Variables: |
74 | | * c-basic-offset: 2 |
75 | | * tab-width: 8 |
76 | | * indent-tabs-mode: nil |
77 | | * End: |
78 | | * |
79 | | * ex: set shiftwidth=2 tabstop=8 expandtab: |
80 | | * :indentSize=2:tabSize=8:noTabs=true: |
81 | | */ |