aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-09 06:32:10 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-09 06:32:10 +0000
commit43ccfd8054ae2b3313ce16d0e96f65183a8062e6 (patch)
tree64e405774b7cf4b6cc4f247aea0c3c3651aeef53 /packet-ipp.c
parent925ce160144e354b91b25f6b28f60e0df689f043 (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-ipp.c')
-rw-r--r--packet-ipp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ipp.c b/packet-ipp.c
index 259914a255..4ae61b6e7f 100644
--- a/packet-ipp.c
+++ b/packet-ipp.c
@@ -3,7 +3,7 @@
*
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-ipp.c,v 1.18 2001/01/03 06:55:29 guy Exp $
+ * $Id: packet-ipp.c,v 1.19 2001/01/09 06:31:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -567,7 +567,7 @@ proto_register_ipp(void)
* (you can't refer to it directly from a plugin dissector
* on Windows without stuffing it into the Big Transfer Vector).
*/
- register_dissector("ipp", dissect_ipp);
+ register_dissector("ipp", dissect_ipp, proto_ipp);
}
void
@@ -581,5 +581,5 @@ proto_reg_handoff_ipp(void)
Or should the HTTP dissector decide that the payload is
IPP based on the MIME headers? */
- dissector_add("tcp.port", 631, dissect_http);
+ dissector_add("tcp.port", 631, dissect_http, -1); /* XXX */
}