diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-03 04:00:26 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-03 04:00:26 +0000 |
commit | b6afcc102f8ba453034eda35648ff746ed329f4a (patch) | |
tree | 6303e298a7b136a1e1da306950398c99e3e71432 /packet-pppoe.c | |
parent | cc6c7a4721cbfeee3556dacd8f019d9cc78ef293 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4308 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-pppoe.c')
-rw-r--r-- | packet-pppoe.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/packet-pppoe.c b/packet-pppoe.c index 8892b16c89..f386983321 100644 --- a/packet-pppoe.c +++ b/packet-pppoe.c @@ -1,12 +1,11 @@ /* packet-pppoe.c * Routines for PPP Over Ethernet (PPPoE) packet disassembly (RFC2516) * - * $Id: packet-pppoe.c,v 1.18 2001/04/17 06:43:19 guy Exp $ + * $Id: packet-pppoe.c,v 1.19 2001/12/03 03:59:38 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@ethereal.com> * 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 @@ -218,8 +217,10 @@ proto_register_pppoed(void) void proto_reg_handoff_pppoed(void) { - dissector_add("ethertype", ETHERTYPE_PPPOED, dissect_pppoed, - proto_pppoed); + dissector_handle_t pppoed_handle; + + pppoed_handle = create_dissector_handle(dissect_pppoed, proto_pppoed); + dissector_add("ethertype", ETHERTYPE_PPPOED, pppoed_handle); } static void @@ -289,8 +290,10 @@ proto_register_pppoes(void) void proto_reg_handoff_pppoes(void) { - dissector_add("ethertype", ETHERTYPE_PPPOES, dissect_pppoes, - proto_pppoes); + dissector_handle_t pppoes_handle; + + pppoes_handle = create_dissector_handle(dissect_pppoes, proto_pppoes); + dissector_add("ethertype", ETHERTYPE_PPPOES, pppoes_handle); /* * Get a handle for the PPP dissector. |