/src/wireshark/epan/dissectors/packet-clearcase.c
Line | Count | Source |
1 | | /* packet-clearcase.c |
2 | | * Routines for ClearCase NFS dissection |
3 | | * |
4 | | * Wireshark - Network traffic analyzer |
5 | | * By Gerald Combs <gerald@wireshark.org> |
6 | | * Copyright 1998 Gerald Combs |
7 | | * |
8 | | * Copied from packet-ypxfr.c |
9 | | * |
10 | | * SPDX-License-Identifier: GPL-2.0-or-later |
11 | | */ |
12 | | |
13 | | #include "config.h" |
14 | | |
15 | | #include <epan/packet.h> |
16 | | |
17 | | #include "packet-rpc.h" |
18 | | |
19 | | void proto_register_clearcase(void); |
20 | | void proto_reg_handoff_clearcase(void); |
21 | | |
22 | | static int proto_clearcase; |
23 | | static int hf_clearcase_procedure_v3; |
24 | | |
25 | | static int ett_clearcase; |
26 | | |
27 | | #define CLEARCASEPROC_NULL 0 |
28 | | |
29 | 14 | #define CLEARCASE_PROGRAM 390512 |
30 | | |
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 } |
35 | | }; |
36 | | static const value_string clearcase3_proc_vals[] = { |
37 | | { CLEARCASEPROC_NULL, "NULL" }, |
38 | | { 0, NULL } |
39 | | }; |
40 | | /* end of Clearcase version 3 */ |
41 | | |
42 | | static const rpc_prog_vers_info clearcase_vers_info[] = { |
43 | | { 3, clearcase3_proc, &hf_clearcase_procedure_v3 } |
44 | | }; |
45 | | |
46 | | void |
47 | | proto_register_clearcase(void) |
48 | 14 | { |
49 | 14 | static hf_register_info hf[] = { |
50 | 14 | { &hf_clearcase_procedure_v3, { |
51 | 14 | "V3 Procedure", "clearcase.procedure_v3", FT_UINT32, BASE_DEC, |
52 | 14 | VALS(clearcase3_proc_vals), 0, NULL, HFILL }} |
53 | 14 | }; |
54 | | |
55 | 14 | static int *ett[] = { |
56 | 14 | &ett_clearcase |
57 | 14 | }; |
58 | | |
59 | 14 | proto_clearcase = proto_register_protocol("Clearcase NFS", |
60 | 14 | "CLEARCASE", "clearcase"); |
61 | 14 | proto_register_field_array(proto_clearcase, hf, array_length(hf)); |
62 | 14 | proto_register_subtree_array(ett, array_length(ett)); |
63 | 14 | } |
64 | | |
65 | | void |
66 | | proto_reg_handoff_clearcase(void) |
67 | 14 | { |
68 | | /* Register the protocol as RPC */ |
69 | 14 | rpc_init_prog(proto_clearcase, CLEARCASE_PROGRAM, ett_clearcase, |
70 | | G_N_ELEMENTS(clearcase_vers_info), clearcase_vers_info); |
71 | 14 | } |
72 | | |
73 | | /* |
74 | | * Editor modelines - https://www.wireshark.org/tools/modelines.html |
75 | | * |
76 | | * Local variables: |
77 | | * c-basic-offset: 8 |
78 | | * tab-width: 8 |
79 | | * indent-tabs-mode: t |
80 | | * End: |
81 | | * |
82 | | * vi: set shiftwidth=8 tabstop=8 noexpandtab: |
83 | | * :indentSize=8:tabSize=8:noTabs=false: |
84 | | */ |