Coverage Report

Created: 2026-01-02 06:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-nfsauth.c
Line
Count
Source
1
/* packet-nfsauth.c
2
 * Stubs for Sun's NFS AUTH RPC service
3
 *
4
 * Ronnie Sahlberg
5
 *
6
 * Wireshark - Network traffic analyzer
7
 * By Gerald Combs <gerald@wireshark.org>
8
 * Copyright 1998 Gerald Combs
9
 *
10
 * SPDX-License-Identifier: GPL-2.0-or-later
11
 */
12
13
#include "config.h"
14
15
#include "packet-rpc.h"
16
17
void proto_register_nfsauth(void);
18
void proto_reg_handoff_nfsauth(void);
19
20
static int proto_nfsauth;
21
static int hf_nfsauth_procedure_v1;
22
23
static int ett_nfsauth;
24
25
14
#define NFSAUTH_PROGRAM 100231
26
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 }
36
};
37
static const value_string nfsauth1_proc_vals[] = {
38
  { NFSAUTHPROC_NULL, "NULL" },
39
  { NFSAUTH1_ACCESS,  "ACCESS" },
40
  { 0,  NULL }
41
};
42
static const rpc_prog_vers_info nfsauth_vers_info[] = {
43
  { 1, nfsauth1_proc, &hf_nfsauth_procedure_v1 },
44
};
45
46
47
void
48
proto_register_nfsauth(void)
49
14
{
50
14
  static hf_register_info hf[] = {
51
14
    { &hf_nfsauth_procedure_v1, {
52
14
      "V1 Procedure", "nfsauth.procedure_v1", FT_UINT32, BASE_DEC,
53
14
      VALS(nfsauth1_proc_vals), 0, NULL, HFILL }},
54
14
  };
55
56
14
  static int *ett[] = {
57
14
    &ett_nfsauth,
58
14
  };
59
60
14
  proto_nfsauth = proto_register_protocol("NFSAUTH", "NFSAUTH", "nfsauth");
61
14
  proto_register_field_array(proto_nfsauth, hf, array_length(hf));
62
14
  proto_register_subtree_array(ett, array_length(ett));
63
14
}
64
65
void
66
proto_reg_handoff_nfsauth(void)
67
14
{
68
  /* Register the protocol as RPC */
69
14
  rpc_init_prog(proto_nfsauth, NFSAUTH_PROGRAM, ett_nfsauth,
70
      G_N_ELEMENTS(nfsauth_vers_info), nfsauth_vers_info);
71
14
}
72
73
/*
74
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
75
 *
76
 * Local variables:
77
 * c-basic-offset: 8
78
 * tab-width: 8
79
 * indent-tabs-mode: t
80
 * End:
81
 *
82
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
83
 * :indentSize=8:tabSize=8:noTabs=false:
84
 */