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-nbns.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packet-nbns.c') diff --git a/packet-nbns.c b/packet-nbns.c index 035b0888da..89e8ceff8d 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -4,7 +4,7 @@ * Gilbert Ramirez * Much stuff added by Guy Harris * - * $Id: packet-nbns.c,v 1.49 2001/01/03 06:55:30 guy Exp $ + * $Id: packet-nbns.c,v 1.50 2001/01/09 06:31:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1771,8 +1771,8 @@ proto_register_nbt(void) void proto_reg_handoff_nbt(void) { - old_dissector_add("udp.port", UDP_PORT_NBNS, dissect_nbns); - old_dissector_add("udp.port", UDP_PORT_NBDGM, dissect_nbdgm); - old_dissector_add("tcp.port", TCP_PORT_NBSS, dissect_nbss); - old_dissector_add("tcp.port", TCP_PORT_CIFS, dissect_nbss); + old_dissector_add("udp.port", UDP_PORT_NBNS, dissect_nbns, proto_nbns); + old_dissector_add("udp.port", UDP_PORT_NBDGM, dissect_nbdgm, proto_nbdgm); + old_dissector_add("tcp.port", TCP_PORT_NBSS, dissect_nbss, proto_nbss); + old_dissector_add("tcp.port", TCP_PORT_CIFS, dissect_nbss, proto_nbss); } -- cgit v1.2.3