aboutsummaryrefslogtreecommitdiffstats
path: root/packet-hclnfsd.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-28 03:39:48 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-28 03:39:48 +0000
commitb2ae96ed4dd50870b593bd7abfb7d222cea5b7e6 (patch)
tree1403addb62187af84eaa9f4902e74d9c269bb3b0 /packet-hclnfsd.c
parent67fb5332334da6483ef4a843521c1df4ab731ace (diff)
Allow dissectors of ONC RPC-based protocols to register themselves
either with a table of old-style dissectors or a table of tvbuffified dissectors, and have the RPC dissector pass the appropriate arguments to the dissectors. Finish tvbuffifying the NLM dissector, getting rid of the last traces of old-style dissector code. In those routines in the NFS dissector that take new-style arguments (because they're called from the NLM dissector), make them take an offset as an argument, so they don't assume that they're handed a tvbuff starting at the stuff they're supposed to dissect, and make the versions that take old-style arguments construct a tvbuff and call the versions that take new-style arguments. Do the latter with the routines in "packet-rpc.c" as well. svn path=/trunk/; revision=2943
Diffstat (limited to 'packet-hclnfsd.c')
-rw-r--r--packet-hclnfsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-hclnfsd.c b/packet-hclnfsd.c
index 1a58d34e8b..8c51d49d37 100644
--- a/packet-hclnfsd.c
+++ b/packet-hclnfsd.c
@@ -2,7 +2,7 @@
* Routines for hclnfsd (Hummingbird NFS Daemon) dissection
* Copyright 2001, Mike Frisch <frisch@hummingbird.com>
*
- * $Id: packet-hclnfsd.c,v 1.1 2001/01/27 20:33:01 guy Exp $
+ * $Id: packet-hclnfsd.c,v 1.2 2001/01/28 03:39:48 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -624,7 +624,7 @@ dissect_hclnfsd_get_printq_reply(const u_char *pd, int offset,
/* proc number, "proc name", dissect_request, dissect_reply */
/* NULL as function pointer means: take the generic one. */
-const vsff hclnfsd1_proc[] = {
+static const old_vsff hclnfsd1_proc[] = {
{ HCLNFSDPROC_NULL, "NULL",
NULL, NULL },
{ HCLNFSDPROC_SPOOL_INQUIRE, "SPOOL_INQUIRE",
@@ -758,5 +758,5 @@ proto_reg_handoff_hclnfsd(void)
rpc_init_prog(proto_hclnfsd, HCLNFSD_PROGRAM, ett_hclnfsd);
/* Register the procedure tables */
- rpc_init_proc_table(HCLNFSD_PROGRAM, 1, hclnfsd1_proc);
+ old_rpc_init_proc_table(HCLNFSD_PROGRAM, 1, hclnfsd1_proc);
}