2 * Stubs for Sun's NFS AUTH RPC service
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_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" },
42 static const rpc_prog_vers_info nfsauth_vers_info
[] = {
43 { 1, nfsauth1_proc
, &hf_nfsauth_procedure_v1
},
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
}},
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
));
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
82 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
83 * :indentSize=8:tabSize=8:noTabs=false: