From 43ccfd8054ae2b3313ce16d0e96f65183a8062e6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 9 Jan 2001 06:32:10 +0000 Subject: Add an additional "protocol index" argument to "{old_}dissector_add()", "{old_}heur_dissector_add()", "{old_}conv_dissector_add()", and "register_dissector()", so that an entry in those tables has associated with it the protocol index of the protocol the dissector handles (or -1, if there is no protocol index for it). This is for future use in a number of places. (Arguably, "proto_register_protocol()" should take a dissector pointer as an argument, but 1) it'd have to handle both regular and heuristic dissectors; 2) making it take either a "dissector_t" or a union of that and a "heur_dissector_t" introduces some painful header-file interdependencies so I'm punting on that for now. As with other Ethereal internal APIs, these APIs are subject to change in the future, at least until Ethereal 1.0 comes out....) svn path=/trunk/; revision=2849 --- packet-osi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packet-osi.c') diff --git a/packet-osi.c b/packet-osi.c index 7f0bff2207..06ea30267e 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.38 2000/11/19 08:54:00 guy Exp $ + * $Id: packet-osi.c,v 1.39 2001/01/09 06:31:39 guy Exp $ * Laurent Deniel * Ralf Schneider * @@ -277,6 +277,6 @@ proto_register_osi(void) void proto_reg_handoff_osi(void) { - dissector_add("llc.dsap", SAP_OSINL, dissect_osi); - dissector_add("null.type", BSD_AF_ISO, dissect_osi); + dissector_add("llc.dsap", SAP_OSINL, dissect_osi, -1); + dissector_add("null.type", BSD_AF_ISO, dissect_osi, -1); } -- cgit v1.2.1