Apparently bit 0x80 of a SAMR domain handle is the permission to look
[metze/wireshark/wip.git] / packet-clearcase.c
1 /* packet-clearcase.c
2  * Routines for ClearCase NFS dissection
3  *
4  * $Id: packet-clearcase.c,v 1.1 2002/11/15 22:45:52 sahlberg Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * Copied from packet-ypxfr.c
11  *
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.
16  *
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.
21  *
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.
25  */
26
27 #ifdef HAVE_CONFIG_H
28 #include "config.h"
29 #endif
30
31
32
33 #include "packet-rpc.h"
34 #include "packet-clearcase.h"
35
36 static int proto_clearcase = -1;
37 static int hf_clearcase_procedure_v3 = -1;
38
39 static gint ett_clearcase = -1;
40
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 }
46 };
47 static const value_string clearcase3_proc_vals[] = {
48         { CLEARCASEPROC_NULL,   "NULL" },
49         { 0,                    NULL }
50 };
51 /* end of Clearcase version 3 */
52
53 void
54 proto_register_clearcase(void)
55 {
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 }}
60         };
61
62         static gint *ett[] = {
63                 &ett_clearcase
64         };
65
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));
70 }
71
72 void
73 proto_reg_handoff_clearcase(void)
74 {
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);
79 }