aboutsummaryrefslogtreecommitdiffstats
path: root/packet-osi.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet-osi.c')
-rw-r--r--packet-osi.c14
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");
}