From 6040f16239c96498a7b98c854a3c923b22aad3ea Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 26 Oct 2021 00:31:27 +0200 Subject: tcp: Cover all usages of tcpi_snd_wnd with HAS_SND_WND ...I forgot two of them. Signed-off-by: Stefano Brivio --- tcp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tcp.c') diff --git a/tcp.c b/tcp.c index df8a57f..b0d5f40 100644 --- a/tcp.c +++ b/tcp.c @@ -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); -- cgit v1.2.3