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>
This commit is contained in:
parent
2c7431ffcf
commit
6040f16239
1 changed files with 2 additions and 0 deletions
2
tcp.c
2
tcp.c
|
@ -1586,12 +1586,14 @@ static int tcp_update_seqack_wnd(struct ctx *c, struct tcp_tap_conn *conn,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAS_SND_WND
|
||||||
if (conn->local || tcp_rtt_dst_low(conn)) {
|
if (conn->local || tcp_rtt_dst_low(conn)) {
|
||||||
conn->wnd_to_tap = tinfo->tcpi_snd_wnd;
|
conn->wnd_to_tap = tinfo->tcpi_snd_wnd;
|
||||||
} else {
|
} else {
|
||||||
tcp_get_sndbuf(conn);
|
tcp_get_sndbuf(conn);
|
||||||
conn->wnd_to_tap = MIN((int)tinfo->tcpi_snd_wnd, conn->snd_buf);
|
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);
|
conn->wnd_to_tap = MIN(conn->wnd_to_tap, MAX_WINDOW);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue