diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-11-13 22:18:01 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-11-13 22:18:01 +0000 |
commit | b0063a025bfb68a3bc05a69cadf528116325576f (patch) | |
tree | 5b047bb81d7bdf70e4baed7bbe2700a5bc058861 /epan/follow.h | |
parent | 3e41e172db45009124ec19ad859cf9cb82c88200 (diff) |
Highlight selected sequence diagram items.
Create a new dialog each time the user follows a stream. A lot of the
follow code seems to assume one and only one dialog so there are likely
outstanding bugs.
Don't use the global cfile (should we deprecate its usage?). We want to
move closer to multiple documents, not further away.
Clean up after ourselves. Free our payload list and unlink our temp
file. Make a bunch of gchar*s QStrings. Make sure our destructor gets
called and use it.
Make member variable and method names more consistent.
svn path=/trunk/; revision=53306
Diffstat (limited to 'epan/follow.h')
-rw-r--r-- | epan/follow.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/epan/follow.h b/epan/follow.h index cd92221aa5..b1e02dbcad 100644 --- a/epan/follow.h +++ b/epan/follow.h @@ -46,12 +46,43 @@ typedef struct _tcp_stream_chunk { guint32 dlen; } tcp_stream_chunk; +/** Build a follow filter based on the current packet's conversation. + * + * @param packet_info[in] The current packet. + * @return A filter that specifies the conversation. Must be g_free()d + * the caller. + */ +WS_DLL_PUBLIC +gchar* build_follow_conv_filter( packet_info * ); + +/** Build a follow filter based on the current TCP stream index. + * follow_tcp_index() must be called prior to calling this. + * + * @return A filter that specifies the current stream. Must be g_free()d + * the caller. + */ WS_DLL_PUBLIC -char* build_follow_filter( packet_info * ); +gchar* build_follow_index_filter(void); + WS_DLL_PUBLIC gboolean follow_tcp_addr( const address *, guint, const address *, guint ); + +/** Select a TCP stream to follow via its index. + * + * @param addr[in] The stream index to follow. + * @return TRUE on success, FALSE on failure. + */ WS_DLL_PUBLIC gboolean follow_tcp_index( guint32 ); + +/** Get the current TCP index being followed. + * + * @return The current TCP index. The behavior is undefined + * if no TCP stream is being followed. + */ +WS_DLL_PUBLIC +guint32 get_follow_tcp_index(void); + void reassemble_tcp( guint32, guint32, guint32, guint32, const char*, guint32, int, address *, address *, guint, guint ); WS_DLL_PUBLIC |