From 5f0fc518c79f381ea86ee3746ef32e96eb606985 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 4 Apr 2000 06:46:41 +0000 Subject: 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 --- packet-ypserv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packet-ypserv.c') diff --git a/packet-ypserv.c b/packet-ypserv.c index 62121a0cd6..7eb209eafa 100644 --- a/packet-ypserv.c +++ b/packet-ypserv.c @@ -1,7 +1,7 @@ /* packet-ypserv.c * Routines for ypserv dissection * - * $Id: packet-ypserv.c,v 1.8 2000/01/22 05:49:05 guy Exp $ + * $Id: packet-ypserv.c,v 1.9 2000/04/04 06:46:29 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -243,7 +243,11 @@ proto_register_ypserv(void) proto_ypserv = proto_register_protocol("Yellow Pages Service", "ypserv"); proto_register_field_array(proto_ypserv, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); +} +void +proto_reg_handoff_ypserv(void) +{ /* Register the protocol as RPC */ rpc_init_prog(proto_ypserv, YPSERV_PROGRAM, ett_ypserv); /* Register the procedure tables */ -- cgit v1.2.3