aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libtle_l4p/tle_tcp.h
diff options
context:
space:
mode:
authorBen Magistro <koncept1@gmail.com>2022-01-20 15:59:23 +0000
committerBen Magistro <koncept1@gmail.com>2022-01-21 20:50:17 +0000
commit5d42e683caeff787a618e2b9180d41dcd1825286 (patch)
tree5c5b5acd755a62b3ba1ff667586bd2c058eab5ea /lib/libtle_l4p/tle_tcp.h
parent3b80f5d6fbc5ed41fa462acb8c2ccf87e31d9b61 (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/tle_tcp.h')
-rw-r--r--lib/libtle_l4p/tle_tcp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libtle_l4p/tle_tcp.h b/lib/libtle_l4p/tle_tcp.h
index be0c7a9..860da92 100644
--- a/lib/libtle_l4p/tle_tcp.h
+++ b/lib/libtle_l4p/tle_tcp.h
@@ -122,8 +122,12 @@ union tle_tcp_tsopt {
* SYN time option values.
*/
struct tle_tcp_syn_opts {
+ /* mss to use when communicating with the peer */
uint16_t mss;
+ /* peer window scaling factor */
uint8_t wscale;
+ /* local window scaling factor, only used via tcp_establish */
+ uint8_t l_wscale;
union tle_tcp_tsopt ts;
};