From e151ee29d02d7802fab9e32b50ced54fd8d64160 Mon Sep 17 00:00:00 2001 From: Remy Horton Date: Tue, 30 May 2017 10:53:25 +0100 Subject: Add l4fwd RXTX mode This mode allows for transactions where the request and response are of different payload sizes Change-Id: I0744159f0618c9241e576a4af1c02765bbf1dd9f Signed-off-by: Remy Horton --- lib/libtle_l4p/tcp_stream.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/libtle_l4p/tcp_stream.c') diff --git a/lib/libtle_l4p/tcp_stream.c b/lib/libtle_l4p/tcp_stream.c index af65967..99791d0 100644 --- a/lib/libtle_l4p/tcp_stream.c +++ b/lib/libtle_l4p/tcp_stream.c @@ -604,3 +604,15 @@ tle_tcp_stream_update_cfg(struct tle_stream *ts[], return i; } + +int +tle_tcp_stream_get_mss(const struct tle_stream * stream) +{ + struct tle_tcp_stream *tcp; + + if (stream == NULL) + return -EINVAL; + + tcp = TCP_STREAM(stream); + return tcp->tcb.snd.mss; +} -- cgit 1.2.3-korg