1 /* packet-dcerpc-dtsprovider.c
2 * Routines for dcerpc Time server 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/time.tar.gz time/service/dtsprovider.idl
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * SPDX-License-Identifier: GPL-2.0-or-later
17 #include <epan/packet.h>
18 #include "packet-dcerpc.h"
20 void proto_register_dtsprovider (void);
21 void proto_reg_handoff_dtsprovider (void);
23 static int proto_dtsprovider
;
24 static int hf_dtsprovider_opnum
;
25 /* static int hf_dtsprovider_status; */
28 static int ett_dtsprovider
;
31 static e_guid_t uuid_dtsprovider
= { 0xbfca1238, 0x628a, 0x11c9, { 0xa0, 0x73, 0x08, 0x00, 0x2b, 0x0d, 0xea, 0x7a } };
32 static uint16_t ver_dtsprovider
= 1;
35 static const dcerpc_sub_dissector dtsprovider_dissectors
[] = {
36 { 0, "ContactProvider", NULL
, NULL
},
37 { 1, "ServerRequestProviderTime", NULL
, NULL
},
38 { 0, NULL
, NULL
, NULL
}
42 proto_register_dtsprovider (void)
44 static hf_register_info hf
[] = {
45 { &hf_dtsprovider_opnum
,
46 { "Operation", "dtsprovider.opnum", FT_UINT16
, BASE_DEC
,
47 NULL
, 0x0, NULL
, HFILL
}},
49 { &hf_dtsprovider_status
,
50 { "Status", "dtsprovider.status", FT_UINT32
, BASE_DEC
|BASE_EXT_STRING
,
51 &dce_error_vals_ext
, 0x0, "Return code, status of executed command", HFILL
}}
58 proto_dtsprovider
= proto_register_protocol ("DCE Distributed Time Service Provider", "DTSPROVIDER", "dtsprovider");
59 proto_register_field_array (proto_dtsprovider
, hf
, array_length (hf
));
60 proto_register_subtree_array (ett
, array_length (ett
));
64 proto_reg_handoff_dtsprovider (void)
66 /* Register the protocol as dcerpc */
67 dcerpc_init_uuid (proto_dtsprovider
, ett_dtsprovider
, &uuid_dtsprovider
, ver_dtsprovider
, dtsprovider_dissectors
, hf_dtsprovider_opnum
);
71 * Editor modelines - https://www.wireshark.org/tools/modelines.html
79 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
80 * :indentSize=8:tabSize=8:noTabs=false: