MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-frsapi.c
blob07bc0747520fa1f1bed13aa4aa28a18085518904
1 /* packet-dcerpc-frsapi.c
2 * Routines for the frs API (File Replication Service) MSRPC interface
3 * Copyright 2004 Jean-Baptiste Marchand <jbm@hsc.fr>
5 * $Id$
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 #include "config.h"
29 #include <glib.h>
30 #include <epan/packet.h>
31 #include "packet-dcerpc.h"
32 #include "packet-dcerpc-frsapi.h"
34 static int proto_dcerpc_frsapi = -1;
36 static int hf_frsapi_opnum = -1;
38 static gint ett_dcerpc_frsapi = -1;
41 IDL [ uuid(d049b186-814f-11d1-9a3c-00c04fc9b232),
42 IDL version(1.1),
43 IDL implicit_handle(handle_t rpc_binding)
44 IDL ] interface frsapi
47 static e_uuid_t uuid_dcerpc_frsapi = {
48 0xd049b186, 0x814f, 0x11d1,
49 { 0x9a, 0x3c, 0x00, 0xc0, 0x4f, 0xc9, 0xb2, 0x32 }
52 static guint16 ver_dcerpc_frsapi = 1;
55 static dcerpc_sub_dissector dcerpc_frsapi_dissectors[] = {
56 { FRSAPI_VERIFY_PROMOTION, "VerifyPromotion", NULL, NULL },
57 { FRSAPI_PROMOTION_STATUS, "PromotionStatus", NULL, NULL },
58 { FRSAPI_START_DEMOTION, "StartDemotion", NULL, NULL },
59 { FRSAPI_COMMIT_DEMOTION, "CommitDemotion", NULL, NULL },
60 { FRSAPI_SET_DS_POLLING_INTERVAL_W, "Set_DsPollingIntervalW", NULL, NULL },
61 { FRSAPI_GET_DS_POLLING_INTERVAL_W, "Get_DsPollingIntervalW", NULL, NULL },
62 { FRSAPI_VERIFY_PROMOTION_W, "VerifyPromotionW", NULL, NULL },
63 { FRSAPI_INFO_W, "InfoW", NULL, NULL },
64 { FRSAPI_IS_PATH_REPLICATED, "IsPathReplicated", NULL, NULL },
65 { FRSAPI_WRITER_COMMAND, "WriterCommand", NULL, NULL },
66 { 0, NULL, NULL, NULL }
69 void
70 proto_register_dcerpc_frsapi(void)
73 static hf_register_info hf[] = {
75 { &hf_frsapi_opnum,
76 { "Operation", "frsapi.opnum", FT_UINT16, BASE_DEC,
77 NULL, 0x0, NULL, HFILL }},
81 static gint *ett[] = {
82 &ett_dcerpc_frsapi,
86 proto_dcerpc_frsapi = proto_register_protocol(
87 "Microsoft File Replication Service API", "FRSAPI", "frsapi");
89 proto_register_field_array(proto_dcerpc_frsapi, hf, array_length(hf));
91 proto_register_subtree_array(ett, array_length(ett));
96 void
97 proto_reg_handoff_dcerpc_frsapi(void)
99 /* register protocol as dcerpc */
101 dcerpc_init_uuid(
102 proto_dcerpc_frsapi, ett_dcerpc_frsapi, &uuid_dcerpc_frsapi,
103 ver_dcerpc_frsapi, dcerpc_frsapi_dissectors, hf_frsapi_opnum);