2 * Routines for ClearCase NFS dissection
4 * $Id: packet-clearcase.c,v 1.1 2002/11/15 22:45:52 sahlberg Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * Copyright 1998 Gerald Combs
10 * Copied from packet-ypxfr.c
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 #include "packet-rpc.h"
34 #include "packet-clearcase.h"
36 static int proto_clearcase = -1;
37 static int hf_clearcase_procedure_v3 = -1;
39 static gint ett_clearcase = -1;
41 /* proc number, "proc name", dissect_request, dissect_reply */
42 /* NULL as function pointer means: type of arguments is "void". */
43 static const vsff clearcase3_proc[] = {
44 { CLEARCASEPROC_NULL, "NULL", NULL, NULL },
45 { 0, NULL, NULL, NULL }
47 static const value_string clearcase3_proc_vals[] = {
48 { CLEARCASEPROC_NULL, "NULL" },
51 /* end of Clearcase version 3 */
54 proto_register_clearcase(void)
56 static hf_register_info hf[] = {
57 { &hf_clearcase_procedure_v3, {
58 "V3 Procedure", "clearcase.procedure_v3", FT_UINT32, BASE_DEC,
59 VALS(clearcase3_proc_vals), 0, "V3 Procedure", HFILL }}
62 static gint *ett[] = {
66 proto_clearcase = proto_register_protocol("Clearcase NFS",
67 "CLEARCASE", "clearcase");
68 proto_register_field_array(proto_clearcase, hf, array_length(hf));
69 proto_register_subtree_array(ett, array_length(ett));
73 proto_reg_handoff_clearcase(void)
75 /* Register the protocol as RPC */
76 rpc_init_prog(proto_clearcase, CLEARCASE_PROGRAM, ett_clearcase);
77 /* Register the procedure tables */
78 rpc_init_proc_table(CLEARCASE_PROGRAM, 3, clearcase3_proc, hf_clearcase_procedure_v3);