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-esis.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-esis.c')
-rw-r--r-- | packet-esis.c | 11 |
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); } |