Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-clearcase.c
blobb53d333939040a16d3b482b1b5ce22f481900a9a
1 /* packet-clearcase.c
2 * Routines for ClearCase NFS dissection
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * Copied from packet-ypxfr.c
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include "config.h"
15 #include <epan/packet.h>
17 #include "packet-rpc.h"
19 void proto_register_clearcase(void);
20 void proto_reg_handoff_clearcase(void);
22 static int proto_clearcase;
23 static int hf_clearcase_procedure_v3;
25 static int ett_clearcase;
27 #define CLEARCASEPROC_NULL 0
29 #define CLEARCASE_PROGRAM 390512
31 /* proc number, "proc name", dissect_request, dissect_reply */
32 static const vsff clearcase3_proc[] = {
33 { CLEARCASEPROC_NULL, "NULL", dissect_rpc_void, dissect_rpc_void },
34 { 0, NULL, NULL, NULL }
36 static const value_string clearcase3_proc_vals[] = {
37 { CLEARCASEPROC_NULL, "NULL" },
38 { 0, NULL }
40 /* end of Clearcase version 3 */
42 static const rpc_prog_vers_info clearcase_vers_info[] = {
43 { 3, clearcase3_proc, &hf_clearcase_procedure_v3 }
46 void
47 proto_register_clearcase(void)
49 static hf_register_info hf[] = {
50 { &hf_clearcase_procedure_v3, {
51 "V3 Procedure", "clearcase.procedure_v3", FT_UINT32, BASE_DEC,
52 VALS(clearcase3_proc_vals), 0, NULL, HFILL }}
55 static int *ett[] = {
56 &ett_clearcase
59 proto_clearcase = proto_register_protocol("Clearcase NFS",
60 "CLEARCASE", "clearcase");
61 proto_register_field_array(proto_clearcase, hf, array_length(hf));
62 proto_register_subtree_array(ett, array_length(ett));
65 void
66 proto_reg_handoff_clearcase(void)
68 /* Register the protocol as RPC */
69 rpc_init_prog(proto_clearcase, CLEARCASE_PROGRAM, ett_clearcase,
70 G_N_ELEMENTS(clearcase_vers_info), clearcase_vers_info);
74 * Editor modelines - https://www.wireshark.org/tools/modelines.html
76 * Local variables:
77 * c-basic-offset: 8
78 * tab-width: 8
79 * indent-tabs-mode: t
80 * End:
82 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
83 * :indentSize=8:tabSize=8:noTabs=false: