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-clip.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'packet-clip.c') diff --git a/packet-clip.c b/packet-clip.c index 24aba5e57d..ab3510abe6 100644 --- a/packet-clip.c +++ b/packet-clip.c @@ -1,7 +1,7 @@ /* packet-clip.c * Routines for clip packet disassembly * - * $Id: packet-clip.c,v 1.16 2001/11/20 21:59:12 guy Exp $ + * $Id: packet-clip.c,v 1.17 2001/12/03 03:59:33 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -111,10 +111,14 @@ proto_register_clip(void) void proto_reg_handoff_clip(void) { + dissector_handle_t clip_handle; + /* * Get a handle for the IP dissector. */ ip_handle = find_dissector("ip"); - dissector_add("wtap_encap", WTAP_ENCAP_LINUX_ATM_CLIP, dissect_clip, - -1); /* XXX */ + + clip_handle = create_dissector_handle(dissect_clip, -1); + /* XXX - no protocol, can't be disabled */ + dissector_add("wtap_encap", WTAP_ENCAP_LINUX_ATM_CLIP, clip_handle); } -- cgit v1.2.3