From bced8711f67b5dba76e9d6cdfd1a0246b235df27 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 3 Dec 2001 04:00:26 +0000 Subject: Make "dissector_add()", "dissector_delete()", and "dissector_change()" take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308 --- packet-clnp.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'packet-clnp.c') diff --git a/packet-clnp.c b/packet-clnp.c index 7342631699..495ac22a17 100644 --- a/packet-clnp.c +++ b/packet-clnp.c @@ -1,7 +1,7 @@ /* packet-clnp.c * Routines for ISO/OSI network and transport protocol packet disassembly * - * $Id: packet-clnp.c,v 1.40 2001/11/26 04:52:49 hagbard Exp $ + * $Id: packet-clnp.c,v 1.41 2001/12/03 03:59:33 guy Exp $ * Laurent Deniel * Ralf Schneider * @@ -2197,9 +2197,11 @@ void proto_register_cltp(void) void proto_reg_handoff_clnp(void) { + dissector_handle_t clnp_handle; + data_handle = find_dissector("data"); - dissector_add("osinl", NLPID_ISO8473_CLNP, dissect_clnp, - proto_clnp); - dissector_add("osinl", NLPID_NULL, dissect_clnp, - proto_clnp); /* Inactive subset */ + + clnp_handle = create_dissector_handle(dissect_clnp, proto_clnp); + dissector_add("osinl", NLPID_ISO8473_CLNP, clnp_handle); + dissector_add("osinl", NLPID_NULL, clnp_handle); /* Inactive subset */ } -- cgit v1.2.3