/src/wireshark/epan/dissectors/packet-dcerpc-update.c
Line | Count | Source |
1 | | /* packet-dcerpc-update.c |
2 | | * |
3 | | * Routines for dcerpc upserv dissection |
4 | | * Copyright 2002, 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/file.tar.gz file/update/update.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_dce_update(void); |
22 | | void proto_reg_handoff_dce_update(void); |
23 | | |
24 | | static int proto_dce_update; |
25 | | static int hf_dce_update_opnum; |
26 | | |
27 | | static int ett_dce_update; |
28 | | |
29 | | static e_guid_t uuid_dce_update = |
30 | | { 0x4d37f2dd, 0xed43, 0x0000, {0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x10, |
31 | | 0x00} |
32 | | }; |
33 | | static uint16_t ver_dce_update = 4; |
34 | | |
35 | | |
36 | | static const dcerpc_sub_dissector dce_update_dissectors[] = { |
37 | | {0, "UPDATE_GetServerInterfaces", NULL, NULL}, |
38 | | {1, "UPDATE_FetchInfo", NULL, NULL}, |
39 | | {2, "UPDATE_FetchFile", NULL, NULL}, |
40 | | {3, "UPDATE_FetchObjectInfo", NULL, NULL}, |
41 | | {0, NULL, NULL, NULL}, |
42 | | }; |
43 | | |
44 | | void |
45 | | proto_register_dce_update (void) |
46 | 14 | { |
47 | 14 | static hf_register_info hf[] = { |
48 | 14 | {&hf_dce_update_opnum, |
49 | 14 | {"Operation", "dce_update.opnum", FT_UINT16, BASE_DEC, |
50 | 14 | NULL, 0x0, NULL, HFILL}} |
51 | | |
52 | 14 | }; |
53 | | |
54 | 14 | static int *ett[] = { |
55 | 14 | &ett_dce_update, |
56 | 14 | }; |
57 | 14 | proto_dce_update = |
58 | 14 | proto_register_protocol ("DCE/RPC UpServer", "dce_update", "dce_update"); |
59 | 14 | proto_register_field_array (proto_dce_update, hf, array_length (hf)); |
60 | 14 | proto_register_subtree_array (ett, array_length (ett)); |
61 | 14 | } |
62 | | |
63 | | void |
64 | | proto_reg_handoff_dce_update (void) |
65 | 14 | { |
66 | | /* Register the protocol as dcerpc */ |
67 | 14 | dcerpc_init_uuid (proto_dce_update, ett_dce_update, &uuid_dce_update, |
68 | 14 | ver_dce_update, dce_update_dissectors, |
69 | 14 | hf_dce_update_opnum); |
70 | 14 | } |
71 | | |
72 | | /* |
73 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
74 | | * |
75 | | * Local Variables: |
76 | | * c-basic-offset: 2 |
77 | | * tab-width: 8 |
78 | | * indent-tabs-mode: nil |
79 | | * End: |
80 | | * |
81 | | * ex: set shiftwidth=2 tabstop=8 expandtab: |
82 | | * :indentSize=2:tabSize=8:noTabs=true: |
83 | | */ |