aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ypxfr.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-04 06:46:41 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-04 06:46:41 +0000
commit5f0fc518c79f381ea86ee3746ef32e96eb606985 (patch)
treebcd5cfc4f33cd2b576b0a56c69f86040e935194c /packet-ypxfr.c
parent1ffa3cfa2b664a4920805cb40dd9fe85bf3ca1fe (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. svn path=/trunk/; revision=1789
Diffstat (limited to 'packet-ypxfr.c')
-rw-r--r--packet-ypxfr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-ypxfr.c b/packet-ypxfr.c
index cd505db95f..28fb7c2835 100644
--- a/packet-ypxfr.c
+++ b/packet-ypxfr.c
@@ -1,7 +1,7 @@
/* packet-ypxfr.c
* Routines for ypxfr dissection
*
- * $Id: packet-ypxfr.c,v 1.3 2000/01/07 22:05:42 guy Exp $
+ * $Id: packet-ypxfr.c,v 1.4 2000/04/04 06:46:29 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -59,10 +59,13 @@ proto_register_ypxfr(void)
proto_ypxfr = proto_register_protocol("Yellow Pages Transfer", "ypxfr");
proto_register_subtree_array(ett, array_length(ett));
+}
+void
+proto_reg_handoff_ypxfr(void)
+{
/* Register the protocol as RPC */
rpc_init_prog(proto_ypxfr, YPXFR_PROGRAM, ett_ypxfr);
/* Register the procedure tables */
rpc_init_proc_table(YPXFR_PROGRAM, 1, ypxfr1_proc);
}
-