diff options
author | 2022-01-20 15:59:23 +0000 | |
---|---|---|
committer | 2022-01-21 20:50:17 +0000 | |
commit | 5d42e683caeff787a618e2b9180d41dcd1825286 (patch) | |
tree | 5c5b5acd755a62b3ba1ff667586bd2c058eab5ea /lib/libtle_l4p/tcp_rxtx.c | |
parent | 3b80f5d6fbc5ed41fa462acb8c2ccf87e31d9b61 (diff) |
Allow all window scale values when proxying
When TLDK is used in to proxy connections, it previously limited the
window scale values that could be used. This allows the full range to be
used by proxy sessions (tcp_establish) and should preserves the existing
behavior for endpoint sessions.
Signed-off-by: Ben Magistro <koncept1@gmail.com>
Change-Id: I064dffccef1cc8e97c910a23d82feb7bd35bc988
Diffstat (limited to 'lib/libtle_l4p/tcp_rxtx.c')
-rw-r--r-- | lib/libtle_l4p/tcp_rxtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libtle_l4p/tcp_rxtx.c b/lib/libtle_l4p/tcp_rxtx.c index 8056619..9c80f66 100644 --- a/lib/libtle_l4p/tcp_rxtx.c +++ b/lib/libtle_l4p/tcp_rxtx.c @@ -2273,7 +2273,7 @@ tcb_establish(struct tle_tcp_stream *s, const struct tle_tcp_conn_info *ci) s->tcb.so = ci->so; fill_tcb_snd(&s->tcb, ci->ack, ci->seq, mss, ci->wnd, ci->so.wscale, &ci->so.ts); - fill_tcb_rcv(&s->tcb, ci->ack, ci->so.wscale, &ci->so.ts); + fill_tcb_rcv(&s->tcb, ci->ack, ci->so.l_wscale, &ci->so.ts); s->tcb.rcv.wnd = calc_rx_wnd(s, s->tcb.rcv.wscale); |