aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rstat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-23 21:17:03 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-23 21:17:03 +0000
commitd5f34ad8b2c85b08bfdadc3c021c0f24b34cdfbc (patch)
treec89f8870831ade2133bd93de09ca10833fa33f5d /packet-rstat.c
parent6cfdb3c0ed0f3879f238608aed5773ae367d8719 (diff)
Add an extra argument to "rpc_init_proc_table()" that can specify an hf_
value for a field to be used for the procedure number for that version of the protocol; use that field, if specified, instead of just putting in a generic "rpc.procedure" field. Have the ypserv dissector register those fields and supply them to "rpc_init_proc_table()". Supply -1 for other RPC programs (for now), meaning "no such field exists". svn path=/trunk/; revision=6486
Diffstat (limited to 'packet-rstat.c')
-rw-r--r--packet-rstat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-rstat.c b/packet-rstat.c
index 92ddd24d35..37851e7126 100644
--- a/packet-rstat.c
+++ b/packet-rstat.c
@@ -3,7 +3,7 @@
*
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-rstat.c,v 1.2 2002/08/02 23:35:58 jmayer Exp $
+ * $Id: packet-rstat.c,v 1.3 2002/10/23 21:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -109,8 +109,8 @@ proto_reg_handoff_rstat(void)
/* Register the protocol as RPC */
rpc_init_prog(proto_rstat, RSTAT_PROGRAM, ett_rstat);
/* Register the procedure tables */
- rpc_init_proc_table(RSTAT_PROGRAM, 1, rstat1_proc);
- rpc_init_proc_table(RSTAT_PROGRAM, 2, rstat2_proc);
- rpc_init_proc_table(RSTAT_PROGRAM, 3, rstat3_proc);
- rpc_init_proc_table(RSTAT_PROGRAM, 4, rstat3_proc);
+ rpc_init_proc_table(RSTAT_PROGRAM, 1, rstat1_proc, -1);
+ rpc_init_proc_table(RSTAT_PROGRAM, 2, rstat2_proc, -1);
+ rpc_init_proc_table(RSTAT_PROGRAM, 3, rstat3_proc, -1);
+ rpc_init_proc_table(RSTAT_PROGRAM, 4, rstat3_proc, -1);
}