aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rtps.h
diff options
context:
space:
mode:
authorJuanjo Martin <juanjo@rti.com>2016-01-19 11:48:20 +0100
committerAnders Broman <a.broman58@gmail.com>2016-02-04 05:10:51 +0000
commitf6ff90fed6b18af3885d2cd66452004977cbcf24 (patch)
treef21c73df1defbf874d698fa00401e55b0e7cf0ea /epan/dissectors/packet-rtps.h
parent2a2cb9dace5179565dcdd87bd60aef1c94440af4 (diff)
RTPS: Added custom type dissection support for RTPS batches
In RTPS, regular samples are serialized with the format <encapsulation, serialized data> and thus, the dissection of the encapsulation was suggested to be done in the custom dissector. However, batches are serializing the encapsulation only once as <encapsulation, sample 1, sample 2>. This makes us need to dissect the encapsulation in the RTPS dissector and providing as (void*) data to the custom dissector. This way we support the regular samples dissection as well as the batches dissection. I have defined rtps_dissector_data in packet-rtps.h and I suggest we include that header file when we want to write a custom dissector. Bug: 12029 Change-Id: I74ed4c31484f9a99ad6c44c6c34cc52be2adb7c8 Reviewed-on: https://code.wireshark.org/review/13413 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rtps.h')
-rw-r--r--epan/dissectors/packet-rtps.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rtps.h b/epan/dissectors/packet-rtps.h
index 77597cb5fb..202bbc6de7 100644
--- a/epan/dissectors/packet-rtps.h
+++ b/epan/dissectors/packet-rtps.h
@@ -110,6 +110,12 @@ typedef enum {
RTI_CDR_TYPE_OBJECT_TYPE_KIND_ANNOTATION_TYPE=23
} RTICdrTypeObjectTypeKind;
+typedef struct _rtps_dissector_data {
+ guint16 encapsulation_id;
+ gboolean info_displayed;
+} rtps_dissector_data;
+
+
#define RTPS_MAGIC_NUMBER 0x52545053 /* RTPS */
#define RTPX_MAGIC_NUMBER 0x52545058 /* RTPX */