aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-udp.h
diff options
context:
space:
mode:
authorLajos Olah <lajos.olah.jr@gmail.com>2018-11-01 17:03:33 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2018-11-04 20:10:39 +0000
commitf68b24d12e82d863a4aacf8dac231af61a618ce9 (patch)
treec2920fec92796d407233853867623ab633f3d612 /epan/dissectors/packet-udp.h
parent62dff7223c5f0e7fdb3a2e83650467738f0a827d (diff)
UDP/UDP-Lite : Add Conversation timestamps
Change-Id: Ibc6cf4ec014e2798032f7dcd65d119ff3ca1a78d Reviewed-on: https://code.wireshark.org/review/30476 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-udp.h')
-rw-r--r--epan/dissectors/packet-udp.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/epan/dissectors/packet-udp.h b/epan/dissectors/packet-udp.h
index 30857cbc89..7b9e7055f4 100644
--- a/epan/dissectors/packet-udp.h
+++ b/epan/dissectors/packet-udp.h
@@ -57,7 +57,7 @@ struct udp_analysis {
udp_flow_t flow1;
udp_flow_t flow2;
- /* These pointers are set by get_tcp_conversation_data()
+ /* These pointers are set by get_udp_conversation_data()
* fwd point in the same direction as the current packet
* and rev in the reverse direction
*/
@@ -69,6 +69,18 @@ struct udp_analysis {
* stream index numbering
*/
guint32 stream;
+
+ /* Remember the timestamp of the first frame seen in this udp
+ * conversation to be able to calculate a relative time compared
+ * to the start of this conversation
+ */
+ nstime_t ts_first;
+
+ /* Remember the timestamp of the frame that was last seen in this
+ * udp conversation to be able to calculate a delta time compared
+ * to previous frame in this conversation
+ */
+ nstime_t ts_prev;
};
/** Associate process information with a given flow