diff options
Diffstat (limited to 'lib/libtle_l4p/tcp_stream.c')
-rw-r--r-- | lib/libtle_l4p/tcp_stream.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; +} |