diff options
author | Michael Mann <mmann78@netscape.net> | 2017-10-27 16:39:50 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-10-27 21:51:49 +0000 |
commit | 3a6552744f2e44954a9e378dd076c8758bb5f1bb (patch) | |
tree | fb1bff1b6b0c74a5f6f012a15dabaf0741d50419 /epan/conversation.h | |
parent | f24651493d04b974722b0b70179bcb6b9150a605 (diff) |
Add find_conversation_pinfo
Convenience function to add the same parameters to find_conversation as
find_or_create_conversation.
Change-Id: I3a92541cb9c1e827a9de8248825636debbd989cd
Reviewed-on: https://code.wireshark.org/review/24118
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/conversation.h')
-rw-r--r-- | epan/conversation.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/conversation.h b/epan/conversation.h index d31a210200..3ddc3ec813 100644 --- a/epan/conversation.h +++ b/epan/conversation.h @@ -145,6 +145,11 @@ WS_DLL_PUBLIC conversation_t *conversation_new(const guint32 setup_frame, const WS_DLL_PUBLIC 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); +/** A helper function that calls find_conversation() using data from pinfo + * The frame number and addresses are taken from pinfo. + */ +WS_DLL_PUBLIC conversation_t *find_conversation_pinfo(packet_info *pinfo, const guint options); + /** A helper function that calls find_conversation() and, if a conversation is * not found, calls conversation_new(). * The frame number and addresses are taken from pinfo. |