Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-nfsauth.c
blob96d3dbe38cbee2c4a686fe627680fd3a033ff99e
1 /* packet-nfsauth.c
2 * Stubs for Sun's NFS AUTH RPC service
4 * Ronnie Sahlberg
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_nfsauth(void);
18 void proto_reg_handoff_nfsauth(void);
20 static int proto_nfsauth;
21 static int hf_nfsauth_procedure_v1;
23 static int ett_nfsauth;
25 #define NFSAUTH_PROGRAM 100231
27 #define NFSAUTHPROC_NULL 0
28 #define NFSAUTH1_ACCESS 1
29 /* proc number, "proc name", dissect_request, dissect_reply */
30 static const vsff nfsauth1_proc[] = {
31 { NFSAUTHPROC_NULL, "NULL",
32 dissect_rpc_void, dissect_rpc_void },
33 { NFSAUTH1_ACCESS, "ACCESS",
34 dissect_rpc_unknown, dissect_rpc_unknown },
35 { 0, NULL, NULL, NULL }
37 static const value_string nfsauth1_proc_vals[] = {
38 { NFSAUTHPROC_NULL, "NULL" },
39 { NFSAUTH1_ACCESS, "ACCESS" },
40 { 0, NULL }
42 static const rpc_prog_vers_info nfsauth_vers_info[] = {
43 { 1, nfsauth1_proc, &hf_nfsauth_procedure_v1 },
47 void
48 proto_register_nfsauth(void)
50 static hf_register_info hf[] = {
51 { &hf_nfsauth_procedure_v1, {
52 "V1 Procedure", "nfsauth.procedure_v1", FT_UINT32, BASE_DEC,
53 VALS(nfsauth1_proc_vals), 0, NULL, HFILL }},
56 static int *ett[] = {
57 &ett_nfsauth,
60 proto_nfsauth = proto_register_protocol("NFSAUTH", "NFSAUTH", "nfsauth");
61 proto_register_field_array(proto_nfsauth, hf, array_length(hf));
62 proto_register_subtree_array(ett, array_length(ett));
65 void
66 proto_reg_handoff_nfsauth(void)
68 /* Register the protocol as RPC */
69 rpc_init_prog(proto_nfsauth, NFSAUTH_PROGRAM, ett_nfsauth,
70 G_N_ELEMENTS(nfsauth_vers_info), nfsauth_vers_info);
74 * Editor modelines - https://www.wireshark.org/tools/modelines.html
76 * Local variables:
77 * c-basic-offset: 8
78 * tab-width: 8
79 * indent-tabs-mode: t
80 * End:
82 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
83 * :indentSize=8:tabSize=8:noTabs=false: