GTPv2: fix dissection of APN IE
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-update.c
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 = -1;
25 static int hf_dce_update_opnum = -1;
26
27 static gint ett_dce_update = -1;
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 guint16 ver_dce_update = 4;
34
35
36 static 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 {
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}}
51
52   };
53
54   static gint *ett[] = {
55     &ett_dce_update,
56   };
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));
61 }
62
63 void
64 proto_reg_handoff_dce_update (void)
65 {
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);
70 }
71
72 /*
73  * Editor modelines  -  http://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  */