diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-09 06:32:10 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-09 06:32:10 +0000 |
commit | 43ccfd8054ae2b3313ce16d0e96f65183a8062e6 (patch) | |
tree | 64e405774b7cf4b6cc4f247aea0c3c3651aeef53 /packet-igrp.c | |
parent | 925ce160144e354b91b25f6b28f60e0df689f043 (diff) |
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
Diffstat (limited to 'packet-igrp.c')
-rw-r--r-- | packet-igrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-igrp.c b/packet-igrp.c index 5a8cf58ed9..6b2ad76e94 100644 --- a/packet-igrp.c +++ b/packet-igrp.c @@ -2,7 +2,7 @@ * Routines for IGRP dissection * Copyright 2000, Paul Ionescu <paul@acorp.ro> * - * $Id: packet-igrp.c,v 1.3 2001/01/03 06:55:28 guy Exp $ + * $Id: packet-igrp.c,v 1.4 2001/01/09 06:31:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -207,7 +207,7 @@ void proto_register_igrp(void) void proto_reg_handoff_igrp(void) { - dissector_add("ip.proto", IP_PROTO_IGRP , dissect_igrp); + dissector_add("ip.proto", IP_PROTO_IGRP , dissect_igrp, proto_igrp); } /* IGRP Packet structure: |