HACK: 2nd try to match RowsetProperties
[wireshark-wip.git] / epan / dissectors / packet-sadmind.c
blob759440ec55dae72c12e31df94ab4c57bf9bc3dfe
1 /* packet-sadmind.c
2 * Stubs for the Solstice admin daemon RPC service
4 * Guy Harris <guy@alum.mit.edu>
6 * $Id$
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 #include "config.h"
31 #include "packet-rpc.h"
33 static int proto_sadmind = -1;
34 static int hf_sadmind_procedure_v1 = -1;
35 static int hf_sadmind_procedure_v2 = -1;
36 static int hf_sadmind_procedure_v3 = -1;
38 static gint ett_sadmind = -1;
40 #define SADMIND_PROGRAM 100232
42 #define SADMINDPROC_NULL 0
44 /* proc number, "proc name", dissect_request, dissect_reply */
45 /* NULL as function pointer means: type of arguments is "void". */
46 static const vsff sadmind1_proc[] = {
47 { SADMINDPROC_NULL, "NULL",
48 NULL, NULL },
49 { 0, NULL, NULL, NULL }
51 static const value_string sadmind1_proc_vals[] = {
52 { SADMINDPROC_NULL, "NULL" },
53 { 0, NULL }
56 static const vsff sadmind2_proc[] = {
57 { SADMINDPROC_NULL, "NULL",
58 NULL, NULL },
59 { 0, NULL, NULL, NULL }
61 static const value_string sadmind2_proc_vals[] = {
62 { SADMINDPROC_NULL, "NULL" },
63 { 0, NULL }
66 static const vsff sadmind3_proc[] = {
67 { SADMINDPROC_NULL, "NULL",
68 NULL, NULL },
69 { 0, NULL, NULL, NULL }
71 static const value_string sadmind3_proc_vals[] = {
72 { SADMINDPROC_NULL, "NULL" },
73 { 0, NULL }
76 void
77 proto_register_sadmind(void)
79 static hf_register_info hf[] = {
80 { &hf_sadmind_procedure_v1, {
81 "V1 Procedure", "sadmind.procedure_v1", FT_UINT32, BASE_DEC,
82 VALS(sadmind1_proc_vals), 0, NULL, HFILL }},
83 { &hf_sadmind_procedure_v2, {
84 "V2 Procedure", "sadmind.procedure_v2", FT_UINT32, BASE_DEC,
85 VALS(sadmind2_proc_vals), 0, NULL, HFILL }},
86 { &hf_sadmind_procedure_v3, {
87 "V3 Procedure", "sadmind.procedure_v3", FT_UINT32, BASE_DEC,
88 VALS(sadmind3_proc_vals), 0, NULL, HFILL }}
91 static gint *ett[] = {
92 &ett_sadmind,
95 proto_sadmind = proto_register_protocol("SADMIND", "SADMIND", "sadmind");
96 proto_register_field_array(proto_sadmind, hf, array_length(hf));
97 proto_register_subtree_array(ett, array_length(ett));
100 void
101 proto_reg_handoff_sadmind(void)
103 /* Register the protocol as RPC */
104 rpc_init_prog(proto_sadmind, SADMIND_PROGRAM, ett_sadmind);
105 /* Register the procedure tables */
106 rpc_init_proc_table(SADMIND_PROGRAM, 1, sadmind1_proc, hf_sadmind_procedure_v1);
107 rpc_init_proc_table(SADMIND_PROGRAM, 2, sadmind2_proc, hf_sadmind_procedure_v2);
108 rpc_init_proc_table(SADMIND_PROGRAM, 3, sadmind3_proc, hf_sadmind_procedure_v3);