aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--tcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcp.c b/tcp.c
index 95f4f3e..ea545b0 100644
--- a/tcp.c
+++ b/tcp.c
@@ -755,6 +755,7 @@ static void tcp_rtt_dst_check(const struct tcp_tap_conn *conn,
const struct tcp_info_linux *tinfo)
{
const struct flowside *tapside = TAPFLOW(conn);
+ char buf[INANY_ADDRSTRLEN];
int i, hole = -1;
if (!min_rtt_cap ||
@@ -774,6 +775,10 @@ static void tcp_rtt_dst_check(const struct tcp_tap_conn *conn,
if (hole == -1)
return;
+ flow_dbg(conn, "Adding %s to low RTT table, minimum RTT: %u us",
+ inany_ntop(&tapside->oaddr, buf, sizeof(buf)),
+ tinfo->tcpi_min_rtt);
+
low_rtt_dst[hole++] = tapside->oaddr;
if (hole == LOW_RTT_TABLE_SIZE)
hole = 0;