2 * Stubs for the Solstice admin daemon RPC service
4 * Guy Harris <guy@alum.mit.edu>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
15 #include "packet-rpc.h"
17 void proto_register_sadmind(void);
18 void proto_reg_handoff_sadmind(void);
20 static int proto_sadmind
;
21 static int hf_sadmind_procedure_v1
;
22 static int hf_sadmind_procedure_v2
;
23 static int hf_sadmind_procedure_v3
;
25 static int ett_sadmind
;
27 #define SADMIND_PROGRAM 100232
29 #define SADMINDPROC_NULL 0
31 /* proc number, "proc name", dissect_request, dissect_reply */
32 static const vsff sadmind1_proc
[] = {
33 { SADMINDPROC_NULL
, "NULL",
34 dissect_rpc_void
, dissect_rpc_void
},
35 { 0, NULL
, NULL
, NULL
}
37 static const value_string sadmind1_proc_vals
[] = {
38 { SADMINDPROC_NULL
, "NULL" },
42 static const vsff sadmind2_proc
[] = {
43 { SADMINDPROC_NULL
, "NULL",
44 dissect_rpc_void
, dissect_rpc_void
},
45 { 0, NULL
, NULL
, NULL
}
47 static const value_string sadmind2_proc_vals
[] = {
48 { SADMINDPROC_NULL
, "NULL" },
52 static const vsff sadmind3_proc
[] = {
53 { SADMINDPROC_NULL
, "NULL",
54 dissect_rpc_void
, dissect_rpc_void
},
55 { 0, NULL
, NULL
, NULL
}
57 static const value_string sadmind3_proc_vals
[] = {
58 { SADMINDPROC_NULL
, "NULL" },
62 static const rpc_prog_vers_info sadmind_vers_info
[] = {
63 { 1, sadmind1_proc
, &hf_sadmind_procedure_v1
},
64 { 2, sadmind2_proc
, &hf_sadmind_procedure_v2
},
65 { 3, sadmind3_proc
, &hf_sadmind_procedure_v3
},
69 proto_register_sadmind(void)
71 static hf_register_info hf
[] = {
72 { &hf_sadmind_procedure_v1
, {
73 "V1 Procedure", "sadmind.procedure_v1", FT_UINT32
, BASE_DEC
,
74 VALS(sadmind1_proc_vals
), 0, NULL
, HFILL
}},
75 { &hf_sadmind_procedure_v2
, {
76 "V2 Procedure", "sadmind.procedure_v2", FT_UINT32
, BASE_DEC
,
77 VALS(sadmind2_proc_vals
), 0, NULL
, HFILL
}},
78 { &hf_sadmind_procedure_v3
, {
79 "V3 Procedure", "sadmind.procedure_v3", FT_UINT32
, BASE_DEC
,
80 VALS(sadmind3_proc_vals
), 0, NULL
, HFILL
}}
87 proto_sadmind
= proto_register_protocol("SADMIND", "SADMIND", "sadmind");
88 proto_register_field_array(proto_sadmind
, hf
, array_length(hf
));
89 proto_register_subtree_array(ett
, array_length(ett
));
93 proto_reg_handoff_sadmind(void)
95 /* Register the protocol as RPC */
96 rpc_init_prog(proto_sadmind
, SADMIND_PROGRAM
, ett_sadmind
,
97 G_N_ELEMENTS(sadmind_vers_info
), sadmind_vers_info
);
101 * Editor modelines - https://www.wireshark.org/tools/modelines.html
106 * indent-tabs-mode: t
109 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
110 * :indentSize=8:tabSize=8:noTabs=false: