aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2017-01-22 09:01:33 -0800
committerAnders Broman <a.broman58@gmail.com>2017-01-28 03:53:09 +0000
commit1bfa581529e8edcaeaf842a87726ad6734d72292 (patch)
tree06e6bde8a5e6e513b71bfbe52f800cde3e681464 /epan/packet.c
parent01ddd93a7296b54a2048de74691984a7e78e4cb9 (diff)
Snort: add a preference to show alert in reassembled frame
Change-Id: Ia29d451857995b186c88193c9722ae156eb3f66d Reviewed-on: https://code.wireshark.org/review/19729 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 00d90d40a5..cad51e756d 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -403,6 +403,23 @@ get_data_source_tvb(const struct data_source *src)
}
/*
+ * Find and return the tvb associated with the given data source name
+ */
+tvbuff_t *
+get_data_source_tvb_by_name(packet_info *pinfo, const char *name)
+{
+ GSList *source = pinfo->data_src;
+ for (source = pinfo->data_src; source; source = source->next) {
+ struct data_source *this_source = (struct data_source *)source;
+ if (this_source->name && strcmp(this_source->name, name) == 0) {
+ return this_source->tvb;
+ }
+ }
+ return NULL;
+}
+
+
+/*
* Free up a frame's list of data sources.
*/
void