aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nfs.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-04-04 06:46:41 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-04-04 06:46:41 +0000
commitceda788a2569911667351265778a61cbeb443352 (patch)
treebcd5cfc4f33cd2b576b0a56c69f86040e935194c /packet-nfs.c
parent868f595e47acd3c961504dd4388f556cabf446c1 (diff)
Use the new split between protocol registration and protocol handoff
registration routines to get rid of the special handling of ONC RPC protocols - dissectors for ONC RPC-based protocols should register their protocol, fields, and ETT values in a protocol registration routine, and register themselves with the ONC RPC dissector in their protocol handoff routine, so that the latter is done after the ONC RPC dissector's protocol registration routine is called, so that the data structures needed when dissectors for ONC RPC protocols register themselves with the ONC RPC dissector have been initialized. Get rid of "init_dissect_rpc()", which initializes said data structures; do that in "proto_register_rpc()" instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1789 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-nfs.c')
-rw-r--r--packet-nfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/packet-nfs.c b/packet-nfs.c
index e2321d02ee..8191960572 100644
--- a/packet-nfs.c
+++ b/packet-nfs.c
@@ -2,7 +2,7 @@
* Routines for nfs dissection
* Copyright 1999, Uwe Girlich <Uwe.Girlich@philosys.de>
*
- * $Id: packet-nfs.c,v 1.25 2000/03/23 00:38:11 guy Exp $
+ * $Id: packet-nfs.c,v 1.26 2000/04/04 06:46:25 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -3147,7 +3147,11 @@ proto_register_nfs(void)
proto_nfs = proto_register_protocol("Network File System", "nfs");
proto_register_field_array(proto_nfs, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+}
+void
+proto_reg_handoff_nfs(void)
+{
/* Register the protocol as RPC */
rpc_init_prog(proto_nfs, NFS_PROGRAM, ett_nfs);
/* Register the procedure tables */