summaryrefslogtreecommitdiff
path: root/cfile.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-02-23 09:30:48 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-02-23 18:30:48 +0000
commitb5ac91399cccdf065d065497c83ca8e8ac864fe7 (patch)
tree79380a0c9d60c926463c5de9ad776191329a4f8c /cfile.h
parent0ef196a643daf3e9654dd118cddbec5c80f7f6ff (diff)
downloadwireshark-b5ac91399cccdf065d065497c83ca8e8ac864fe7.tar.gz
Qt: Select matching tree item and bytes in Find Packet
Highlight the matching tree item and matching packet bytes when doing a Find Packet. Added cf->search_len to correctly highlight the matching bytes when doing a regex search. Bug: 12157 Change-Id: I84fbdb9b43be4355e24aff3cf5f8850f1119e2bf Reviewed-on: https://code.wireshark.org/review/14086 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'cfile.h')
-rw-r--r--cfile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cfile.h b/cfile.h
index 7c270608f8..98949a088f 100644
--- a/cfile.h
+++ b/cfile.h
@@ -102,6 +102,7 @@ typedef struct _capture_file {
gboolean decode_data; /* TRUE if "String" search in "Packet details" was last selected */
gboolean packet_data; /* TRUE if "String" search in "Packet data" was last selected */
guint32 search_pos; /* Byte position of last byte found in a hex search */
+ guint32 search_len; /* Length of bytes matching the search */
gboolean case_type; /* TRUE if case-insensitive text search */
GRegex *regex; /* Set if regular expression search */
search_charset_t scs_type; /* Character set for text search */