aboutsummaryrefslogtreecommitdiffstats
path: root/packet-vines.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-vines.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-vines.c')
-rw-r--r--packet-vines.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/packet-vines.c b/packet-vines.c
index 5b70badf7e..8a858ccc02 100644
--- a/packet-vines.c
+++ b/packet-vines.c
@@ -1,7 +1,7 @@
/* packet-vines.c
* Routines for Banyan VINES protocol packet disassembly
*
- * $Id: packet-vines.c,v 1.22 2001/01/06 08:44:03 guy Exp $
+ * $Id: packet-vines.c,v 1.23 2001/01/09 06:31:44 guy Exp $
*
* Don Lafontaine <lafont02@cn.ca>
*
@@ -164,11 +164,13 @@ proto_register_vines_frp(void)
void
proto_reg_handoff_vines_frp(void)
{
- dissector_add("ip.proto", IP_PROTO_VINES, dissect_vines_frp);
+ dissector_add("ip.proto", IP_PROTO_VINES, dissect_vines_frp,
+ proto_vines_frp);
/* XXX: AFAIK, src and dst port must be the same; should
the dissector check for that? */
- dissector_add("udp.port", UDP_PORT_VINES, dissect_vines_frp);
+ dissector_add("udp.port", UDP_PORT_VINES, dissect_vines_frp,
+ proto_vines_frp);
}
gchar *
@@ -362,8 +364,8 @@ proto_register_vines(void)
void
proto_reg_handoff_vines(void)
{
- dissector_add("ethertype", ETHERTYPE_VINES, dissect_vines);
- dissector_add("ppp.protocol", PPP_VINES, dissect_vines);
+ dissector_add("ethertype", ETHERTYPE_VINES, dissect_vines, proto_vines);
+ dissector_add("ppp.protocol", PPP_VINES, dissect_vines, proto_vines);
}
static void