diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-09 06:32:10 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-09 06:32:10 +0000 |
commit | a2e2dd78a3bfe730f3ffbcee258923f45bd5c27c (patch) | |
tree | 64e405774b7cf4b6cc4f247aea0c3c3651aeef53 /packet-rx.c | |
parent | a1f75fe99c63add12c6dca8d8c0bc31435568dfa (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....)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2849 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rx.c')
-rw-r--r-- | packet-rx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-rx.c b/packet-rx.c index 92c79339ac..c0119d6369 100644 --- a/packet-rx.c +++ b/packet-rx.c @@ -4,7 +4,7 @@ * Based on routines from tcpdump patches by * Ken Hornstein <kenh@cmf.nrl.navy.mil> * - * $Id: packet-rx.c,v 1.17 2001/01/03 16:41:07 gram Exp $ + * $Id: packet-rx.c,v 1.18 2001/01/09 06:31:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -253,6 +253,7 @@ proto_reg_handoff_rx(void) /* Ports in the range UDP_PORT_RX_LOW to UDP_PORT_RX_HIGH are all used for various AFS services. */ for (port = UDP_PORT_RX_LOW; port <= UDP_PORT_RX_HIGH; port++) - old_dissector_add("udp.port", port, dissect_rx); - old_dissector_add("udp.port", UDP_PORT_RX_AFS_BACKUPS, dissect_rx); + old_dissector_add("udp.port", port, dissect_rx, proto_rx); + old_dissector_add("udp.port", UDP_PORT_RX_AFS_BACKUPS, dissect_rx, + proto_rx); } |