aboutsummaryrefslogtreecommitdiffstats
path: root/epan/conversation.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-11-18 11:47:21 +0000
committerGuy Harris <guy@alum.mit.edu>2000-11-18 11:47:21 +0000
commitea00ad9f58f27422fb9729195262d018bf4978f2 (patch)
tree759eb42c963318be99b6557eeeba21b7396b902d /epan/conversation.c
parent6bab5c02f0affb5a69dcae34ca67b9c9605b7e74 (diff)
Nobody calls "old_try_conversation_dissector()" or
"old_dissector_try_heuristic()" any more, as their users have all been tvbuffified - get rid of them. svn path=/trunk/; revision=2660
Diffstat (limited to 'epan/conversation.c')
-rw-r--r--epan/conversation.c58
1 files changed, 1 insertions, 57 deletions
diff --git a/epan/conversation.c b/epan/conversation.c
index 6d0b29ad90..060b249432 100644
--- a/epan/conversation.c
+++ b/epan/conversation.c
@@ -1,7 +1,7 @@
/* conversation.c
* Routines for building lists of packets that are part of a "conversation"
*
- * $Id: conversation.c,v 1.5 2000/11/18 07:00:31 guy Exp $
+ * $Id: conversation.c,v 1.6 2000/11/18 11:47:21 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -684,62 +684,6 @@ conversation_set_dissector(conversation_t *conversation,
* address and any port.
*/
gboolean
-old_try_conversation_dissector(address *src, address *dst, port_type ptype,
- guint32 src_port, guint32 dst_port, const u_char *pd, int offset,
- frame_data *fd, proto_tree *tree)
-{
- conversation_t *conversation;
- tvbuff_t *tvb;
-
- conversation = find_conversation(src, dst, ptype, src_port, dst_port, 0);
-
- if (conversation == NULL)
- conversation = find_conversation(src, dst, ptype, src_port, dst_port, NO_DST_ADDR);
-
- if (conversation == NULL)
- conversation = find_conversation(src, dst, ptype, src_port, dst_port, NO_DST_PORT);
-
- if (conversation == NULL)
- conversation = find_conversation(src, dst, ptype, src_port, dst_port,
- NO_DST_PORT | NO_DST_ADDR);
-
- if (conversation != NULL) {
- if (conversation->is_old_dissector) {
- if (conversation->dissector.old_d == NULL)
- return FALSE;
- (*conversation->dissector.old_d)(pd, offset, fd, tree);
- } else {
- if (conversation->dissector.new_d == NULL)
- return FALSE;
-
- /*
- * Old dissector calling new dissector; use
- * "tvb_create_from_top()" to remap.
- *
- * XXX - what about the "pd" argument? Do
- * any dissectors not just pass that along and
- * let the "offset" argument handle stepping
- * through the packet?
- */
- tvb = tvb_create_from_top(offset);
- (*conversation->dissector.new_d)(tvb, &pi, tree);
- }
- return TRUE;
- }
- return FALSE;
-}
-
-/*
- * Given source and destination addresses and ports for a packet,
- * search for a conversational dissector.
- * If found, call it and return TRUE, otherwise return FALSE.
- *
- * Will search for a exact match (src & dst), then search for wild
- * card matches: try to match any port on the destination address first,
- * then try to match any address on the port, then try to match any
- * address and any port.
- */
-gboolean
try_conversation_dissector(address *src, address *dst, port_type ptype,
guint32 src_port, guint32 dst_port, tvbuff_t *tvb, packet_info *pinfo,
proto_tree *tree)