diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-26 00:31:27 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-01-26 07:57:09 +0100 |
commit | 6040f16239c96498a7b98c854a3c923b22aad3ea (patch) | |
tree | db8a2eb2e801c863661d3ac7ad10f9f994f94b31 | |
parent | 2c7431ffcf68916c9c27dddf3542520dfacacc5e (diff) | |
download | passt-6040f16239c96498a7b98c854a3c923b22aad3ea.tar passt-6040f16239c96498a7b98c854a3c923b22aad3ea.tar.gz passt-6040f16239c96498a7b98c854a3c923b22aad3ea.tar.bz2 passt-6040f16239c96498a7b98c854a3c923b22aad3ea.tar.lz passt-6040f16239c96498a7b98c854a3c923b22aad3ea.tar.xz passt-6040f16239c96498a7b98c854a3c923b22aad3ea.tar.zst passt-6040f16239c96498a7b98c854a3c923b22aad3ea.zip |
tcp: Cover all usages of tcpi_snd_wnd with HAS_SND_WND
...I forgot two of them.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1586,12 +1586,14 @@ static int tcp_update_seqack_wnd(struct ctx *c, struct tcp_tap_conn *conn, goto out; } +#ifdef HAS_SND_WND if (conn->local || tcp_rtt_dst_low(conn)) { conn->wnd_to_tap = tinfo->tcpi_snd_wnd; } else { tcp_get_sndbuf(conn); conn->wnd_to_tap = MIN((int)tinfo->tcpi_snd_wnd, conn->snd_buf); } +#endif conn->wnd_to_tap = MIN(conn->wnd_to_tap, MAX_WINDOW); |