summaryrefslogtreecommitdiff
path: root/packet-esis.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-esis.c
parent8d0ea8bc932de5cf57183a593be160515af064d9 (diff)
downloadwireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.gz
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-esis.c')
-rw-r--r--packet-esis.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/packet-esis.c b/packet-esis.c
index cf898c1329..6db393e2ac 100644
--- a/packet-esis.c
+++ b/packet-esis.c
@@ -2,7 +2,7 @@
* Routines for ISO/OSI End System to Intermediate System
* Routing Exchange Protocol ISO 9542.
*
- * $Id: packet-esis.c,v 1.17 2001/08/13 00:56:18 sharpe Exp $
+ * $Id: packet-esis.c,v 1.18 2001/12/03 03:59:34 guy Exp $
* Ralf Schneider <Ralf.Schneider@t-online.de>
*
* Ethereal - Network traffic analyzer
@@ -22,9 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- *
-*/
+ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -450,5 +448,8 @@ proto_register_esis(void) {
void
proto_reg_handoff_esis(void)
{
- dissector_add("osinl", NLPID_ISO9542_ESIS, dissect_esis, proto_esis);
+ dissector_handle_t esis_handle;
+
+ esis_handle = create_dissector_handle(dissect_esis, proto_esis);
+ dissector_add("osinl", NLPID_ISO9542_ESIS, esis_handle);
}