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-osi.c | |
parent | 8d0ea8bc932de5cf57183a593be160515af064d9 (diff) | |
download | wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.gz wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.bz2 wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.zip |
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-osi.c')
-rw-r--r-- | packet-osi.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packet-osi.c b/packet-osi.c index bd6cc15eaf..de3a9462de 100644 --- a/packet-osi.c +++ b/packet-osi.c @@ -2,7 +2,7 @@ * Routines for ISO/OSI network and transport protocol packet disassembly * Main entrance point and common functions * - * $Id: packet-osi.c,v 1.49 2001/12/02 00:07:46 guy Exp $ + * $Id: packet-osi.c,v 1.50 2001/12/03 03:59:37 guy Exp $ * Laurent Deniel <deniel@worldnet.fr> * Ralf Schneider <Ralf.Schneider@t-online.de> * @@ -23,7 +23,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 @@ -188,9 +187,12 @@ proto_register_osi(void) void proto_reg_handoff_osi(void) { - dissector_add("llc.dsap", SAP_OSINL, dissect_osi, -1); - dissector_add("ppp.protocol", PPP_OSI, dissect_osi, -1); - dissector_add("null.type", BSD_AF_ISO, dissect_osi, -1); - dissector_add("gre.proto", SAP_OSINL, dissect_osi, -1); + dissector_handle_t osi_handle; + + osi_handle = create_dissector_handle(dissect_osi, -1); + dissector_add("llc.dsap", SAP_OSINL, osi_handle); + dissector_add("ppp.protocol", PPP_OSI, osi_handle); + dissector_add("null.type", BSD_AF_ISO, osi_handle); + dissector_add("gre.proto", SAP_OSINL, osi_handle); data_handle = find_dissector("data"); } |