Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-dcerpc-update.c
blobd2cc33907e71bd92b772cae710d0845f6a8c7a9a
1 /* packet-dcerpc-update.c
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
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #include "config.h"
18 #include <epan/packet.h>
19 #include "packet-dcerpc.h"
21 void proto_register_dce_update(void);
22 void proto_reg_handoff_dce_update(void);
24 static int proto_dce_update;
25 static int hf_dce_update_opnum;
27 static int ett_dce_update;
29 static e_guid_t uuid_dce_update =
30 { 0x4d37f2dd, 0xed43, 0x0000, {0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x10,
31 0x00}
33 static uint16_t ver_dce_update = 4;
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},
44 void
45 proto_register_dce_update (void)
47 static hf_register_info hf[] = {
48 {&hf_dce_update_opnum,
49 {"Operation", "dce_update.opnum", FT_UINT16, BASE_DEC,
50 NULL, 0x0, NULL, HFILL}}
54 static int *ett[] = {
55 &ett_dce_update,
57 proto_dce_update =
58 proto_register_protocol ("DCE/RPC UpServer", "dce_update", "dce_update");
59 proto_register_field_array (proto_dce_update, hf, array_length (hf));
60 proto_register_subtree_array (ett, array_length (ett));
63 void
64 proto_reg_handoff_dce_update (void)
66 /* Register the protocol as dcerpc */
67 dcerpc_init_uuid (proto_dce_update, ett_dce_update, &uuid_dce_update,
68 ver_dce_update, dce_update_dissectors,
69 hf_dce_update_opnum);
73 * Editor modelines - https://www.wireshark.org/tools/modelines.html
75 * Local Variables:
76 * c-basic-offset: 2
77 * tab-width: 8
78 * indent-tabs-mode: nil
79 * End:
81 * ex: set shiftwidth=2 tabstop=8 expandtab:
82 * :indentSize=2:tabSize=8:noTabs=true: