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-mip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-mip.c') diff --git a/packet-mip.c b/packet-mip.c index 56a473df46..f7016d7e21 100644 --- a/packet-mip.c +++ b/packet-mip.c @@ -2,7 +2,7 @@ * Routines for Mobile IP dissection * Copyright 2000, Stefan Raab * - * $Id: packet-mip.c,v 1.11 2001/01/03 16:41:06 gram Exp $ + * $Id: packet-mip.c,v 1.12 2001/01/09 06:31:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -299,5 +299,5 @@ void proto_register_mip(void) void proto_reg_handoff_mip(void) { - old_dissector_add("udp.port", UDP_PORT_MIP, dissect_mip); + old_dissector_add("udp.port", UDP_PORT_MIP, dissect_mip, proto_mip); } -- cgit v1.2.3