aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nbipx.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-12-03 04:00:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-12-03 04:00:26 +0000
commitb6afcc102f8ba453034eda35648ff746ed329f4a (patch)
tree6303e298a7b136a1e1da306950398c99e3e71432 /packet-nbipx.c
parentcc6c7a4721cbfeee3556dacd8f019d9cc78ef293 (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-nbipx.c')
-rw-r--r--packet-nbipx.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/packet-nbipx.c b/packet-nbipx.c
index 04983904cf..479224ec73 100644
--- a/packet-nbipx.c
+++ b/packet-nbipx.c
@@ -2,7 +2,7 @@
* Routines for NetBIOS over IPX packet disassembly
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: packet-nbipx.c,v 1.42 2001/11/13 23:55:30 gram Exp $
+ * $Id: packet-nbipx.c,v 1.43 2001/12/03 03:59:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -536,8 +536,10 @@ proto_register_nbipx(void)
void
proto_reg_handoff_nbipx(void)
{
- dissector_add("ipx.socket", IPX_SOCKET_NETBIOS, dissect_nbipx,
- proto_nbipx);
+ dissector_handle_t nbipx_handle;
+
+ nbipx_handle = create_dissector_handle(dissect_nbipx, proto_nbipx);
+ dissector_add("ipx.socket", IPX_SOCKET_NETBIOS, nbipx_handle);
}
/*
@@ -794,8 +796,11 @@ proto_register_nmpi(void)
void
proto_reg_handoff_nmpi(void)
{
+ dissector_handle_t nmpi_handle;
+
+ nmpi_handle = create_dissector_handle(dissect_nmpi, proto_nmpi);
dissector_add("ipx.socket", IPX_SOCKET_NWLINK_SMB_NAMEQUERY,
- dissect_nmpi, proto_nmpi);
+ nmpi_handle);
dissector_add("ipx.socket", IPX_SOCKET_NWLINK_SMB_MAILSLOT,
- dissect_nmpi, proto_nmpi);
+ nmpi_handle);
}