aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcp.h
diff options
context:
space:
mode:
authorkaryrogers <kary.rogers@gmail.com>2015-07-29 23:22:01 -0700
committerMichael Mann <mmann78@netscape.net>2016-02-28 20:43:51 +0000
commitdf7c21bed2d06c57126ade187a02e77dd357b6f5 (patch)
tree2b97e433c289a08888501c7742f84a6d655e64b1 /epan/dissectors/packet-tcp.h
parent109dd91eb580ebe62ddcafcb29bbe94f501b2331 (diff)
TCP: Added bytes sent since last PSH flag
Added tcp.analysis.push_bytes_sent to see how many bytes sent since the last PSH flag. Can be useful when analyzing application behavior and performance and bytes_in_flight gets altered by ACKs Change-Id: I8c6348de43cdb1545169d3a04773885d2411eb00 Reviewed-on: https://code.wireshark.org/review/9822 Reviewed-by: Jasper Bongertz <jasper@packet-foo.com> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-tcp.h')
-rw-r--r--epan/dissectors/packet-tcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h
index efc45bb23d..0fc768a8d6 100644
--- a/epan/dissectors/packet-tcp.h
+++ b/epan/dissectors/packet-tcp.h
@@ -160,6 +160,7 @@ struct tcp_acked {
guint32 dupack_num; /* dup ack number */
guint32 dupack_frame; /* dup ack to frame # */
guint32 bytes_in_flight; /* number of bytes in flight */
+ guint32 push_bytes_sent; /* bytes since the last PSH flag */
};
/* One instance of this structure is created for each pdu that spans across
@@ -261,6 +262,8 @@ typedef struct _tcp_flow_t {
gint16 scps_capable; /* flow advertised scps capabilities */
guint16 maxsizeacked; /* 0 if not yet known */
gboolean valid_bif; /* if lost pkts, disable BiF until ACK is recvd */
+ guint32 push_bytes_sent; /* bytes since the last PSH flag */
+ gboolean push_set_last; /* tracking last time PSH flag was set */
/* This tcp flow/session contains only one single PDU and should
* be reassembled until the final FIN segment.