aboutsummaryrefslogtreecommitdiffstats
path: root/packet-clnp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-03 04:00:26 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-03 04:00:26 +0000
commitbced8711f67b5dba76e9d6cdfd1a0246b235df27 (patch)
tree6303e298a7b136a1e1da306950398c99e3e71432 /packet-clnp.c
parent8d0ea8bc932de5cf57183a593be160515af064d9 (diff)
downloadwireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.gz
wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.bz2
wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.zip
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
Diffstat (limited to 'packet-clnp.c')
-rw-r--r--packet-clnp.c12
1 files changed, 7 insertions, 5 deletions
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 <deniel@worldnet.fr>
* Ralf Schneider <Ralf.Schneider@t-online.de>
*
@@ -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 */
}