aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rwall.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-11-01 00:48:39 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-11-01 00:48:39 +0000
commit422596a0fecf9dd9100d716c4dab4f3ea51e3655 (patch)
treecb0386d63e9bab8ef056eec177202d2374b890c5 /packet-rwall.c
parentf64906c9b399e4c0fbf775b530d1773090a3458d (diff)
Updated all remaining ONC-RPC dissectors to pass the procedure name value_string in the call to prc_init_proc_table()
svn path=/trunk/; revision=6528
Diffstat (limited to 'packet-rwall.c')
-rw-r--r--packet-rwall.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/packet-rwall.c b/packet-rwall.c
index 7f29d61871..cf8c2be718 100644
--- a/packet-rwall.c
+++ b/packet-rwall.c
@@ -1,6 +1,6 @@
/* packet-rwall.c
*
- * $Id: packet-rwall.c,v 1.8 2002/10/23 21:17:03 guy Exp $
+ * $Id: packet-rwall.c,v 1.9 2002/11/01 00:48:38 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -31,6 +31,7 @@
#include "packet-rwall.h"
static int proto_rwall = -1;
+static int hf_rwall_procedure_v1 = -1;
static int hf_rwall_message = -1;
static gint ett_rwall = -1;
@@ -43,20 +44,27 @@ dissect_rwall_call(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree
return offset;
}
-static const vsff rwall_proc[] = {
+static const vsff rwall1_proc[] = {
{ RWALL_WALL, "RWALL",
dissect_rwall_call, NULL },
{ 0, NULL, NULL, NULL }
};
+static const value_string rwall1_proc_vals[] = {
+ { RWALL_WALL, "RWALL" },
+ { 0, NULL }
+};
void
proto_register_rwall(void)
{
static hf_register_info hf[] = {
+ { &hf_rwall_procedure_v1, {
+ "V1 Procedure", "rwall.procedure_v1", FT_UINT32, BASE_DEC,
+ VALS(rwall1_proc_vals), 0, "V1 Procedure", HFILL }},
{ &hf_rwall_message, {
"Message", "rwall.message", FT_STRING, BASE_DEC,
- NULL, 0, "Message", HFILL }},
+ NULL, 0, "Message", HFILL }}
};
static gint *ett[] = {
@@ -75,7 +83,7 @@ proto_reg_handoff_rwall(void)
/* Register the protocol as RPC */
rpc_init_prog(proto_rwall, RWALL_PROGRAM, ett_rwall);
/* Register the procedure tables */
- rpc_init_proc_table(RWALL_PROGRAM, 1, rwall_proc, -1);
+ rpc_init_proc_table(RWALL_PROGRAM, 1, rwall1_proc, hf_rwall_procedure_v1);
}