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-pptp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'packet-pptp.c') diff --git a/packet-pptp.c b/packet-pptp.c index e768bb44c7..de72d43ed5 100644 --- a/packet-pptp.c +++ b/packet-pptp.c @@ -2,12 +2,11 @@ * Routines for the Point-to-Point Tunnelling Protocol (PPTP) (RFC 2637) * Brad Robel-Forrest * - * $Id: packet-pptp.c,v 1.20 2001/11/26 04:52:51 hagbard Exp $ + * $Id: packet-pptp.c,v 1.21 2001/12/03 03:59:38 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs + * By Gerald Combs * Copyright 1998 Gerald Combs - * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -830,6 +829,9 @@ proto_register_pptp(void) void proto_reg_handoff_pptp(void) { - dissector_add("tcp.port", TCP_PORT_PPTP, dissect_pptp, proto_pptp); + dissector_handle_t pptp_handle; + + pptp_handle = create_dissector_handle(dissect_pptp, proto_pptp); + dissector_add("tcp.port", TCP_PORT_PPTP, pptp_handle); data_handle = find_dissector("data"); } -- cgit v1.2.3