From 729de1a635cd21379db622c93f945a19b9f645b2 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Thu, 13 May 2010 18:28:34 +0000 Subject: As suggested in http://www.wireshark.org/lists/wireshark-dev/200809/msg00075.html (as referenced in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2907 ) and https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3411 : Write a new convenience routine for finding a conversation and, if it is not found, create it. The frame number and addresses are taken from pinfo (as is the common case). Use this function in a bunch of dissectors. svn path=/trunk/; revision=32790 --- epan/conversation.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epan/conversation.h') diff --git a/epan/conversation.h b/epan/conversation.h index d19065a1e2..2329b261b4 100644 --- a/epan/conversation.h +++ b/epan/conversation.h @@ -86,6 +86,8 @@ extern conversation_t *conversation_new(const guint32 setup_frame, const address extern conversation_t *find_conversation(const guint32 frame_num, const address *addr_a, const address *addr_b, const port_type ptype, const guint32 port_a, const guint32 port_b, const guint options); +extern conversation_t *find_or_create_conversation(packet_info *pinfo); + extern void conversation_add_proto_data(conversation_t *conv, const int proto, void *proto_data); extern void *conversation_get_proto_data(const conversation_t *conv, const int proto); -- cgit v1.2.3