checkAPIs.pl: support for new-style dissectors in check_hf_entries
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-rep_proc.c
1 /* packet-dcerpc-rep_proc.c
2  *
3  * Routines for dcerpc Replica Server Call 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.tgz  file/fsint/rep_proc.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_rep_proc (void);
22 void proto_reg_handoff_rep_proc (void);
23
24 static int proto_rep_proc = -1;
25 static int hf_rep_proc_opnum = -1;
26
27
28 static gint ett_rep_proc = -1;
29
30
31 static e_guid_t uuid_rep_proc = { 0x4d37f2dd, 0xed43, 0x0005, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
32 static guint16  ver_rep_proc = 4;
33
34
35 static dcerpc_sub_dissector rep_proc_dissectors[] = {
36         { 0, "CheckReplicationConfig",    NULL, NULL },
37         { 1, "AllCheckReplicationConfig", NULL, NULL },
38         { 2, "KeepFilesAlive",            NULL , NULL},
39         { 3, "GetVolChangedFiles",        NULL, NULL },
40         { 4, "GetRepStatus",              NULL, NULL},
41         { 5, "GetRepServerStatus",        NULL, NULL},
42         { 6, "UpdateSelf",                NULL, NULL},
43         { 7, "Probe",                     NULL, NULL},
44         { 8, "GetOneRepStatus",           NULL, NULL },
45         { 9, "GetServerInterfaces",       NULL, NULL},
46         { 0, NULL, NULL, NULL }
47 };
48
49
50 void
51 proto_register_rep_proc (void)
52 {
53         static hf_register_info hf[] = {
54           { &hf_rep_proc_opnum,
55             { "Operation", "rep_proc.opnum", FT_UINT16, BASE_DEC,
56               NULL, 0x0, NULL, HFILL }}
57         };
58
59         static gint *ett[] = {
60                 &ett_rep_proc,
61         };
62         proto_rep_proc = proto_register_protocol ("DCE DFS Replication Server", "REP_PROC", "rep_proc");
63         proto_register_field_array (proto_rep_proc, hf, array_length (hf));
64         proto_register_subtree_array (ett, array_length (ett));
65 }
66
67 void
68 proto_reg_handoff_rep_proc (void)
69 {
70         /* Register the protocol as dcerpc */
71         dcerpc_init_uuid (proto_rep_proc, ett_rep_proc, &uuid_rep_proc, ver_rep_proc, rep_proc_dissectors, hf_rep_proc_opnum);
72 }
73
74 /*
75  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
76  *
77  * Local variables:
78  * c-basic-offset: 8
79  * tab-width: 8
80  * indent-tabs-mode: t
81  * End:
82  *
83  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
84  * :indentSize=8:tabSize=8:noTabs=false:
85  */