Coverage Report

Created: 2026-08-14 06:45

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-rwall.c
Line
Count
Source
1
/* packet-rwall.c
2
 *
3
 * Wireshark - Network traffic analyzer
4
 * By Gerald Combs <gerald@wireshark.org>
5
 * Copyright 1998 Gerald Combs
6
 *
7
 * SPDX-License-Identifier: GPL-2.0-or-later
8
 */
9
#include "config.h"
10
11
#include "packet-rpc.h"
12
13
void proto_register_rwall(void);
14
void proto_reg_handoff_rwall(void);
15
16
/* there is no procedure 1 */
17
#define RWALL_WALL 2
18
19
16
#define RWALL_PROGRAM 100008
20
21
static const value_string rwall1_proc_vals[] = {
22
  { RWALL_WALL, "RWALL" },
23
  { 0,  NULL }
24
};
25
26
static int proto_rwall;
27
28
static int hf_rwall_message;
29
static int hf_rwall_procedure_v1;
30
31
static int ett_rwall;
32
33
static int
34
dissect_rwall_call(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
35
0
{
36
0
  return dissect_rpc_string(tvb, pinfo, tree, hf_rwall_message, 0, NULL);
37
0
}
38
39
static const vsff rwall1_proc[] = {
40
  { RWALL_WALL, "RWALL", dissect_rwall_call,  dissect_rpc_void },
41
  { 0,  NULL, NULL, NULL }
42
};
43
44
static const rpc_prog_vers_info rwall_vers_info[] = {
45
  { 1, rwall1_proc, &hf_rwall_procedure_v1 },
46
};
47
48
void
49
proto_register_rwall(void)
50
16
{
51
16
  static hf_register_info hf[] = {
52
16
    { &hf_rwall_procedure_v1,
53
16
      { "V1 Procedure", "rwall.procedure_v1",
54
16
        FT_UINT32, BASE_DEC, VALS(rwall1_proc_vals), 0,
55
16
        NULL, HFILL }
56
16
    },
57
16
    { &hf_rwall_message,
58
16
      { "Message", "rwall.message",
59
16
        FT_STRING, BASE_NONE, NULL, 0,
60
16
        NULL, HFILL }
61
16
    },
62
16
  };
63
64
16
  static int *ett[] = {
65
16
    &ett_rwall,
66
16
  };
67
68
16
  proto_rwall = proto_register_protocol("Remote Wall protocol", "RWALL", "rwall");
69
16
  proto_register_field_array(proto_rwall, hf, array_length(hf));
70
16
  proto_register_subtree_array(ett, array_length(ett));
71
16
}
72
73
void
74
proto_reg_handoff_rwall(void)
75
16
{
76
  /* Register the protocol as RPC */
77
16
  rpc_init_prog(proto_rwall, RWALL_PROGRAM, ett_rwall,
78
      G_N_ELEMENTS(rwall_vers_info), rwall_vers_info);
79
16
}
80
81
/*
82
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
83
 *
84
 * Local variables:
85
 * c-basic-offset: 8
86
 * tab-width: 8
87
 * indent-tabs-mode: t
88
 * End:
89
 *
90
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
91
 * :indentSize=8:tabSize=8:noTabs=false:
92
 */