aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rtps.h
diff options
context:
space:
mode:
authorJuanjo Martin <juanjo@rti.com>2016-02-10 12:07:41 +0100
committerMichael Mann <mmann78@netscape.net>2016-02-11 21:46:45 +0000
commitd2a44002f0ba027c5fe21f21c9f838c553371748 (patch)
tree89bdeae7c0dfb8fa5c4b4f9c56d29ccb60f18657 /epan/dissectors/packet-rtps.h
parent9dd7465b22d3056beefd7182430605f493d14952 (diff)
RTPS: Adding position in the batch to the rtps_dissector_data
Adding this information is useful for custom dissectors so they can add it to the display. When a lot of samples are sent in RTPS in the same batch, it is very helpful to have the index in the display. Change-Id: I0f158eeb9d5e9b4fcf67ef6e72dcfa655b9cc427 Reviewed-on: https://code.wireshark.org/review/13875 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-rtps.h')
-rw-r--r--epan/dissectors/packet-rtps.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rtps.h b/epan/dissectors/packet-rtps.h
index 202bbc6de7..b96cf14224 100644
--- a/epan/dissectors/packet-rtps.h
+++ b/epan/dissectors/packet-rtps.h
@@ -113,6 +113,9 @@ typedef enum {
typedef struct _rtps_dissector_data {
guint16 encapsulation_id;
gboolean info_displayed;
+ /* Represents the position of a sample within a batch. Since the
+ position can be 0, we use -1 as not valid (not a batch) */
+ gint position_in_batch;
} rtps_dissector_data;