aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libtle_l4p/tcp_stream.c
diff options
context:
space:
mode:
authorBen Magistro <koncept1@gmail.com>2021-08-24 13:06:35 +0000
committerBen Magistro <koncept1@gmail.com>2021-09-17 00:58:11 +0000
commit1e02b8666c6f2ce9beff085eabc7f73cc421de91 (patch)
tree0e02c557f1ecce79c02553ec8163888001a172ee /lib/libtle_l4p/tcp_stream.c
parent6fddbfcd39d8cfb96ef7a22bbd786c16b9d29e54 (diff)
l4p/tcp: Add ability to adjust/offset tcp timestamps when proxying
Signed-off-by: Ben Magistro <koncept1@gmail.com> Change-Id: Icb65a2a2bf2f0b647fb8927c9c4adb88b9eb2131 Signed-off-by: Ben Magistro <koncept1@gmail.com>
Diffstat (limited to 'lib/libtle_l4p/tcp_stream.c')
-rw-r--r--lib/libtle_l4p/tcp_stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libtle_l4p/tcp_stream.c b/lib/libtle_l4p/tcp_stream.c
index 59d94a4..f41ff3c 100644
--- a/lib/libtle_l4p/tcp_stream.c
+++ b/lib/libtle_l4p/tcp_stream.c
@@ -382,6 +382,8 @@ tcp_stream_fill_cfg(struct tle_tcp_stream *s, const struct tle_ctx_param *cprm,
s->tcb.snd.rto_tw = (cprm->timewait == TLE_TCP_TIMEWAIT_DEFAULT) ?
TCP_RTO_2MSL : cprm->timewait;
+ s->ts_offset = 0;
+
s->s.udata = scfg->udata;
}