/src/wireshark/epan/dissectors/packet-dcerpc-cds_solicit.c
Line | Count | Source |
1 | | /* packet-dcerpc-cds_solicit.c |
2 | | * Routines for cds_solicit dissection |
3 | | * Copyright 2002, Jaime Fournier <Jaime.Fournier@hush.com> |
4 | | * This information is based off the released idl files from opengroup. |
5 | | * ftp://ftp.opengroup.org/pub/dce122/dce/src/directory.tar.gz directory/cds/stubs/cds_solicit.idl |
6 | | * |
7 | | * Wireshark - Network traffic analyzer |
8 | | * By Gerald Combs <gerald@wireshark.org> |
9 | | * Copyright 1998 Gerald Combs |
10 | | * |
11 | | * SPDX-License-Identifier: GPL-2.0-or-later |
12 | | */ |
13 | | |
14 | | #include "config.h" |
15 | | |
16 | | |
17 | | #include <epan/packet.h> |
18 | | #include "packet-dcerpc.h" |
19 | | |
20 | | void proto_register_cds_solicit (void); |
21 | | void proto_reg_handoff_cds_solicit (void); |
22 | | |
23 | | static int proto_cds_solicit; |
24 | | static int hf_cds_solicit_opnum; |
25 | | |
26 | | |
27 | | static int ett_cds_solicit; |
28 | | |
29 | | |
30 | | static e_guid_t uuid_cds_solicit = { 0xd5579459, 0x8bca, 0x11ca, { 0xb7, 0x71, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } }; |
31 | | static uint16_t ver_cds_solicit = 1; |
32 | | |
33 | | |
34 | | static const dcerpc_sub_dissector cds_solicit_dissectors[] = { |
35 | | { 0, "cds_Solicit", NULL, NULL}, |
36 | | { 1, "cds_Advertise", NULL, NULL}, |
37 | | { 2, "cds_SolicitServer", NULL, NULL}, |
38 | | { 0, NULL, NULL, NULL } |
39 | | }; |
40 | | |
41 | | void |
42 | | proto_register_cds_solicit (void) |
43 | 14 | { |
44 | 14 | static hf_register_info hf[] = { |
45 | 14 | { &hf_cds_solicit_opnum, |
46 | 14 | { "Operation", "cds_solicit.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }}, |
47 | 14 | }; |
48 | | |
49 | 14 | static int *ett[] = { |
50 | 14 | &ett_cds_solicit, |
51 | 14 | }; |
52 | 14 | proto_cds_solicit = proto_register_protocol ("DCE/RPC CDS Solicitation", "cds_solicit", "cds_solicit"); |
53 | 14 | proto_register_field_array (proto_cds_solicit, hf, array_length (hf)); |
54 | 14 | proto_register_subtree_array (ett, array_length (ett)); |
55 | 14 | } |
56 | | |
57 | | void |
58 | | proto_reg_handoff_cds_solicit (void) |
59 | 14 | { |
60 | | /* Register the protocol as dcerpc */ |
61 | 14 | dcerpc_init_uuid (proto_cds_solicit, ett_cds_solicit, &uuid_cds_solicit, ver_cds_solicit, cds_solicit_dissectors, hf_cds_solicit_opnum); |
62 | 14 | } |
63 | | |
64 | | /* |
65 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
66 | | * |
67 | | * Local variables: |
68 | | * c-basic-offset: 8 |
69 | | * tab-width: 8 |
70 | | * indent-tabs-mode: t |
71 | | * End: |
72 | | * |
73 | | * vi: set shiftwidth=8 tabstop=8 noexpandtab: |
74 | | * :indentSize=8:tabSize=8:noTabs=false: |
75 | | */ |