MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-dtsprovider.c
blob9c6d0ce1984fb5df0f15be5cde2d5109fd513315
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 * $Id$
9 * Wireshark - Network traffic analyzer
10 * By Gerald Combs <gerald@wireshark.org>
11 * Copyright 1998 Gerald Combs
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #include "config.h"
31 #include <glib.h>
32 #include <epan/packet.h>
33 #include "packet-dcerpc.h"
34 #include "packet-dcerpc-dce122.h"
36 static int proto_dtsprovider = -1;
37 static int hf_dtsprovider_opnum = -1;
38 /* static int hf_dtsprovider_status = -1; */
41 static gint ett_dtsprovider = -1;
44 static e_uuid_t uuid_dtsprovider = { 0xbfca1238, 0x628a, 0x11c9, { 0xa0, 0x73, 0x08, 0x00, 0x2b, 0x0d, 0xea, 0x7a } };
45 static guint16 ver_dtsprovider = 1;
48 static dcerpc_sub_dissector dtsprovider_dissectors[] = {
49 { 0, "ContactProvider", NULL, NULL},
50 { 1, "ServerRequestProviderTime", NULL, NULL},
51 { 0, NULL, NULL, NULL }
54 void
55 proto_register_dtsprovider (void)
57 static hf_register_info hf[] = {
58 { &hf_dtsprovider_opnum,
59 { "Operation", "dtsprovider.opnum", FT_UINT16, BASE_DEC,
60 NULL, 0x0, NULL, HFILL }},
61 #if 0
62 { &hf_dtsprovider_status,
63 { "Status", "dtsprovider.status", FT_UINT32, BASE_DEC|BASE_EXT_STRING,
64 &dce_error_vals_ext, 0x0, "Return code, status of executed command", HFILL }}
65 #endif
68 static gint *ett[] = {
69 &ett_dtsprovider,
71 proto_dtsprovider = proto_register_protocol ("DCE Distributed Time Service Provider", "DTSPROVIDER", "dtsprovider");
72 proto_register_field_array (proto_dtsprovider, hf, array_length (hf));
73 proto_register_subtree_array (ett, array_length (ett));
76 void
77 proto_reg_handoff_dtsprovider (void)
79 /* Register the protocol as dcerpc */
80 dcerpc_init_uuid (proto_dtsprovider, ett_dtsprovider, &uuid_dtsprovider, ver_dtsprovider, dtsprovider_dissectors, hf_dtsprovider_opnum);