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-tacacs.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'packet-tacacs.c') diff --git a/packet-tacacs.c b/packet-tacacs.c index a4d1103c18..22ea4370de 100644 --- a/packet-tacacs.c +++ b/packet-tacacs.c @@ -2,7 +2,7 @@ * Routines for cisco tacacs/xtacacs/tacacs+ packet dissection * Copyright 2001, Paul Ionescu * - * $Id: packet-tacacs.c,v 1.16 2001/11/27 22:37:20 guy Exp $ + * $Id: packet-tacacs.c,v 1.17 2001/12/03 03:59:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -288,8 +288,10 @@ proto_register_tacacs(void) void proto_reg_handoff_tacacs(void) { - dissector_add("udp.port", UDP_PORT_TACACS, dissect_tacacs, - proto_tacacs); + dissector_handle_t tacacs_handle; + + tacacs_handle = create_dissector_handle(dissect_tacacs, proto_tacacs); + dissector_add("udp.port", UDP_PORT_TACACS, tacacs_handle); } static int proto_tacplus = -1; @@ -464,6 +466,9 @@ proto_register_tacplus(void) void proto_reg_handoff_tacplus(void) { - dissector_add("tcp.port", TCP_PORT_TACACS, dissect_tacplus, + dissector_handle_t tacplus_handle; + + tacplus_handle = create_dissector_handle(dissect_tacplus, proto_tacplus); + dissector_add("tcp.port", TCP_PORT_TACACS, tacplus_handle); } -- cgit v1.2.3