Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-sadmind.c
blob28424d2443c085a7c67382d8315415b9627d73c1
1 /* packet-sadmind.c
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
13 #include "config.h"
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" },
39 { 0, 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" },
49 { 0, 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" },
59 { 0, 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 },
68 void
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 }}
83 static int *ett[] = {
84 &ett_sadmind,
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));
92 void
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
103 * Local variables:
104 * c-basic-offset: 8
105 * tab-width: 8
106 * indent-tabs-mode: t
107 * End:
109 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
110 * :indentSize=8:tabSize=8:noTabs=false: