diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-04 06:46:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-04 06:46:41 +0000 |
commit | 5f0fc518c79f381ea86ee3746ef32e96eb606985 (patch) | |
tree | bcd5cfc4f33cd2b576b0a56c69f86040e935194c /packet-portmap.c | |
parent | 1ffa3cfa2b664a4920805cb40dd9fe85bf3ca1fe (diff) | |
download | wireshark-5f0fc518c79f381ea86ee3746ef32e96eb606985.tar.gz wireshark-5f0fc518c79f381ea86ee3746ef32e96eb606985.tar.bz2 wireshark-5f0fc518c79f381ea86ee3746ef32e96eb606985.zip |
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-portmap.c')
-rw-r--r-- | packet-portmap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packet-portmap.c b/packet-portmap.c index 57db44fdd8..27cc97ee85 100644 --- a/packet-portmap.c +++ b/packet-portmap.c @@ -1,7 +1,7 @@ /* packet-portmap.c * Routines for portmap dissection * - * $Id: packet-portmap.c,v 1.13 2000/03/12 04:47:48 gram Exp $ + * $Id: packet-portmap.c,v 1.14 2000/04/04 06:46:27 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -456,7 +456,11 @@ proto_register_portmap(void) proto_portmap = proto_register_protocol("Portmap", "portmap"); proto_register_field_array(proto_portmap, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); +} +void +proto_reg_handoff_portmap(void) +{ /* Register the protocol as RPC */ rpc_init_prog(proto_portmap, PORTMAP_PROGRAM, ett_portmap); /* Register the procedure tables */ |