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
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" },
40 /* end of Clearcase version 3 */
42 static const rpc_prog_vers_info clearcase_vers_info
[] = {
43 { 3, clearcase3_proc
, &hf_clearcase_procedure_v3
}
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
}}
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
));
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
82 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
83 * :indentSize=8:tabSize=8:noTabs=false: