diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:00:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:00:26 +0000 |
commit | bced8711f67b5dba76e9d6cdfd1a0246b235df27 (patch) | |
tree | 6303e298a7b136a1e1da306950398c99e3e71432 /packet-isis.c | |
parent | 8d0ea8bc932de5cf57183a593be160515af064d9 (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.
svn path=/trunk/; revision=4308
Diffstat (limited to 'packet-isis.c')
-rw-r--r-- | packet-isis.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packet-isis.c b/packet-isis.c index 767b594920..d7f1f65f09 100644 --- a/packet-isis.c +++ b/packet-isis.c @@ -2,7 +2,7 @@ * Routines for ISO/OSI network and transport protocol packet disassembly, core * bits. * - * $Id: packet-isis.c,v 1.25 2001/07/02 02:09:26 guy Exp $ + * $Id: packet-isis.c,v 1.26 2001/12/03 03:59:36 guy Exp $ * Stuart Stanley <stuarts@mxmail.net> * * Ethereal - Network traffic analyzer @@ -22,8 +22,6 @@ * 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 @@ -321,5 +319,8 @@ proto_register_isis(void) { void proto_reg_handoff_isis(void) { - dissector_add("osinl", NLPID_ISO10589_ISIS, dissect_isis, proto_isis); + dissector_handle_t isis_handle; + + isis_handle = create_dissector_handle(dissect_isis, proto_isis); + dissector_add("osinl", NLPID_ISO10589_ISIS, isis_handle); } |