diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-06-06 01:29:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-06-06 01:29:17 +0000 |
commit | b311794270ab5ead683992c5857daed21bc911ae (patch) | |
tree | 735a25aa89257b01d9a186344a913a97a4a17359 /epan/conversation.c | |
parent | 4d99343d8b72336355a843ccff17865386419205 (diff) | |
download | wireshark-b311794270ab5ead683992c5857daed21bc911ae.tar.gz |
Fix a comment.
Split some lines differently.
svn path=/trunk/; revision=3519
Diffstat (limited to 'epan/conversation.c')
-rw-r--r-- | epan/conversation.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/epan/conversation.c b/epan/conversation.c index 6c0b95bcab..89204286a2 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.8 2001/06/04 07:27:49 guy Exp $ + * $Id: conversation.c,v 1.9 2001/06/06 01:29:17 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -644,9 +644,10 @@ conversation_set_dissector(conversation_t *conversation, * 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. + * card matches: try to match any destination address on the specified + * destination first, then try to match any destination port at the + * specified destination address, then try to match any destination + * address and any destination port. */ gboolean try_conversation_dissector(address *src, address *dst, port_type ptype, @@ -657,18 +658,21 @@ try_conversation_dissector(address *src, address *dst, port_type ptype, const guint8 *pd; int offset; - conversation = find_conversation(src, dst, ptype, src_port, dst_port, 0); + 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); + 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); + 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); - + 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) |