aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcp.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-06-17 23:12:58 -0700
committerEvan Huus <eapache@gmail.com>2014-06-18 15:07:08 +0000
commitb5a462b087bdd7670e1a69786ebbe3f073084ac3 (patch)
treef69e032721848b150833fce9ef5bc98e6b414271 /epan/dissectors/packet-tcp.h
parentcd56eb970f143aec3d85323c5ee1eeeda66040cf (diff)
Try to calculate the initial RTT of tcp conns
This (if it works well) will let us do much more accurate out-of-order detection, which is currently otherwise hardcoded to 3ms. Ask Jörg for details. Change-Id: Ie0662723946edeaea1e43958bf7f5158f09dde71 Reviewed-on: https://code.wireshark.org/review/2367 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-tcp.h')
-rw-r--r--epan/dissectors/packet-tcp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h
index 1fcf7d2f57..e01b2a6adf 100644
--- a/epan/dissectors/packet-tcp.h
+++ b/epan/dissectors/packet-tcp.h
@@ -239,6 +239,15 @@ struct tcp_analysis {
*/
nstime_t ts_first;
+ /* Remember the timestamp of the most recent SYN in this conversation in
+ * order to calculate the first_rtt below. Not necessarily ts_first, if
+ * the SYN is retransmitted. */
+ nstime_t ts_mru_syn;
+
+ /* If we have the handshake, remember the RTT between the initial SYN
+ * and ACK for use detecting out-of-order segments. */
+ nstime_t ts_first_rtt;
+
/* Remember the timestamp of the frame that was last seen in this
* tcp conversation to be able to calculate a delta time compared
* to previous frame in this conversation